Update ObjectsLib - Add Function: GetWindowByID()
func GetWindowPos nID
return Get_Window_Pos( nID )
+ func GetWindowByID nID
+ return Get_Window_ByID(nID)
+
/*
The next function create new object, add the object to the $RingQt_ObjectsList
Then set $RingQt_ObjName to the object in the $RingQt_ObjectsList
@@ -213,6 +216,14 @@ func Method cMethod
func Get_Window_Pos nID
return find($RingQt_ObjectsList,nID,C_RINGQT_OBJECTSLIST_ID)
+/*
+ Return the window object using the Window ID
+*/
+
+func Get_Window_ByID nID
+ nPos = Get_Window_Pos(nID)
+ return $RingQt_ObjectsList[nPos][C_RINGQT_OBJECTSLIST_OBJECT]
+
/*
The next class is the parent class for Windows/Forms Classes
Don't Use this class directly!
@@ -248,8 +259,7 @@ class ObjectsParent
return RingQt_nParentID
func GetObjectByID nID
- nPos = Get_Window_Pos(nID)
- return $RingQt_ObjectsList[nPos][C_RINGQT_OBJECTSLIST_OBJECT]
+ return Get_Window_ByID(nID)
func ObjectID
return RingQt_nID
