Prevent closing Controlbar

Started by Emiliano, March 09, 2014, 06:16:19 AM

Previous topic - Next topic

Emiliano

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

owenwengerd

Owen Wengerd (Outside The Box) / ManuSoft

Emiliano

I can not find the OnCancelClose event on Controlbar    :'(
This event is only available on Modal and Modeless Dialog

owenwengerd

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?
Owen Wengerd (Outside The Box) / ManuSoft

Emiliano

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

Jim Short

Emiliano,
Would you share your fooling method?
Jim
Jim Short

Emiliano

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.