Page 1 of 1

Lock Indicator on ServerController (design time/run time)

PostPosted: 09 Jun 2017 09:28
by yocko
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

Re: Lock Indicator on ServerController (design time/run time

PostPosted: 09 Jun 2017 11:16
by Jorge Sousa
Hi

Send us the test case demo to our email or upload here

Re: Lock Indicator on ServerController (design time/run time

PostPosted: 09 Jun 2017 16:33
by yocko
Jorge Sousa wrote:Hi
Send us the test case demo to our email or upload here


Here is demo.

Thanks

Re: Lock Indicator on ServerController (design time/run time

PostPosted: 09 Jun 2017 17:47
by Jorge Sousa
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;