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
I think you are looking for the OnCancelClose (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Event/CancelClose.htm) event.
I can not find the OnCancelClose event on Controlbar :'(
This event is only available on Modal and Modeless Dialog
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?
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
Emiliano,
Would you share your fooling method?
Jim
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.