Set window position - %sp

In this section:

This format code, %sp (Window Position), is used to initialise the position of the window on the screen. Integer arguments x and y are used to specify the position of the top left-hand corner of the window in screen co-ordinates.

For example:

i=winio@('%si?%spWhy is this stuck in the corner',0L,0L)

If more than one position format is used, the positions are added vectorially. This is particularly useful in conjunction with the get window position format %gp (Window Postion).

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited