Hi, John Labenski yazmış: > On Jan 20, 2008 7:17 PM, Hakkı Doğusan <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Current cvs includes image sample's image files, but lua file is missing :) >> > > Oops, thanks for providing it. >
Your welcome. > Regards, > John > > By the way, what do you think about the wxBitmap constructor for bits? > I think I'm going to add a table override instead of just taking a > string since I imagine that people would only use it as a replacement > for #including an xbm. > Fine, it'll remove array-to-string process from user code. > --#include "smile.xbm" > local smile_width = 32 > local smile_height = 32 > local smile_bits = { >[snip bits] } > > local C = string.char > for i = 1, #smile_bits do > smile_bits[i] = C(smile_bits[i]) -- turn into ASCII chars > end > smile_bits = table.concat(smile_bits) -- turn into a string > > ... > > this.my_smile_xbm = wx.wxBitmap( smile_bits, smile_width, > smile_height, 1 ) -- Regards, Hakki Dogusan ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users