Update ObjectsLib - extensions/ringqt/guilib/objectslib/objectslib.ring - CreateObject() function - better code! - state management - take in mind reusing Method() function after using CreateObject()
@@ -8,8 +8,12 @@ func last_object
return last_window()
func CreateObject cClass,oParent
+ # Save the current object
+ cCurrentObject = $RingQt_objname
open_object(cClass)
last_object().init(oParent)
+ # Restore the current object - used by Method() function
+ $RingQt_objname = cCurrentObject
return last_object()
class ObjectControllerParent from WindowsControllerBase
