Page 1 of 2

LockIndicator not working when using IWCGJQShowMessage

PostPosted: 16 Mar 2014 18:34
by bahry
Hi,
Am using the following code on form create
btnSave.JQButtonOptions.OnClick.Indicator := IWCGJQLockIndicator1;
btnSave.JQButtonOptions.OnClick.IndicatorIndex := 0;

In the following procedure the lockIndicator working ok
procedure TIWFrmtest.btnSaveJQButtonOptionsClick(Sender: TObject;
AParams: TStringList);
begin
makesave;
end;

But if I use IWCGJQShowMessage in the form with the same saving procedure

procedure TIWFrmtest.btnSaveJQButtonOptionsClick(Sender: TObject;
AParams: TStringList);
begin
IWCGJQShowMessage.ResetJSonProps;
IWCGJQShowMessage.JQShowMessageOptions.Labels.OK:= 'Save';
IWCGJQShowMessage.JQShowMessageOptions.Labels.Cancel:= 'Cancel';
IWCGJQShowMessage.JQShowMessageOptions.OnConfirm.OnEvent:= JQShowMessageOnConfirmEvent;
IWCGJQShowMessage.JQShowMessageOptions.OnCancel.OnEvent:= JQShowMessageOnCancelEvent;
IWCGJQShowMessage.ShowMessage('Are you sure want to save ?', jqsmtConfirm);
end;

procedure TIWFrmtest.JQShowMessageOnConfirmEvent(Sender: TObject;
AParams: TStringList);
begin
makesave;
end;
Is there any thing wrong with my code?
I need the Lock the input from the user until the saving procedure finish

Regards

Re: LockIndicator not working when using IWCGJQShowMessage

PostPosted: 18 Mar 2014 11:29
by Jorge Sousa
Hi Bahry

I believe you're only problem is that makesave is too fast to you realize the visualization of lockindicator.

Try to add a sleep(2000); before makesave;

One another note, please be careful with IWCGJQShowMessage.ResetJSonProps;

ResetJSonProps is a method that only has meaning in our demo, because we need to show a feature at the time.

Re: LockIndicator not working when using IWCGJQShowMessage

PostPosted: 18 Mar 2014 13:16
by bahry
cgdevtools_support wrote:Hi Bahry

I believe you're only problem is that makesave is too fast to you realize the visualization of lockindicator.

Try to add a sleep(2000); before makesave;

One another note, please be careful with IWCGJQShowMessage.ResetJSonProps;

ResetJSonProps is a method that only has meaning in our demo, because we need to show a feature at the time.



Very Thanks, I'll try it.

Re: LockIndicator not working when using IWCGJQShowMessage

PostPosted: 18 Jul 2014 15:23
by sesam
Hello,

I have the same problem.
Using Accordion the LockIndicator shows.
It doesn't show when I use IWCGJQShowMessage.ShowMessage with jqsmtConfirm.
And it doesn't when I use the ContextMenu.

The process that is executed takes several seconds.

Thanks,
Andreas

Re: LockIndicator not working when using IWCGJQShowMessage

PostPosted: 18 Jul 2014 15:44
by Jorge Sousa
Hi

since both things: indicator and showmessage needs higher zindexs, and showmessage zindex it's fixed: 99999, please set lock at Indicator Item property BaseZ to 99998

Re: LockIndicator not working when using IWCGJQShowMessage

PostPosted: 21 Jul 2014 14:49
by sesam
Hi,
it's still not working.
Maybe I do something wrong...
Attached is a test case.

Thanks,
Andreas

Re: LockIndicator not working when using IWCGJQShowMessage

PostPosted: 22 Jul 2014 12:33
by Jorge Sousa
Hi Andreas

Ok forget the zindex, after inspecting your demo, we had the opportunity to see the cause of the issue.

Fix avaialable for next release:

2.2.1.12

JQShowMessage:
- Wasn't showing the indicator for OnConfirm or OnCancel events

Re: LockIndicator not working when using IWCGJQShowMessage

PostPosted: 22 Jul 2014 13:23
by sesam
Hello,

thank you!
I do have the same problem with the JQContextMenu..

Kind regards,
Andreas

Re: LockIndicator not working when using IWCGJQShowMessage

PostPosted: 22 Jul 2014 14:47
by Alexander Bulei
Hi sesam,

Also fixed in V2.2.1.12.
Thanks.

Best Regards.

Re: LockIndicator not working when using IWCGJQShowMessage

PostPosted: 24 Jul 2014 15:29
by sesam
Hi,
it works now in ShowMessage but still not in ContextMenu.

Attached is a test case..

Regards,
Andreas