Preferences Component
Fnd_Pref_GetWindow
Fnd_Pref_GetWindow (name; ->left; ->top; ->right; ->bottom)
Parameters
| Parameter | Type | Description |
|---|---|---|
| name | Text | Name of the preference item |
| left | Pointer | Left coordinate |
| top | Pointer | Top coordinate |
| right | Pointer | Right coordinate |
| bottom | Pointer | Bottom coordinate Use this method to retrieve the coordinates (left, top, right, and bottom) of a window position that has been stored with Foundation’s Fnd_Pref_SetWindow method. Pass pointers to four variables, and this routine will modify the values of the variables. If the window position has not been previously saved, the variables will be left untouched, so you can set them to default values before calling this method. For example: vLeft:=10 ` Set the default position first. vTop:=40 vRight:=510 vBottom:=340 Fnd_Pref_GetWindow ("My Window";->vLeft;->vTop;->vRight;->vBottom) $winRef:=Open window(vLeft;vTop;vRight;vBottom;Movable dialog box ) Fnd_Pref_SetWindow ("My Window";->vLeft;->vTop;->vRight;->vBottom) |
Description
Window coordinates are always stored locally. There is no option to store this information as a server or shared preference.
Extracted source text
Fnd_Pref_GetWindow (name; ->left; ->top; ->right; ->bottom)
Parameter Type Description
name Text Name of the preference item
left Pointer Left coordinate
top Pointer Top coordinate
right Pointer Right coordinate
bottom Pointer Bottom coordinate
Use this method to retrieve the coordinates (left, top, right, and bottom) of a window position that has
been stored with Foundation’s Fnd_Pref_SetWindow method. Pass pointers to four variables, and this
routine will modify the values of the variables.
If the window position has not been previously saved, the variables will be left untouched, so you can set
them to default values before calling this method. For example:
vLeft:=10 ` Set the default position first.
vTop:=40
vRight:=510
vBottom:=340
Fnd_Pref_GetWindow ("My Window";->vLeft;->vTop;->vRight;->vBottom)
$winRef:=Open window(vLeft;vTop;vRight;vBottom;Movable dialog box )
Fnd_Pref_SetWindow ("My Window";->vLeft;->vTop;->vRight;->vBottom)
Window coordinates are always stored locally. There is no option to store this information as a server or
shared preference.