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 
> listIup-users@lists.sourceforge.nethttps://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