For the App object this property sets or returns the current master form for the solution. For the Form object, this property is read-only and returns the master form status of the specified form.
Sets or returns the master form for the solution.
App.MasterForm = [string] or [object]
Where string is a string expression that can be used to specify the name of the master form to assign to the solution and object is the master form object that is returned by this property.
Newlook Smartclient
Newlook Server
This property can be set within the startup macro or script to assign a master form to the solution.
The following startup macro specifies the "MFApplicationMenu" form as the master form for the solution.
App.SetValue (App.MasterForm, "MFApplicationMenu")
Returns a value indicating whether the form is a master form. Read-only at runtime.
App.Forms(x).MasterForm = [boolean]
Where boolean is an expression that evaluates to either True or False, as described in Settings.
Newlook Smartclient
Newlook Server
This property can be used to identify whether a master form is enabled for the solution.
The settings for boolean for the form object are:
Setting |
Description |
True |
The form is a master form. |
False |
The form is not a master form. |
The following script checks if there is a master form currently assigned to the solution and sets a global flag.
function IsMasterForm()
{
if (App.Forms(0).MasterForm == true) {
// set the IsMasterForm flag to true
App.SetValue("IsMasterForm", true);
} else {
// set the IsMasterForm flag to false
App.SetValue("IsMasterForm", false);
}
}
Popup property | Forms collection
Form object | ActiveForm object | MasterForm object | App object
© 2004-2021 looksoftware. All rights reserved.