| View previous topic :: View next topic |
| Author |
Message |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue May 25, 2004 12:29 am Post subject: Title Bar Icon Problem |
|
|
Not sure this has been mentioned before, I didn't notice any topics regarding
this yet, but, if I make an icon with 16x16, 32x32 and 48x48, and each have
a 16 color, 256 color and true color counter part... When I compile the icon
in VDS 5, the title bar does not use any of the 16x16 icons. It will use the
32x32 or 48x48 icon and resize it. This does not reflect the desired true
image of what the 16x16 icon is suppose to look like.
Has anyone else noticed this, and or, has anyone else found a work around,
or does anyone have an idea for a work around?
I would prefer to keep all the icons in the icon file so if the user is using
large icon view, then the proper icon is shown. BTW, while in Explorer, the
proper icons are being showed, it's just the title bar is refuses to use the
16x16 icon.
Thanks in advance for any info or help. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Tue May 25, 2004 3:38 pm Post subject: |
|
|
Yes, I've noticed it. It's a problem inherited from Delphi, or at least the version the VDS runtime is compiled in. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue May 25, 2004 8:09 pm Post subject: |
|
|
Do you think it's an issue with the order of the icons in their resource
location? Basically, maybe the order of the icons is not correct and maybe
we can open up the exe in a resource editor and correct the order of the
icons? _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Wed May 26, 2004 2:03 am Post subject: |
|
|
This is an issue with Delphi. It still exists in Delphi 7. However in Delphi you are given the option of setting the ICON for each form easily by selecting a seperate 16x16 icon.
This currently isn't possible in VDS but there's still a way. If I recall correctly there is a Windows API that lets you set the icon of a window. But it requires you pass the handle of an icon to use.
You could try to load a 16x16 icon with the win api (basically getting it's handle) then using the SENDMESSAGE api to send your form/dialog the handle of the icon to use. I'm not sure off hand of an api which lets you load an icon and grab it's handle but I'm certain there must be one. There for sure is the SENDMESSAGE api which will let you set the icon once (if possible) you get a handle to the icon you are wanting to use.
The sendmessage api if I recall correctly is WM_SETICON. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
|