Menu

#14 Setting application icon not working

open
nobody
None
5
2005-02-15
2005-02-15
Anonymous
No

Version: 2.1rc2

The way the main frame sets up the application icon
(i.e., using wxIcon to load the image in
__set_properties() of class MyFrame()) does not work on
Windows. A working way would be something like the
following:
icon = wxEmptyIcon()
icon.CopyFromBitmap( wxBitmapFromImage(
wxImage( "DirsSync_ico.png", wxBITMAP_TYPE_PNG)))
self.SetIcon(icon)

The image has to be 32x32 of any format wxWindows can load.

Thanks,
hlihn@brocade.com

Discussion


Log in to post a comment.