From: John L. <jla...@gm...> - 2007-01-22 19:19:41
|
On 1/22/07, Ryan Pusztai <rpu...@gm...> wrote: > On 1/22/07, Hakki Dogusan <dog...@tr...> wrote: > > Hi, > > > > (I don't know whether it is different for wxluafreeze but,) > > > > I'm using like: > > > > local bitmap = GetImage("dsbw") > > local icon = wx.wxDefaultIcon() > > icon:CopyFromBitmap(bitmap) > > app.frame:SetIcon(icon) > > bitmap:Delete() > > icon:Delete() > > > > Taken from wxLua's samples > > This was close, but I still can't get the frame icon to change. I can use > the bitmap created by the code above in a wxBitmapButton, but nothing > happens to the frame icon. I also tried to wxLua smaples that set the frames > icon and they didn't work either. The samples are wxluasudoku.wx.lua and > calculator.wx.lua. I've noticed that it doesn't change too, under MSW, but couldn't understand why, since it works in GTK. Ahhh, I just discovered that you need to use a 32x32 bit XPM file or load a 32x32 ico from disk in MSW. If you want to change the icon that is displayed in windows explorer you have to change the icon in the wxluafreeze.rc resource file and recompile. I found these programs that I think should be able to change the icon of a precompiled executable, but I haven't tested either. http://www.angusj.com/resourcehacker/ http://www.wilsonc.demon.co.uk/d10resourceeditor.htm Hope this helps, John Labenski |