CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Lock Indicator on ServerController (design time/run time)

by yocko » 09 Jun 2017 09:28

Hi

I am testing use of LockIndicator. I placed it on Server Controller so all forms/frames can use it.

If I assign Lock Indicator in design time like:
Image


it doesn't work (see video bellow - click on first button).
Image

If I assign it in run time with code:
Code: Select all
  with BtnShowFrame_IndicatorAssignedInRunTime.JQButtonOptions.OnClick do
    begin
      Indicator      := IWServerController.IWCGJQLockIndicator1;
      IndicatorIndex := 0;
    end;


it works (see video above - click on second button)

Why design time assigned Lock Indicator doesn't work?

Regards
yocko
 
Posts: 28
Joined: 12 Mar 2017 19:27

by Jorge Sousa » 09 Jun 2017 11:16

Hi

Send us the test case demo to our email or upload here
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by yocko » 09 Jun 2017 16:33

Jorge Sousa wrote:Hi
Send us the test case demo to our email or upload here


Here is demo.

Thanks
You do not have the required permissions to view the files attached to this post.
yocko
 
Posts: 28
Joined: 12 Mar 2017 19:27

by Jorge Sousa » 09 Jun 2017 17:47

The problem is that button onclick indicator reference assigned at designtime, is somehow lost when the form is loaded.

You can check this closing and reopening the form.

so for now you ve to do the following:

Code: Select all
procedure TIWFormStart.IWAppFormCreate(Sender: TObject);
begin
  with BtnShowFrame_IndicatorAssignedInDesignTime.JQButtonOptions.OnClick do
    begin
      Indicator      := IWServerController.IWCGJQLockIndicator1;
      IndicatorIndex := 0;
    end;
end;

Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQLockIndicator

cron

Who is online

Users browsing this forum: No registered users and 0 guests

Contact Us.