forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Title Bar Icon Problem

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue May 25, 2004 12:29 am    Post subject: Title Bar Icon Problem Reply with quote

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
View user's profile Send private message
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Tue May 25, 2004 3:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Tue May 25, 2004 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Wed May 26, 2004 2:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Wed May 26, 2004 8:09 am    Post subject: Reply with quote

To load an icon and get the handle of it, you can use the LoadIcon API function... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group