Re: [Iup-users] Feature proposition

2019-07-04 Thread Antonio Scuri
Hi, We already have that, see the TRAY, TRAYIMAGE and TRAYTIP attributes of a IupDialog. Yes, they must be associated with a dialog even if the dialog is hidden. Best, Scuri Em ter, 2 de jul de 2019 às 20:56, Johann Philippe via Iup-users < iup-users@lists.sourceforge.net> escreveu: > For

Re: [Iup-users] Feature proposition

2019-07-04 Thread Johann Philippe via Iup-users
Oh my bad. Thanks. Le jeudi 4 juillet 2019 à 14:32:28 UTC+2, Antonio Scuri a écrit :   Hi,   We already have that, see the TRAY, TRAYIMAGE and TRAYTIP attributes of a IupDialog. Yes, they must be associated with a dialog even if the dialog is hidden. Best,Scuri Em ter, 2 de jul de

[Iup-users] using IDLE_ACTION with threads

2019-07-04 Thread Matthew Kennedy
Hi, I've trawled through the mailing list archives trying to research this. I hope I haven't missed a solution to this already: I have IUP's main-loop running on thread, and I have another thread that needs to update something in the GUI. I gather it's not safe to call IUP functions from a NON IU

Re: [Iup-users] using IDLE_ACTION with threads

2019-07-04 Thread Antonio Scuri
No, there isn't. Once the idle is set, it will be called the next time the MainLoop regain control. But your are setting from another thread so the mainloop is running. Maybe the solution would be to set the idle in the main loop thread where you can have more control about that. Best, Scuri E

Re: [Iup-users] using IDLE_ACTION with threads

2019-07-04 Thread Matthew Kennedy
I'm a bit stumped on how to communicate with the IUP thread from another thread. Are the options basically polling from idle action, or an IupTimer callback? I measured the idle action overheard and it's basically 8% of a CPU core and so an IupTimer seems better. If I use an IupTimer though, I'll

Re: [Iup-users] using IDLE_ACTION with threads

2019-07-04 Thread Antonio Scuri
Hi, The thread situation is generally used when the application actually do multiprocessing of somehow. > What do IUP users typically do when they have a long running process they need to provide UI feedback on, but can't break the long running process up into time slices suitable for IupTimer

Re: [Iup-users] using IDLE_ACTION with threads

2019-07-04 Thread Andrew Robinson
Ola, IupLoopStep is not for multithreading purposes, it is for allowing queued Windows messages to pass through to other apps that are waiting for Windows messages. This usually happens when you do something, say like draw 10,000 ellipses, which takes a long time, and during that time other apps

[Iup-users] IupPopup FontDlg

2019-07-04 Thread John Spikowski
Hi Antonio, I'm trying to reproduce your simple editor tutorial using the ScriptBasic IUP extension module on the Raspberry Pi 3 B which I compiled an IUP distribution for. Everything seems to be working fine other than those wierd warning messages you told me to ignore. I just cant seem to get th

Re: [Iup-users] IupPopup FontDlg

2019-07-04 Thread Antonio Scuri
Don't know. Seems to be something inside GTK. If you take a look at iup/src/gtk/iupgtk_fontdlg.c you will see that the IUP code is quite simple, GTK does all the work. Maybe something in GTK was not initialized correctly when running the script. Missing IupOpen? Best, Scuri Em qui, 4 de jul

Re: [Iup-users] IupPopup FontDlg

2019-07-04 Thread John Spikowski
It works fine as a standalone executable. No errors until IupPopup() of the FontDlg occurs. Could I be missing something in my extension module make? On Thu, 2019-07-04 at 21:05 -0300, Antonio Scuri wrote: > Don't know. Seems to be something inside GTK. If you take a look at > iup/src/gtk/iupgt