On Fri, Nov 15, 2013 at 4:23 PM, Andreas Falkenhahn
<andr...@falkenhahn.com>wrote:

> Hi,
>
> how is manual delete supposed to work in wxLua? I tried to call
>
> myButton = wx.wxButton(....)
> myButton:delete()
>
>
You are supposed to use myButton:Destroy() to let wxWidgets properly delete
it. The delete() function is available only for objects that are not owned
by something else. It works on wxRects for example, but all wxWindows are
supposed to be owned by their parent.

Regards,
     John
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to