Re: [Iup-users] Check the UI periodically

2017-02-24 Thread John Spikowski
I'm using IUP with a FFI interface and IupLoopStepWait() has worked great from me. I also filter mouse movement callbacks to not overload my custom event processing loop. On Fri, 2017-02-24 at 13:56 -0300, Antonio Scuri wrote: >   IupLoopStep in Windows is just like that without the "while". > > B

Re: [Iup-users] Check the UI periodically

2017-02-24 Thread Andrew Robinson
Just curious, how does IUP retrieve messages associated with the application, if it doesn't use peekmessage()? On 2/24/2017 at 9:56 AM, Antonio Scuri wrote: IupLoopStep in Windows is just like that without the "while". Best, Scuri On Fri, Feb 24, 2017 at 12:11 PM, Andrew Robinson wrot

Re: [Iup-users] Check the UI periodically

2017-02-24 Thread Milind Gupta
Thank you everyone for the suggestions I will try it out. I had missed iuploopstep function. Right now to solve my problem what I had done was to create a time and when I wanted to process the GUI controls I would start the timer and call iupmainloop. The timer when expired stopped itself and retur

Re: [Iup-users] Check the UI periodically

2017-02-24 Thread Antonio Scuri
IupLoopStep in Windows is just like that without the "while". Best, Scuri On Fri, Feb 24, 2017 at 12:11 PM, Andrew Robinson wrote: > I was wondering what I would do when faced with this same situation myself > within a messaging OS like Windows, and while I have not run into that > situation

Re: [Iup-users] Check the UI periodically

2017-02-24 Thread Andrew Robinson
I was wondering what I would do when faced with this same situation myself within a messaging OS like Windows, and while I have not run into that situation with IUP yet, I believe the solution would be the same as when not using IUP: while ( PeekMessage(&msg, NULL,0,0,PM_REMOVE) ) { TranslateM

Re: [Iup-users] Check the UI periodically

2017-02-24 Thread Antonio Scuri
To be able to interact with the interface the application must return the control to the system even if for just a moment. The IupLoopStep function does exactly that. So if you have a long processing, you can call IupLoopStep periodically so the system can process pending messages, including d

Re: [Iup-users] Check the UI periodically

2017-02-23 Thread John Spikowski
I use IupLoopStepWait with Script BASIC to give me more control over my interaction with IUP. On Thu, 2017-02-23 at 16:42 -0800, Milind Gupta wrote: > Hello, >         I have a long process that runs when triggerred from a UI. I > don't care very much when the UI is not responding for long periods

[Iup-users] Check the UI periodically

2017-02-23 Thread Milind Gupta
Hello, I have a long process that runs when triggerred from a UI. I don't care very much when the UI is not responding for long periods of time. I am although looking for a way to update the text box on the UI and still maintain control in my long process. Also it would be nice if I decide