R1 = Pointer to block:
R1 + 0 Visible area minimum x coordinate
R1 + 4 Visible area minimum y coordinate
R1 + 8 Visible area maximum x coordinate
R1 + 12 Visible area maximum y coordinate
Exit:
Block contains altered coordinates
This call shifts the x coordinates in the
supplied block so that the window described would
be centred horizontally on the screen. You can
use this call before Wimp_CreateWindow - eg:
SYS "WimpExt_CentreWindow",,q%
SYS "Wimp_CreateWindow",,q% TO handle%
or you can use it before Wimp_OpenWindow - eg:
SYS "WimpExt_CentreWindow",,q%+4
SYS "Wimp_OpenWindow",,q%
If you are using WimpExt_LoadTemplates then
windows can be centred automatically for you.
|
|
|