Windows Component
Fnd_Wnd_UseSavedPosition
Fnd_Wnd_UseSavedPosition ({pref name})
Parameters
| Parameter | Type | Description |
|---|---|---|
| pref name | Text | Name of the saved position (optional) |
Description
This method tells the window routines we want to try to use a saved position. Pass a window name you have previously added to the user’s preferences by calling the Fnd_Wnd_SavePosition or Fnd_Pref_SetWindow methods. If the preference is available, the saved position will be used rather than the position specified by a call to the Fnd_Wnd_Position method. Your method will look something like this:
Fnd_Wnd_UseSavedPosition ("My Saved Window Position")
Fnd_Wnd_Position (Fnd_Wnd_CenterOnScreen ) ` In case no preference exists.
Fnd_Wnd_OpenFormWindow (->[Invoices];"Invoice")
DIALOG([Invoices];"Invoice")
Fnd_Wnd_SavePosition ("My Saved Window Position") ` Save the position.
CLOSE WINDOW
If no preference name is specified, the current process name is used as the preference name to retrieve the saved window position.
Additional Credits Thanks to Jack Delay of Island Reflections for updating the Fnd_Wnd_MoveOnScreen method so that it can properly handle multiple monitors. Constants F oundation has created a few internal constants that are used by different methods.
Extracted source text
Fnd_Wnd_UseSavedPosition ({pref name})
Parameter Type Description
pref name Text Name of the saved position (optional)
This method tells the window routines we want to try to use a saved position. Pass a window name
you have previously added to the user’s preferences by calling the Fnd_Wnd_SavePosition or
Fnd_Pref_SetWindow methods. If the preference is available, the saved position will be used rather
than the position specified by a call to the Fnd_Wnd_Position method.
Your method will look something like this:
Fnd_Wnd_UseSavedPosition ("My Saved Window Position")
Fnd_Wnd_Position (Fnd_Wnd_CenterOnScreen ) ` In case no preference exists.
Fnd_Wnd_OpenFormWindow (->[Invoices];"Invoice")
DIALOG([Invoices];"Invoice")
Fnd_Wnd_SavePosition ("My Saved Window Position") ` Save the position.
CLOSE WINDOW
If no preference name is specified, the current process name is used as the preference name to retrieve
the saved window position.
Additional Credits
Thanks to Jack Delay of Island Reflections for updating the Fnd_Wnd_MoveOnScreen method so that
it can properly handle multiple monitors.
Constants
F oundation has created a few internal constants that are used by different
methods.