John Labenski <jlaben...@gmail.com> wrote: (24/05/2009 17:40) > >We are pleased to announce the latest release of wxLua. > >wxLua 2.8.10.0 is a stable bugfix release that is a minor update to >the internals of wxLua and the precompiled versions are linked against >wxWidgets 2.8.10. >
Thanks for keeping it going. Got some trouble though.. For now I'll have to stay with wxLua v2.8.7.0. The new error reporting method doesn't work well. While I know someone asked for it to print messages to the console, that's broken more than it fixed. Now, if there's an error, the program exits, reporting nothing. (I launch scripts by using WIndows to associate them with wxLua.exe. If I try launching them from a commandline, nothing is reported there either, so I try launching them from wxLua.exe directly. This is clumsy, drag/drop won't work as it does if I launch by dragging to the file's icon in a directory (but that doesn't report errors now). Dragging onto the pre-opened wxLua fails because it's not enabled for drag/drop, so I must browse manually to the file. That fails too because it doesn't recognise spaces in file names! This is definitely not an improvement. While the script does open in wxLua, it won't run because even though it has it opened, it can't actually FIND it by file name to run it. Please let us use our OS's inbuilt tools to handle this stuff, it's a better way, usually, as it works for everything we do with the OS as well. Right now we can't if we want error reporting. (How about an option to send error reports to a file? That way I can see them as before, in a message box, but also have a written copy if I need one). Another thing I have found is a failure in EVT_ERASE_BACKGROUND blocking. I'm getting flicker in something that didn't flicker in the previous release of wxLua. Note the two commented lines... function Main() FRAME=wx.wxFrame(wx.NULL,-1,"") FRAME:CreateStatusBar() FRAME:SetStatusText(" ") LAYER=wx.wxPanel(FRAME,-1) PANEL=wx.wxPanel(FRAME,-1) CHART=wx.wxStaticBitmap(PANEL,-1) FRAME:SetSize(800,600) FRAME:Centre() FRAME:Show(true) BITMAP=wx.wxBitmap("Some Really Big Full Colour Bitmap.jpg") BX,BY,OX,OY,PX,PY=BITMAP:GetWidth(),BITMAP:GetHeight(),0,0,0,0 CHART:SetBitmap(BITMAP) FRAME:Connect(wx.wxEVT_SIZE,OnSize) LAYER:Connect(wx.wxEVT_LEFT_DOWN,function(E) PX,PY=OX-E:GetX(),OY-E:GetY() end) LAYER:Connect(wx.wxEVT_MOTION,OnMotion) LAYER:Connect(wx.wxEVT_ERASE_BACKGROUND,function() end) PANEL:Connect(wx.wxEVT_ERASE_BACKGROUND,function() end) --Either of these ought to stop flicker but don't. CHART:Connect(wx.wxEVT_ERASE_BACKGROUND,function() end) --Neither of them are needed in earlier wxLua anyway. end function OnSize(E) CX,CY=FRAME:GetClientSizeWH() PANEL:SetClientSize(CX,CY) LAYER:SetClientSize(CX,CY) CX,CY=CX-BX,CY-BY if OX<CX then OX=CX end if OY<CY then OY=CY end LAYER:Refresh() PANEL:Refresh() end function OnMotion(E) if E:LeftIsDown() then OX,OY=PX+E:GetX(),PY+E:GetY() if OX>0 then OX=0 end if OY>0 then OY=0 end if OX<CX then OX=CX end if OY<CY then OY=CY end CHART:Move(OX,OY) LAYER:Refresh() end end Main() ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users