The form control component encapsulates functions common to form controls such as position, size, focus, layout, and update functions.
Captures the mouse on this form control.
Calling disablePaint causes the window not to redraw. This can be useful in controlling flicker when dealing with form elements. Each disablePaint call should have a corresponding enablePaint call.
Reenables window redraw which was masked by a call to disablePaint. Each enablePaint call should have a corresponding disablePaint call.
Returns the background color of the form control.
Returns the background color of the form control.
Returns the client size of the form control.
Returns the client size of the form control.
Returns true if a form control is enabled, and false otherwise.
Returns true if a form control is enabled. Returns false if a form control is not enabled.
Returns the default font used for the text of the form control.
Returns the default font used for the text of the form control.
Returns the foreground color of the form control.
Returns the foreground color of the form control.
Returns the maximum size of the form control.
Returns the maximum size of the form control.
Returns the minimum size of the form control.
Returns the minimum size of the form control.
Returns the mouse position relative to this form control.
Returns the mouse position relative to this form control.
Returns the handle as an numeric value
Returns the native handle of the window or control. On Windows, this is the value of the window's HWND handle.
Returns the position of a form control, relative to its parent.
Returns the position of a form control, relative to its parent.
Returns the size of the form control.
Returns the size of the form control.
Invalidates a form control, which will cause it to be repainted on the next paint event.
Refreshes a form control, which immediately repaints the entire form control.
Releases the mouse from being captured on this form control.
Sets the background color of the form control to the specified color.
Sets the client size of a form control to the specified size or width and height values.
Enables the form control if flag is true. Disables the form control if flag is false. If flag isn't specified, the form control is disabled.
Sets the focus to the form control.
Sets the default font for the text of the form control.
Sets the foreground color of the form control to the specified color.
Sets the maximum size of a form control to the specified size or width and height values.
Sets the minimum size of a form control to the specified size or width and height values.
Sets the position of a form control relative its parent from the specified point or (x, y) position.
Sets the size of a form control to the specified size or width and height values.
Shows the form control if the flag is true. Hides the form control if the flag is false. If flag isn't specified, the form control is shown.
Updates a form control, which will immediately repaint any invalid areas.