hiCreateLayoutForm
hiCreateLayoutForm(s_namet_titler_layout[?callbackg_callback] [?mapCBg_mapCallback] [?helpg_help] [?unmapAfterCBg_unmapAfterCB] [?buttonLayoutg_buttonLayout] [?buttonDisabledl_buttonDisabled] [?formTypes_formType] [?dialogStyles_dialogStyle] [?baseNames_baseName] [?plistg_plist] [?initialSizel_initialSize] [?minSizel_minimumSize] [?maxSizel_maximumSize] [?sizePolicys_sizePolicy] ) =>r_form/nil
Description
Returns the SKILL representation of a layout form with the specified field entries and sets it to the specified name.
Arguments
|
Specifies the form title, which is displayed on the top of the form. |
|
|
Specifies the SKILL functions (callbacks) that execute after you select Apply, OK, or Cancel in the form.
Both g_okAction and g_cancelAction can be in one of the following formats:
|
|
|
Specifies the callback to be invoked when the form is mapped, that is, when |
|
|
Specify g_help as one of the following:
If you do not want to use the default
If you specify a single string or symbol, it is used to set the
If you want to specify only the help symbol, specify a list of two strings or symbols, with |
|
|
When a user clicks Help on the form, the
If the |
|
|
The appId and helpTag determine the name of the tag file that is called (appId
You can also use the |
|
|
If set to |
|
|
Specifies the buttons that appear at the bottom of the form. g_buttonLayout can be in one of the following formats: Displays a predefined set of buttons, followed by the Help button. You can select from a list of button layouts. Displays a predefined set of buttons, followed by your custom buttons and the Help button. Custom buttons are specified as button text/button callback pairs. |
|
|
Displays only custom buttons, followed by the Help button.
Specify either OK, Close, or Quit as one of the button names in your list of custom buttons so the form can be closed. You can use Does not display any buttons in the form.
The form can be closed either through the window manager or by calling |
|
|
s_buttonLayout specifies a predefined set of buttons. The Help button is automatically added with each of these combinations. Select one of the following button layouts:
For non-options forms: You can use the Quit button instead of the Close button with the same behavior.
For options forms: |
|
|
where,
|
|
|
(
If there is no Cancel button on a form but there is a Close or Quit button, when you close the form from the window manager or by typing For custom buttons, s_buttonLayout or ’Empty should be listed consisting of button text/button callback pairs:
|
|
|
Press Enter to perform the same action as the first button of the form button list. This is usually
Use |
|
|
List of buttons that are disabled when the form appears. You can change this value with the |
|
|
Possible choices include |
|
|
One of the following symbols, which determines the blocking behavior of the form:
|
|
|
|
|
|
A list of width and height values. The form is sized to the specified width and height, or to the size needed to accommodate all the fields, whichever is less. |
|
|
The minimum size of the form, specified as a list of width and height or width
To change the minimum size, use the |
|
|
The maximum size of the form, specified as a list of width and height or width
To change the maximum size, use the |
|
|
Controls how the forms can be resized. It includes the following options:
It includes only the interactive resizing of the form. The |
|
Values Returned
|
Returns the handle of the form. the SKILL representation of a layout form |
|
Additional Information
When creating a hiLayout form, instead of a list of fields, a single layout container is passed to hiCreateLayoutForm. The layouts themselves contain the details of the fields within. A specified layout have a name, which must be unique within the form, tab page or scroll region. Each layout contains not only a list of fields, but options relevant to the layout type for describing spacer items or stretch items and how alignment works within the layout. Fields can be added and deleted to layouts similar to 1D and 2D forms, but specifying coordinates are not necessary.
The fields within a layout can be accessed without using the layout container. For example, a field myField within a layout myLayout on a form myForm can be accessed using:
which makes it simpler to convert existing code using a 2D form to use hiLayout containers. Instead, the code does not need to be updated to reflect any new containers which have been inserted. Alternatively, you can use myForm->myLayout->myField->value.
The only field type not supported in an hiLayout form is a frame field. This is replaced by the ?frame argument for each layout creation function.
Related Topics
Return to top