Update the Objects Library - Save/Restore the active object when we uses open_Window()
*/
func Open_Window cClass
+ cRingQt_ObjName = $RingQt_ObjName # Save the current Object
$RingQt_ObjectID++
$RingQt_ObjectsList + [$RingQt_ObjectID,""]
$RingQt_ObjName = "$RingQt_ObjectsList[Get_Window_Pos("+$RingQt_ObjectID+")]" +
@@ -33,7 +34,7 @@ func Open_Window cClass
cCode = $RingQt_ObjName + " = new " + cClass + nl +
$RingQt_ObjName + ".start()"
eval(cCode)
-
+ $RingQt_ObjName = cRingQt_ObjName # Restore the current Object
/*
The next function create new object, add the object to the $RingQt_ObjectsList
@@ -41,12 +42,14 @@ func Open_Window cClass
*/
func Open_WindowNoShow cClass
+ cRingQt_ObjName = $RingQt_ObjName # Save the current Object
$RingQt_ObjectID++
$RingQt_ObjectsList + [$RingQt_ObjectID,""]
$RingQt_ObjName = "$RingQt_ObjectsList[Get_Window_Pos("+$RingQt_ObjectID+")]" +
"[C_RINGQT_OBJECTSLIST_OBJECT]"
cCode = $RingQt_ObjName + " = new " + cClass
eval(cCode)
+ $RingQt_ObjName = cRingQt_ObjName # Restore the current Object
/*
The next function return the last window created
