Prevent closing Controlbar

Started by Emiliano · 2014-03-09 13:16 UTC · 6 replies · SMF topic #2102

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 {2} 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
author=Jim Short link=topic=2102.msg12086#msg12086 date=1473268937 wrote:
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.