Moved
This event fires when an object is moved either by the user or in code.
Usage |
PROCEDURE oObject.Moved |
Example |
* In a formset, when one form is moved, you might move another * to make sure it's still visible. Put code like this in the * first form's Moved to keep the forms side by side. * Of course, the user may not appreciate this, if he's trying * to separate the forms. nBorderWidth = SYSMETRIC(3) IF This.Left + This.Width + ThisFormSet.form2.Width + ; 4 * nBorderWidth <= _SCREEN.Width ThisFormSet.form2.Left = This.Left + This.Width + ; 2 * nBorderWidth ELSE ThisFormSet.form2.Left = ; This.Left - ThisFormSet.form2.Width - 2 * nBorderWidth ENDIF ThisFormSet.Form2.Top = This.Top |
See Also |
Left, Move, Resize, SysMetric(), Top |