if have a type like this (notice the ptr is the first variable this will always remain so)
Type XGgadget
Field WidgetPtr:Byte Ptr
a callback provides me with a value equal to widgetptr
however I want to be able to call a method of the XGgadget that has a widgetptr = the callbacks widget ptr
Function optioncallback(o:Byte Ptr,i:Int)
Print Int o
Print Int check1.widgetptr
(if the callback was caused by the check1 gadget check1.widgetptr==o
bloody 'ell aint pointers fun!
o.getValue() would be nice...
Type XGgadget
Field WidgetPtr:Byte Ptr
a callback provides me with a value equal to widgetptr
however I want to be able to call a method of the XGgadget that has a widgetptr = the callbacks widget ptr
Function optioncallback(o:Byte Ptr,i:Int)
Print Int o
Print Int check1.widgetptr
(if the callback was caused by the check1 gadget check1.widgetptr==o
bloody 'ell aint pointers fun!
o.getValue() would be nice...