ConGetWindowLoc command

 

Usage:

ConGetDesktopLoc PixelsX&, PixelsY&

 

Legacy Syntax:

CONSOLE GET LOC TO PixelsX&, PixelsY&

 

Pseudo-object Syntax:

CON.LOC TO PixelsX&, PixelsY&

 

Gets the location of the console window on the desktop.

 

The upper left corner location of the window is returned in pixels, relative to the upper left corner of the desktop.

 

Conversion:

 

#IF %DEF(%PB_CC32)

  CONSOLE GET LOC TO PixelsX&, PixelsY&

#ELSE

  ConGetDesktopLoc PixelsX&, PixelsY&

#ENDIF

 

CON.LOC or CONSOLE.LOC may be substituted for CONSOLE GET LOC in programs written for PB/CC 6.

 

See Also: ConSetWindowLoc, ConGetWindowSize