SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

newbie delphi usage question

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder
View previous topic :: View next topic  
Author Message
EdHrx



Joined: 12 Jan 2007
Posts: 3

PostPosted: Fri Jan 12, 2007 7:02 pm    Post subject: newbie delphi usage question Reply with quote

I intend to use a resouce dll.
During a test I added an icon. Resource builder gave options for 16 x 16 ,
32x 32, 48 x 48 etc for the icon. Do I need to delete out all the options I dont want. If that is the case do I need to add the icon again to get another size,
Alternativley is their a way of calling to indicate the version Isize) of the icon I want.

The call I am making currently is
HICON = := LoadIcon(library_instance, icon_name);


best wishes Ed..
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Sat Jan 13, 2007 8:41 am    Post subject: Reply with quote

Resource Builder includes these options for icon sizes just for speeding up and it is not obligatory to create all of them/ You just create icons with sizes you really need. If you need to add icon in another size just specify the size in Width and Heigh boxes.
When you use LoadIcon() API it loads icon with system icon size specified. This size could be detected using GetSystemMetric. If you need to load icon of specific size you can use LoadImage.
Cited from WinAPI help:
Quote:
LoadIcon can only load an icon whose size conforms to the SM_CXICON and SM_CYICON system metric values. Use the LoadImage function to load icons of other sizes.

Hope this helps.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> Resource Builder 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


Powered by p h p B B  © 2001, 2005 p h p B B  Group