Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Icons
Re: Icons [message #1371 is a reply to message #1366] Wed, 01 March 2006 10:05 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14255
Registered: November 2005
Ultimate Member
mentaltruckdriver wrote on Tue, 28 February 2006 20:16

Greetings:

I was wondering how I would make an icon for my application? I have the .ico file I wish to use however I'm not sure how to code it to change the standard application icon (when compiled) to my .ico icon. Could someone please help me?

Thanks.



Well, actually, this part is a little but tricky for U++, as this is the only use of .rc file (I believe we are speaking about Win32 here).

Put icon.ico to your package directory.

Add app.rc:

5555 ICON DISCARDABLE "icon.ico"


This will make icon appear in Windows filesystem.

Add

app.Icon(Image::Icon(5555, true), Image::Icon(5555, false));


into your GUI_APP_MAIN (app is your main app window; alternatively put Icon.... to its constructor)

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Will not create packaqge with <empty> template
Next Topic: Console Output In Linux
Goto Forum:
  


Current Time: Mon Apr 28 14:15:43 CEST 2025

Total time taken to generate the page: 0.03876 seconds