CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Repeat ... until

by zsleo » 22 Jan 2015 05:06

I realise I should be coded the attached project for async but I have a huge section of win32 code I am converting that needs this methodology.

The problem I am am having is that I don't know how to force the display of the dialog before the repeat .. until is entered. I also cant get any other sync or async event to trigger while in the repeat .. until loop.

Suggestions please.

TIA
You do not have the required permissions to view the files attached to this post.
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by dfields » 22 Jan 2015 06:27

Have you tried the RenderRegionAsync procedure? Place the controls you need to refresh inside an TIWCGJQRegion named MyRegion for this example. Then inside your loop call RenderRegionAsync(MyRegion). You will have to add IWCGAsyncRender to your uses clause.

Code: Select all
repeat
  sleep(lv_I);
  RenderRegionAsync(MyRegion);
until gv_Stop or not DLG.Visible;


For performance I try to use sub-regions to group controls into smaller areas. That allows me to update specific areas of the page as needed. Doing it that way prevents refreshing controls that have not changed as would happen if you updated a larger region.
dfields
 
Posts: 130
Joined: 24 Jul 2013 20:14

by zsleo » 22 Jan 2015 22:03

I did try this and a number of other variations and, no, it does not display the dialog.

Thanks for the suggestion.
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by zsleo » 27 Jan 2015 04:32

...bump

Is there a solution to this or should I just give up?

Regards
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 27 Jan 2015 11:24

Hi zsleo,

Workaround solution in attachments.

Best Regards.
You do not have the required permissions to view the files attached to this post.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to General

Who is online

Users browsing this forum: No registered users and 82 guests

Contact Us.