Started by Emiliano ·
2014-03-09 13:16 UTC ·
6 replies · SMF topic #2102
Emiliano
2014-03-09 13:16 UTC
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
2014-03-10 07:09 UTC
I think you are looking for the
{2} event.
Emiliano
2014-03-11 06:58 UTC
I can not find the OnCancelClose event on Controlbar :'(
This event is only available on Modal and Modeless Dialog
owenwengerd
2014-03-11 15:56 UTC
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?
Emiliano
2014-03-13 13:15 UTC
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
2016-09-07 17:22 UTC
Emiliano,
Would you share your fooling method?
Jim
Emiliano
2016-09-08 14:07 UTC
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.