Windows Component
Fnd_Wnd_Position
Fnd_Wnd_Position ({position setting}) -> Number
Parameters
| Parameter | Type | Description |
|---|---|---|
| position setting | Longint | Window position (optional) |
| Function result | Number | The position setting for the next window |
Description
Allows the developer to set the window position for the upcoming dialog or window. The following positions are available using these constants: Value Foundation Constant Description 0 Default Centered on screen 1 Fnd_Wnd_CenterOnScreen Centered on screen 2 Fnd_Wnd_CenterOnWindow Centered over front most window 3 Fnd_Wnd_MacOSXSheet Sheet if possible, or centered over front most window 4 Fnd_Wnd_Stacked Stacked with other stacked windows 5 Fnd_Wnd_StackOnWindow Stacked over the front most window
The Fnd_Wnd_MacOSXSheet position will use the sheet type window when using 4D 2004 or later on Mac OS X. It will also be used for alert and confirm dialogs displayed by the Dialog component, if the ToolboxPack plugin is installed. Otherwise, the window will be centered over the front most window. This command can be called before using many Foundation routines that take advantage of the Windows component. For example:
Fnd_Wnd_Position (Fnd_Wnd_CenterOnWindow )
Fnd_Dlg_Alert ("A value in the Company field is required.")
Extracted source text
Fnd_Wnd_Position ({position setting}) ➜ Number
Parameter Type Description
position setting Longint Window position (optional)
Function result Number The position setting for the next window
Allows the developer to set the window position for the upcoming dialog or window. The following
positions are available using these constants:
Value Foundation Constant Description
0 Default Centered on screen
1 Fnd_Wnd_CenterOnScreen Centered on screen
2 Fnd_Wnd_CenterOnWindow Centered over front most window
3 Fnd_Wnd_MacOSXSheet Sheet if possible, or centered over front most window
4 Fnd_Wnd_Stacked Stacked with other stacked windows
5 Fnd_Wnd_StackOnWindow Stacked over the front most window
The Fnd_Wnd_MacOSXSheet position will use the sheet type window when using 4D 2004 or later
on Mac OS X. It will also be used for alert and confirm dialogs displayed by the Dialog component, if the
ToolboxPack plugin is installed. Otherwise, the window will be centered over the front most window.
This command can be called before using many Foundation routines that take advantage of the Windows
component. For example:
Fnd_Wnd_Position (Fnd_Wnd_CenterOnWindow )
Fnd_Dlg_Alert ("A value in the Company field is required.")