|
From: Hakki D. <dog...@tr...> - 2007-01-22 15:08:32
|
Hi,
Ryan Pusztai yazmış:
> I can't seem to set the icon for the frame in wxLua. I really want to do
> this when it is frozen with wxluafreeze. But I can't seem to get the
> SetIcon() to work at all. A small example would be great. Thanks
> --
> Regards,
> Ryan
> RJP Computing
>
>
(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
--
Regards,
Hakki Dogusan
|