Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: CyberSlayer on April 27, 2007, 09:44:51 pm

Title: wxSmith: Changing the application icon
Post by: CyberSlayer on April 27, 2007, 09:44:51 pm
How can I change the icon in the upper left corner of a frame based app created with wxSmith?

Thanks.
Title: Re: wxSmith: Changing the application icon
Post by: raph on April 28, 2007, 08:19:36 pm
Hi,

Easy, just add
Code
SetIcon(wxICON(aaaa));
to your frames constructor, where aaaa is either a xpm image or (on win) an icon resource (defined in resource.rc).

Regards raph
Title: Re: wxSmith: Changing the application icon
Post by: CyberSlayer on April 29, 2007, 07:15:45 am
Thanks, it worked.