Page 1 of 1

Lock indicator and programmatically clicking a button

PostPosted: 23 Nov 2017 17:36
by cyracks
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ž

Re: Lock indicator and programmatically clicking a button

PostPosted: 27 Nov 2017 15:58
by Alexander Bulei
Hi,

Use this in some async event:

delphi code
IWCGJQButton1.TriggerEventInBrowser(jqbtnateClick)


Best Regards.