Entry
R1 -> 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
R1 + 28 window flags
Exit
Block contains altered coordinates
This call shifts the Y coordinates in the supplied block so that the window
described would be centred vertically on the screen. You can use this call
before Wimp_CreateWindow - eg :
SYS "WimpExt_CentreWindowV",,q%
SYS "WimpExt_CreateWindow",,q% TO handle%
or you can use it before Wimp_OpenWindow - eg :
SYS "WimpExt_CentreWindowV",,q%+4
SYS "WimpExt_OpenWindow",,q%
If you are using WimpExt_LoadTemplates then windows can be centred
automatically for you (see description above).
Provided by Windows
|
|
|