Determine if only one instance is running: Difference between revisions
Content added Content deleted
(Updated to work with Nim 1.4: replaced "writeln" by "writeLine".) |
m (→{{header|Phix}}: IupCloseOnEscape no longer needed) |
||
Line 955: | Line 955: | ||
Ihandle dlg = IupDialog(IupVbox({IupLabel("hello")},"MARGIN=200x200")) |
Ihandle dlg = IupDialog(IupVbox({IupLabel("hello")},"MARGIN=200x200")) |
||
IupSetAttribute(dlg,"TITLE","Single Instance") |
IupSetAttribute(dlg,"TITLE","Single Instance") |
||
IupCloseOnEscape(dlg) |
|||
IupSetCallback(dlg, "COPYDATA_CB", Icallback("copydata_cb")); |
IupSetCallback(dlg, "COPYDATA_CB", Icallback("copydata_cb")); |
||
IupShow(dlg) |
IupShow(dlg) |