Hi,
I have created a timer and then I do iup.mainloop. In the timer I
create a dialog the 1st time. But somehow the dialog seems to be flickering:
iup = require("iuplua")
local timer = iup.timer{time = 50, run = "YES"}
local flag
function timer:action_cb()
print("Timer run")
if not flag then
local iupx = require "iupx"
plot = iupx.pplot {TITLE = "Simple Data", AXS_BOUNDS={0,0,100,100}}
plot:AddSeries ({{0,0},{10,10},{20,30},{30,45}})
plot:AddSeries ({{40,40},{50,55},{60,60},{70,65}})
iupx.show_dialog{plot; title="Easy Plotting",size="QUARTERxQUARTER"}
end
flag = true
end
iup.MainLoop()
What I want to achieve is that the dialog be created with the timer
function running in the background which may create additional dialogs.
When the user closes the dialog it does not affect the timer function and
it may keep creating more dialogs.
Also now once I have the above functionality what would be the procedure to
end the program?
Thanks,
Milind
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users