Post Reply

Forums -> UltraMon™ SDK -> How to programmatically stretch an application on some or all monitors
António Belard   2011-05-31 22:52
I wonder if is it possible to create logic set of monitors and address them that way.

for instance on a 4 monitor set I would like to define them as 2 logical monitors and them stretch an image on them.

Can I do it programmatically?

TIA
Christian Studer   2011-06-01 08:44
That's not supported, but you can get the coordinates and dimensions of the monitors, then position and size your window accordingly.

Assuming you have 3 monitors, positioned in a single row, with monitor 1 on the left, 2 in the center and 3 on the right, you would use code like this to determine the position and size needed to place a window across monitors 1 and 2:Set sys = CreateObject("UltraMon.System") Set mon1 = sys.Monitors("1") x = mon1.WorkLeft y = mon1.WorkTop width = mon1.WorkWidth height = mon1.WorkHeight Set mon2 = sys.Monitors("2") width = width + mon2.WorkWidth

Christian Studer - www.realtimesoft.com
Forums -> UltraMon™ SDK -> How to programmatically stretch an application on some or all monitors

Post Reply