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 <antonio.sc...@gmail.com> wrote: 
  IupLoopStep in Windows is just like that without the "while". 


Best,
Scuri




On Fri, Feb 24, 2017 at 12:11 PM, Andrew Robinson <arobinso...@cox.net> 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 with IUP yet, I believe the solution would be the same as when not
using IUP:

while ( PeekMessage(&msg, NULL,0,0,PM_REMOVE) ) {
    TranslateMessage(%msg);
    DispatchMessage(%msg); }

This code would be inserted in your callback process triggered by your IUP
component. 

I don't believe this in an IUP issue, no matter what OS you are using.

Thanks,

Andrew


On 2/24/2017 at 6:56 AM, Antonio Scuri <antonio.sc...@gmail.com> wrote: 
  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 drawing controls, clicking
on buttons, etc. Of course that creates other problems, you must disable
things in the interface that must not be activated during the long process.


  One common approach is to use a progress dialog to display processing
progress information. IupProgressDlg can be used along with IupShow. The main
dialog can then be disabled with SIMULATEMODAL=Yes.


Best,
Scuri




On Thu, Feb 23, 2017 at 10:14 PM, John Spikowski <supp...@scriptbasic.org>
wrote:

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 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 to end the
program the cross button functionality still works and closes the program.
       Is there a way to achieve this without resorting to multi threading?


Thanks,
Milind
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to