PlaceDialog() routine

Places a window on the screen at specific positions. This routine should be used during the CREATE event of a window. This routine will also make the window visible.

PlaceDialog( xPos, yPos )

The function has the following parameters:

ParameterDescription
xPosValue Description
-2 - Centers the window within the screen.
-1 - Centers the window within the owner window.
Integer value - The x coordinate at which to place the window. The coordinate is relative to the owner window.
yPosValue Description
-2 - Centers the window within the screen.
-1 - Centers the window within the owner window.
Integer value - The y coordinate at which to place the window. The coordinate is relative to the owner window.
declare subroutine PlaceDialog

* Center a window to the screen

PlaceDialog( -2, -2 )

 

* Center a window to the owner window

PlaceDialog( -1, -1 )

 

* Set the window's position to a 5 pixel xy offset to the owner window

PlaceDialog( 5, 5 )
  • guides/programming/programmers_reference_manual/placedialog.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1