Page 1 of 1
How to remove "X" from TIWCGJQDialog
Posted:
06 Aug 2014 22:34
by ScottWGast
I'd like to remove the "X" when the TIWCGJQDialog is displayed, forcing the user to click one of the buttons that I have added to the dialog rather than just hitting the "X" to close the window.
What do you think?
Thanks,
Scott
Re: How to remove "X" from TIWCGJQDialog
Posted:
07 Aug 2014 00:07
by Jorge Sousa
Hello
From the docx, in JQDialogOptions:
http://www.cgdevtools.com/docs/_html/IWCGJQDialog.TIWCGJQDialogOptions.htmpublished property Closable
When false, button close[x] will be removed and dialog cannot be closed.
Re: How to remove "X" from TIWCGJQDialog
Posted:
07 Aug 2014 20:46
by ScottWGast
If I set myDialog.JQDialogOptions.Closable := True, then the modal dialog box will not disappear, even if I set myDialog.Visable := False.
I have found, however, another property that works as expected:
myDialog.ShowCloseIcon := False; // actually I can set this property in the Object Inspector in the IDE.
Thanks for your help.
Scott
Re: How to remove "X" from TIWCGJQDialog
Posted:
07 Aug 2014 22:36
by Jorge Sousa
Hello
About
myDialog.JQDialogOptions.Closable := True
yes this property is tricky, because if it's False, we need to set to true before Close the dialog. We cannot change now, to not break the code.
Re: How to remove "X" from TIWCGJQDialog
Posted:
08 Aug 2014 15:19
by ScottWGast
Don't worry about changing it now... setting ShowCloseIcon := False does the trick for me!
Thank you!
Scott