extend wxAuiPaneInfo

BlitzMax Forums/Brucey's Modules/extend wxAuiPaneInfo

UNZ(Posted 2013) [#1]
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"


Derron(Posted 2013) [#2]
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


Brucey(Posted 2013) [#3]
Stay tuned for further updates...


Brucey(Posted 2013) [#4]
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.


UNZ(Posted 2013) [#5]
great thx.