onHide not triggered when closing main window

Questions, tips and tricks and techniques for scripting in Servoy

onHide not triggered when closing main window

Postby justink » Mon Aug 25, 2014 1:44 am

Hi,

I'm using Servoy version: 7.4.1 - build 2028

I'm trying to trigger the onHide function in the main window but when I set a breakpoint in the smart client it doesn't trigger. I does trigger when closing the child windows but never for the main window. I have set a breakpoiont in the base form and also tried overriding the function in the main form and setting a breakpoint or returning false but still no luck...it doesn't appear to ever get called.

Any help appreciated.
justink
 
Posts: 4
Joined: Mon Aug 25, 2014 1:35 am

Re: onHide not triggered when closing main window

Postby ROCLASI » Mon Aug 25, 2014 11:13 am

Hi,

Do realize that onHide is a form event and not a window/dialog event. So they are not only triggered when you close a window/dialog but also when you switch forms in dialogs/windows.
Having said that, when you close the main window you in fact close the whole solution. I guess because you are closing the solution Servoy doesnt bother to trigger any onHide events.
If you need to handle things just before you close the solution you can use the onClose event for this (see properties on the main solution node).

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: onHide not triggered when closing main window

Postby justink » Wed Aug 27, 2014 4:31 am

That's just what I needed.

Thanks.
justink
 
Posts: 4
Joined: Mon Aug 25, 2014 1:35 am


Return to Methods

Who is online

Users browsing this forum: No registered users and 13 guests

cron