Re: /IUP/ Help needed with examples
- Posted by andi49 Jan 08, 2016
- 2078 views
Hi
these are the examples from the IUP side: They work
http://webserver2.tecgraf.puc-rio.br/iup/examples/Lua/message.lua
-- IupMessage Example in IupLua -- Shows a dialog with the message: “Click the button”. require( "iuplua" ) iup.Message ("IupMessage", "Press the button")
http://webserver2.tecgraf.puc-rio.br/iup/examples/C/message.c
/* IupMessage Example */ #include <stdlib.h> #include <stdio.h> /* IUP libraries include */ #include <iup.h> /* Main program */ int main(int argc, char **argv) { /* Initializes IUP */ IupOpen(&argc, &argv); /* Executes IupMessage */ IupMessage("IupMessage Example", "Press the button"); /* Finishes IUP */ IupClose (); /* Program finished successfully */ return EXIT_SUCCESS; }
Looking at http://webserver2.tecgraf.puc-rio.br/iup/en/dlg/iupmessage.html
IupMessage seemd to use PARENTDIALOG (even if it is not needed).
Maybe, (i say only maybe) if IupAlarm sets PARENTDIALOG and dies than IupMessage may use an invalid handle as parent and may die.
Just an idea.
Andreas