On 1/22/07, Ryan Pusztai <[EMAIL PROTECTED]> wrote: > On 1/22/07, Hakki Dogusan <[EMAIL PROTECTED]> 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users