Hi.
I wrote a lua script using iuplua. it displays a dialog and can be 
minimized to tray - all working well.
Now i want to start my script only one. I added to my source:

-- 
8X------------------------------------------------------------------------------------
 

     local progname = "SomeProg";
     local iup = require "iuplua"
     iup.singleinstance = progname;
     if iup.singleinstance ~= progname then iup.Close(); os.exit(); end;
     ...
     local dlg = iup.dialog{ title = progname,
     ...
     }
     dlg.copydata_cb = function(self, cmdLine, size)
       self:show();
       self.bringfront = "yes";
      return;
     end;
-- 
8X------------------------------------------------------------------------------------
 


But: it doesnt work. The 1st instance doesnt come to front and 2nd 
instance keeps running.

Any Hints?

Thanks in advance.
Ulrich.

-- My environment: Win7-64, Lua5.3.1, TDM-GCC-5.1.0, precompiled 
iup-libs from sourceforge.



------------------------------------------------------------------------------
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to