Window creation: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1,055:
 
iup.MainLoop()
</lang>
 
=={{header|M2000 Interpreter}}==
Window has title by default the name of variable, here MyForm
 
Here we open MyForm as modal window (with 1 as first parameter, after "Show")
 
Window show a square in left side of title (we can change this to be at right), so this close the window (if we have proper event function, we can quit the closing). Also using key combination Alt-F4 close window too (also send event).
Window open in the monitor where we see the mouse pointer.
 
<lang M2000 Interpreter>
Module DisplayWindow {
Declare MyForm Form
Method MyForm,"Show",1
}
DisplayWindow
</lang>
 
Anonymous user