Hi,
John Labenski yazmış:
> On Dec 16, 2007 6:59 AM, Hakkı Doğusan <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I translated mentioned sample to wxLua.
>>
>> http://www.dynaset.org/dogusanh/download/wxluaimage.zip (448Kb)
>
> Great!
>
>> - Designed to work in wxLua/samples/wximage folder
>
> I wish the images that it uses weren't so large. I wonder if we need
> them all since they're really for the C++ library to test if the
> loaders work as expected. I think it's safe for wxLua to assume that
> they do. Any thoughts before I add it?
>
I translated this sample because of a message sent to Lua list:
Habib wrote:
> [snip]
> Thefore first I tried: wxWidgets. Dropped it when I couldn't find any
easy way to display a JPEG on the screen. Hacking it will be more
troublesome than it's worth.
Hence, I believe it would be good to show all loaders in action. Can we
replace images with something else in tiny size?
>> - Some parts are commented out with --[[FIXME
>
> All fixed, except for the wxPixelData iterators. That may have to wait
> until the new year since they look a little tricky at first glance.
>
Thanks.
>> - There is a flag to prevent one slow operation
>
> I added wxImage::GetData() and it's much faster.
>
Ok.
>> - There is a bug I left, about wx.wxFileSelector usage
>
> wxLua uses the newer (well, still pretty old) version where you only
> pass in a wxArrayString/table with strings.
>
Thanks. In a quick hacking mode, I tried something, then left it :)
> =============
>
> I've also made wxApp::MainLoop() callable multiple times and
> require("wx") do nothing if already loaded so that we can add
> require("wx") as well as the wxGetApp().MainLoop() call to all the
> samples and they'll work using DLLs or the executables.
>
Excellent! It'll help writing samples.
> =============
>
> I really like this
>
> function win.OnPaint(win, event) ... end
> win:Connect(wx.wxEVT_PAINT, function(event) win:OnPaint(event) end)
>
>
> But I'm not sure about the usefulness of modules inside of a single
> file. Since you lose the globals and there's so many local vars it
> makes it harder to debug. I'm guessing that you're doing it this way
> to simulate a C++ class. Are there any advantages in doing it this way
> that I'm missing?
>
For "all in one file" samples? No.. I'm trying to make it a habit of
myself :) It helps more controlled writing..
> Regards,
> John
ps. Could you please add Code::Blocks project files to cvs? They're only
13Kb.
--
Regards,
Hakki Dogusan
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users