Print Page | Close Window

Unload forms when closing tab

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4727
Printed Date: 17 November 2024 at 7:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Unload forms when closing tab
Posted By: jmvvliet
Subject: Unload forms when closing tab
Date Posted: 03 August 2006 at 3:22pm
Hi all,
 
does anyone know how to unload a form that is hosted in a tab? I've done this to handle the form in the tab:
 
tcMain.InsertItem 0, "Users", frmUsers.hWnd, 0
 
But when i Remove an item from the tablist, it looks like I'm unable to also unload the form.
 
Could anyone help me with that please?
 
Thanx in advance


-------------
JMvV



Replies:
Posted By: Oleg
Date Posted: 03 August 2006 at 3:33pm
Hi, Add:
 
Unload frmUsers


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jmvvliet
Date Posted: 04 August 2006 at 12:27am
Yeah ok, but in what event? I have a 'close' button in the upperright corner of the tab. That fires the NavigateButtonClick (?) event. In that event I want to remove the tab that is currently selected. That is done automatically. Doesn't the tabcontrol have a property like 'HostedObject' or something like that? If not, I'll miss it

-------------
JMvV


Posted By: Oleg
Date Posted: 04 August 2006 at 9:03am
Hi,
yes, NavigateButtonClick is the place.
 
In 10.3 we added designer time support for TabControl. Check Toolbox sample orTabManager. It easy than create each page in separate frame and unload them.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jmvvliet
Date Posted: 07 August 2006 at 2:59am
Ok, but due to the design of my application is set up dynamically, so I need to assign a form handle dynamically to a tab in the tabcontrol. Therefore, I also need to unload the form on the tab I want to close dynamically. It ain't be impossible at the moment...

-------------
JMvV



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net