// This sample create one window per monitor
// and right information about each monitor.
event.load
// Scan monitors and create a window for each one of them
for(&index, 0, screen.monitor.count())
&this = window.create()
window.&this.autoClose(false, false)
window.&this.pos.now(
screen.monitor.left(&index), screen.monitor.top(&index),
screen.monitor.width(&index), screen.monitor.height(&index)
)
&w=window.&this.width()
&h=window.&this.height()
draw.&this.rect = 0,0,&w, &h, 0
draw.&this.text.ex(50,50,&index": "&w"*"&h, "verdana", 30, num.rgb(255,255,255))
draw.&this.text.ex(
50,75,"x:"window.&this.left()", y:"window.&this.top(), "verdana",
30, num.rgb(180,180,180)
)
draw.&this.paint
for.next
event.end
// Close the application when the user click on a window
event.mouse:click
for(&index, 0, var.array.count(mon))
window.&mon[&index].visible(false)
for.next
app.close()
event.end
|