OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: Emiliano on March 09, 2014, 06:16:19 AM

Title: Prevent closing Controlbar
Post by: Emiliano on March 09, 2014, 06:16:19 AM
Hello to all,
I need to prevent the closure of a Controlbar in some conditions.
So I decided to use the event "Close" the Controlbar, but this starts the code inserted in it, but in the end it always closes the controlbar.   :-\

How can I do?
Thanks in advance
Title: Re: Prevent closing Controlbar
Post by: owenwengerd on March 10, 2014, 12:09:50 AM
I think you are looking for the OnCancelClose (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Event/CancelClose.htm) event.
Title: Re: Prevent closing Controlbar
Post by: Emiliano on March 10, 2014, 11:58:15 PM
I can not find the OnCancelClose event on Controlbar    :'(
This event is only available on Modal and Modeless Dialog
Title: Re: Prevent closing Controlbar
Post by: owenwengerd on March 11, 2014, 08:56:14 AM
Sorry, I did not think about the form type. I don't think there is any way to prevent a control bar from closing. What is the underlying problem that you are trying to solve?
Title: Re: Prevent closing Controlbar
Post by: Emiliano on March 13, 2014, 06:15:36 AM
Ok, I solved the problem by fooling.
However, it is a shame that you can not prevent the closure of a controlbar in some circumstances   :'(

Thanks for your help
Title: Re: Prevent closing Controlbar
Post by: Jim Short on September 07, 2016, 10:22:17 AM
Emiliano,
Would you share your fooling method?
Jim
Title: Re: Prevent closing Controlbar
Post by: Emiliano on September 08, 2016, 07:07:19 AM
Quote from: Jim Short on September 07, 2016, 10:22:17 AM
Emiliano,
Would you share your fooling method?
Jim

Honestly I do not remember.
It is a complex application and it is now hard for me to see what I did.