CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Lock indicator and programmatically clicking a button

by cyracks » 23 Nov 2017 17:36

Hello.

It is written that LockIndicator can be only used on events(https://www.cgdevtools.com//cgforum/viewtopic.php?f=102&t=382#p12551).
Because of that I created a Button and linked event on click with a lock indicator. If button is clicked manually everything is ok, but if button is clicked programmatically no lock indicator is shown (event on click is executed correctly)

Code: Select all
TIWCGJQButton(ButtonConfirm).JQButtonOptions.OnClick.OnEvent(ButtonConfirm, AParams);


Is there any other way to programmatically click a button, so that lock indicator is shown ?

Regards,
Tomaž
cyracks
 
Posts: 92
Joined: 09 Feb 2016 12:47

by Alexander Bulei » 27 Nov 2017 15:58

Hi,

Use this in some async event:

delphi code
IWCGJQButton1.TriggerEventInBrowser(jqbtnateClick)


Best Regards.
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 JQButton & JQButtonSet

cron

Who is online

Users browsing this forum: No registered users and 3 guests

Contact Us.