Resize
This event fires each time an object is resized.
Usage |
PROCEDURE oObject.Resize [ LPARAMETERS nIndex ] |
Example |
Procedure Form1.Resize * Move the Quit button to 50 pixels from the bottom of the form ThisForm.cmdQuit.Top = ThisForm.Height - 50 * Center the button horizontally ThisForm.cmdQuit.Left = .5 * (ThisForm.Width - ; ThisForm.cmdQuit.Width) * * The form contains a custom edit box. It needs to take up all; * space left to right except a margin and stretch itself to ; * the height available on the form. * * Make the Width the form width less two margin widths ThisForm.edtEditBox.width = ThisForm.Width - ; 2 * ThisForm.edtEditBox.Left * * Make the box height 108 pixels plus whatever room is ; * available beyond the minimum form height ThisForm.edtEditBox.Height = 108 + (ThisForm.Height - ; ThisForm.MinHeight) |
See Also |
BorderStyle, Column, Container, Control, Control Arrays, Form, Grid, Height, MinHeight, MinWidth, OLEBoundControl, OLEControl, PageFrame, Resizable, Sizable, Toolbar, Width |