User forums > Using Code::Blocks

wxSmith: Changing the application icon

(1/1)

CyberSlayer:
How can I change the icon in the upper left corner of a frame based app created with wxSmith?

Thanks.

raph:
Hi,

Easy, just add

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

Regards raph

CyberSlayer:
Thanks, it worked.

Navigation

[0] Message Index

Go to full version