+void wxControl::DoGetBounds( WXRECTANGLEPTR rect ) const
+{
+ if(rect==NULL)
+ return;
+ FormType* form = (FormType*)GetParentForm();
+ if(form==NULL)
+ return;
+ uint16_t index = FrmGetObjectIndex(form,GetId());
+ if(index==frmInvalidObjectId)
+ return;
+ FrmGetObjectBounds(form,index,(RectangleType*)rect);
+}
+
+void wxControl::DoSetBounds( WXRECTANGLEPTR rect )
+{
+ if(rect==NULL)
+ return;
+ FormType* form = (FormType*)GetParentForm();
+ if(form==NULL)
+ return;
+ uint16_t index = FrmGetObjectIndex(form,GetId());
+ if(index==frmInvalidObjectId)
+ return;
+ FrmSetObjectBounds(form,index,(RectangleType*)rect);
+}
+
+void wxControl::DoGetPosition( int *x, int *y ) const
+{
+ int ox = 0, oy = 0;
+ AdjustForParentClientOrigin(ox, oy);
+
+ RectangleType rect;
+ DoGetBounds(&rect);
+
+ if(x)
+ *x = rect.topLeft.x - ox;
+ if(y)
+ *y = rect.topLeft.y - oy;
+}
+
+void wxControl::DoGetSize( int *width, int *height ) const
+{
+ RectangleType rect;
+ DoGetBounds(&rect);
+
+ if(width)
+ *width = rect.extent.x;
+ if(height)
+ *height = rect.extent.y;
+}
+
+void wxControl::DoMoveWindow(int x, int y, int width, int height)
+{
+ wxRect area = GetRect();
+ RectangleType rect;
+ rect.topLeft.x = x;
+ rect.topLeft.y = y;
+ rect.extent.x = width;
+ rect.extent.y = height;
+ DoSetBounds(&rect);
+ GetParent()->Refresh(true, &area);
+}
+