Centering pause commands on a particular form can be an exercise in futility 
because you can't know the exact height and width of the pause popup beforehand.
I've gone to doing the following approximation:

1.       Use the form TOP, LEFT, WIDTH and HEIGHT to calculate the center of 
the form.

2.       Subtract a reasonable amount from that to calculate the top left of 
the popup.

When centering on a particular control it gets lots more complicated..
Basically you have to use the properties of all the containers, starting with 
the form and it's client area  and drill down to find the exact screen location 
for the control.
It's lots of detail work to be avoided unless it is absolutely critical.

Dennis McGrath
Software Developer
QMI Security Solutions
1661 Glenlake Ave
Itasca IL 60143
630-980-8461
[email protected]
From: [email protected] [mailto:[email protected]] On Behalf Of Alastair Burr
Sent: Thursday, April 03, 2014 4:24 AM
To: RBASE-L Mailing List
Subject: [RBASE-L] - Pause positioning query

Some time ago I set up some variables to use in the pause command so that I 
could position the display in regular places as well as simply the default of 
central.

As far as I know, top right, top left, bottom right and bottom left work fine.

What I want now is top (and bottom) central but I can't find a way to make it 
work. And, presumably, for left and right central I would simply reverse the 
co-ordinates with appropriate adjustments.

Looking at what I originally set up in my variables I left out whichever one 
was the central parameter, eg: for vPos_Top_Left I use | TOP 10 | LEFT 10 and 
for vPos_Top_Centre I thought | TOP 10 | would work.

I do realise that I can position the display "manually" by trial and error with 
the correct number of pixels from the left but is there a way to let R:Base do 
the central positioning automatically?

Any guidance gratefully appreciated.
Regards,
Alastair.

Reply via email to