Author Topic: wxSmith: Changing the application icon  (Read 4031 times)

CyberSlayer

  • Guest
wxSmith: Changing the application icon
« 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.

Offline raph

  • Almost regular
  • **
  • Posts: 242
Re: wxSmith: Changing the application icon
« Reply #1 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

CyberSlayer

  • Guest
Re: wxSmith: Changing the application icon
« Reply #2 on: April 29, 2007, 07:15:45 am »
Thanks, it worked.