CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

How to remove "X" from TIWCGJQDialog

by ScottWGast » 06 Aug 2014 22:34

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
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Jorge Sousa » 07 Aug 2014 00:07

Hello

From the docx, in JQDialogOptions: http://www.cgdevtools.com/docs/_html/IWCGJQDialog.TIWCGJQDialogOptions.htm

published property Closable
When false, button close[x] will be removed and dialog cannot be closed.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by ScottWGast » 07 Aug 2014 20:46

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
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02

by Jorge Sousa » 07 Aug 2014 22:36

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.
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by ScottWGast » 08 Aug 2014 15:19

Don't worry about changing it now... setting ShowCloseIcon := False does the trick for me!

Thank you!
Scott
ScottWGast
 
Posts: 875
Joined: 23 May 2012 11:02


Return to JQDialog

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.