extend wxAuiPaneInfo
BlitzMax Forums/Brucey's Modules/extend wxAuiPaneInfo
| ||
Why can't I extend a wxAuiPaneInfo as easy as for example a wxFrame? sample: I can avoid the inheritance but it is a bit "not OOP" |
| ||
This happens because something is missing: wxaui.bmx: Function _create:wxAuiPaneInfo(wxAuiPaneInfoPtr:Byte Ptr) If wxAuiPaneInfoPtr Then Local this:wxAuiPaneInfo = New wxAuiPaneInfo this.wxAuiPaneInfoPtr = wxAuiPaneInfoPtr Return this End If Return Null End Function It is returning null if you give it no pointer (which is currently happening). bye Ron |
| ||
Stay tuned for further updates... |
| ||
You should now be able to create your own subclasses of wxAuiPaneInfo now. All the wxAuiPaneInfo methods which return itself, now returns Self, instead of a new object. But things like GetAllPanes() won't return instances of your own custom objects. |
| ||
great thx. |