It works. Thanks a lot.
Ulrich.

Am 15.09.2015 um 14:53 schrieb Antonio Scuri:
  Hi,

IUP global attributes are not set/get in that way. You must use the iup.SetGlobal and iup.GetGlobal functions.

Best,
Scuri


On Tue, Sep 15, 2015 at 4:58 AM, Ulrich Schmidt <[email protected] <mailto:[email protected]>> wrote:

    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]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/iup-users




------------------------------------------------------------------------------


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

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

Reply via email to