Search Locate Previous Next Contents

Parent Form (FM)


Description
This is the normal starting point for an application or simple dialogue box. Styles can be used to get special effects, such as ‘Banner’ for welcome screens.

Caption – is simply the title bar. You can also use the Titlebar property.

Style – might be ‘Dbx’ for dialogue boxes

Titlebar – resets the form titlebar if used, typically on loading a new file.

Menu – is a Menu Structure which is used to build the menu for the form

To intercept a user’s request to close the form, use an action on the ‘CL=Close Request’. If this returns zero, the form will not close.

Class Property Table
NameTypeDefaultDescription
LocalsNameListLocal variables
StyleManyOf
CentredBoolCentre on screen
TopLevelBoolMade as a top-level form
MinsizeNumlistÐMinimum size (height,width) in pixels
TitlebarRuntimeForm Titlebar (text vector)
MenuRuntimeMenu structure
ArtworkRuntimeFor menu images (16×16n integer array of bitmap data)
TopformUserActive MDI or Tabbed child

Class-specific Events
PCPost-Create
NMNew Menu
WAWake-up Call
CLClose Request

Class-specific Functions
CheckTick named menuitem
UncheckUncheck named menuitem
IsCheckedReport if menu items with this id are checked
IsEnabledReport if menu items with this id are enabled
IdReturn the Gui names of all menu items with this id
SetMenuCapReset menu caption(s) of matching items
SetMenuImagesSet image indexes for one or more named menu items
MaximizeMaximize form
MinimizeIconise form
RestoreReturn to normal
CascadeMDI cascade
ArrangeMDI icon arrange
HtileMDI Horizontal Tile
VtileMDI Vertical Tile
SetIconSet System/Minimised Icon
TipsTurn ‘bubble help’ off/on
WaitShow hourglass (Wait 1 disables all controls)
ReadyCancel wait


Continue to: Parent Form – TopLevel Property
© Copyright Causeway Graphical Systems Ltd 2003