Frank,
As mentioned in my original reply, my time and schedule permitting,
I'll prepare
a sample application to illustrate the use of MDI features in a multi-display
environment.
In the meantime, here is something you can try ...
The values MonitorWorkareaLeft, MonitorWorkareaTop, MonitorWorkareaRight,
MonitorWorkareaBottom from MONITOR_PROPERTY should give you the info you need.
Here are sample calls to MONITOR_PROPERTY:
GETPROPERTY APPLICATION MONITOR_PROPERTY[0] vMonitor
--> 0,Y,0,0,1920,1080,0,0,1920,1040
GETPROPERTY APPLICATION MONITOR_PROPERTY[1] vMonitor
--> 1,N,1920,0,1920,1080,1920,0,3840,1080
Notice the last four values of the comma separated values. The work area
dimensions of MONITOR_PROPERTY[1] is the extension of MONITOR_PROPERTY[0].
You can get (using GETPROPERTY) the Top and Left of a form and check where it
is located. From there you can determine the location of the form.
That's all there is to it!
Feel free to reach out to me if you have any questions.
Very Best R:egards,
Razzak
At 12:08 PM 2/20/2017, you wrote:
Awesome, I know anything is possible.. ! Looking forward to it
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of A. Razzak Memon
Sent: Monday, February 20, 2017 9:07 AM
To: [email protected]
Subject: Re: [RBASE-L] - MDI form Monitor control ?
Frank,
My time and schedule permitting, let me prepare you a sample
application (eXclusively R:BASE X Enterprise),
to illustrate the use of MDI features in a multi-display environment.
Very Best R:egards,
Razzak
At 08:53 AM 2/20/2017, Frank Taylor wrote:
>In RBase X (10.0.2.20126) I know we have the ability to see if there is
>a second (or more) monitors on the terminal running the application.
>
>What I want to do: I have a form that brings up another form in MDI
>mode, and I want that form placed on the second monitor. Right now in
>version 9.5 I use these commands on startup of the MDI form to place
>this form as far to the left of the primary monitor as I can:
> PROPERTY RBASE_FORM TOP 10
> PROPERTY RBASE_FORM LEFT 1000
>
>These are the notes on the new GetProperty commands:
>GETPROPERTY APPLICATION MONITOR_COUNT vMonitorCount GETPROPERTY
>APPLICATION MONITOR_PROPERTY[0] vMonitorProps
>-- What it returns: vMonitorProps = 0,Y,0,0,1920,1080,0,0,1920,1040
>-- What each parameter means: MonitorNumber, MonitorIsPrimaryYN,
>MonitorLeft, MonitorTop, MonitorWidth, MonitorHeight,
>MonitorWorkareaLeft, MonitorWorkareaTop, MonitorWorkareaRight,
>MonitorWorkareaBottom
>
>How would I use this to locate my MDI form on the second monitor?
>Anyone done this yet?
--
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.