It is currently Thu Jun 07, 2018 9:05 pm

All times are UTC - 8 hours [ DST ]


Forum rules


Please, keep discussions on topic and in the right forum. The start menu topics go into the Classic Start Menu forum, etc. This makes it easier for people to locate topics they are looking for.
If you get a satisfactory response to your question, please mark the topic as "solved". Click the green √ button in the bottom-right of the post.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat May 18, 2013 11:17 am 
Offline

Joined: Sat May 18, 2013 11:07 am
Posts: 2
I want to use the icon from an exe file which I run with a custom toolbar button. But it does not work. The exe is cmd.exe. I can select the file because there is a *.exe filter for the icon file. But the list of icons is empty after selection the cmd.exe. Also if I use an empty icon setting it does not use the default from the *.exe.

I use the version version 3.6.7 on Windows 7.


Is this a bug, missing feature or do I something wrong?


Top
 Profile  
Reply with quote  
PostPosted: Sat May 18, 2013 11:41 am 
Offline
User avatar

Joined: Thu Jan 03, 2013 12:38 am
Posts: 5341
Icons in EXEs work fine. The problem is that the icon stored in cmd.exe has a string ID, and not a numeric ID. Classic Shell only supports numeric IDs. Try using the same icon from console.dll and it will work. :)

_________________
Links to some general topics:

Compare Start Menus

Read the Search box usage guide.

I am a Windows enthusiast and did Classic Shell's testing and usability/UX feedback.


Top
 Profile  
Reply with quote  
PostPosted: Sat May 18, 2013 6:44 pm 
Offline
User avatar

Joined: Sun Jan 06, 2013 1:44 pm
Posts: 1939
well why does classic shell only support numeric ID's? XD, im sure this problem is ran into quite often, so it is something that should be fixed if possible :P


Top
 Profile  
Reply with quote  
PostPosted: Sat May 18, 2013 6:51 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 02, 2013 11:38 pm
Posts: 5331
The standard way to refer to an icon in the system is in the format "file,number". There are two ways to interpret the number - one is as index of an icon, and the other is as an ID of the icon. Using indices gives you access to all icons, including ones with string IDs. However the index can change between versions of Windows because icons are added and removed. So to keep the icons consistent between versions I elected to use IDs instead of indices.

There are very few icons that have string IDs. In fact I have not seen another one besides cmd.exe. So the downside is not as bad as you'd think.


Top
 Profile  
Reply with quote  
PostPosted: Sat May 18, 2013 10:27 pm 
Offline
User avatar

Joined: Sun Jan 06, 2013 1:44 pm
Posts: 1939
hmm, why does command.exe use it? for legacy sake?, thats the only reason i can think of.. or is it just some arbitrary thing..?


Top
 Profile  
Reply with quote  
PostPosted: Sun May 19, 2013 1:30 am 
Offline

Joined: Sat May 18, 2013 11:07 am
Posts: 2
Thanks for the workaround with console.dll. It works.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.