Windows Component

Fnd_Wnd_MoveOnScreen

Fnd_Wnd_MoveOnScreen (->left; ->top; ->right; ->bottom; {window type})

Legacy manual page 263

Parameters

ParameterTypeDescription
leftPointerPointer to the left side of the window
topPointerPointer to the top of the window
rightPointerPointer to the right side of the window
bottomPointerPointer to the bottom of the window
window typeLongintWindow type (optional)

Description

Pass this routine pointers to a set of window coordinates before opening a new window. This routine modifies the window coordinates so the window will be opened completely on screen. ...

Fnd_Wnd_MoveOnScreen (->Left_i;->Top_i;->Right_i;->Bottom_i)
$winRef_i:=Open window(Left_i;Top_i;Right_i;Bottom_i)

For example, if you were to recall a saved window position before opening a window, this routine would assure that the window is completely visible, even if the user had changed monitor sizes or resolutions since saving the original window coordinates. If the window type is specified, this routine can make more precise adjustments to the new window position, taking into account the window's title bar and border sizes. You do not need to call this routine before calling any of the Windows component routines. They all call this method internally.

Extracted source text
            Fnd_Wnd_MoveOnScreen (->left; ->top; ->right; ->bottom; {window type})

              Parameter                     Type                  Description
              left                          Pointer               Pointer to the left side of the window
              top                           Pointer               Pointer to the top of the window
              right                         Pointer               Pointer to the right side of the window
              bottom                        Pointer               Pointer to the bottom of the window
              window type                   Longint               Window type (optional)

            Pass this routine pointers to a set of window coordinates before opening a new window. This routine
            modifies the window coordinates so the window will be opened completely on screen.
              ...
              Fnd_Wnd_MoveOnScreen (->Left_i;->Top_i;->Right_i;->Bottom_i)
              $winRef_i:=Open window(Left_i;Top_i;Right_i;Bottom_i)

            For example, if you were to recall a saved window position before opening a window, this routine would
            assure that the window is completely visible, even if the user had changed monitor sizes or resolutions
            since saving the original window coordinates.
            If the window type is specified, this routine can make more precise adjustments to the new window
            position, taking into account the window's title bar and border sizes.
            You do not need to call this routine before calling any of the Windows component routines. They all call
            this method internally.