Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Unload forms when closing tab
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Unload forms when closing tab

 Post Reply Post Reply
Author
Message
jmvvliet View Drop Down
Newbie
Newbie
Avatar

Joined: 03 August 2006
Location: Netherlands
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmvvliet Quote  Post ReplyReply Direct Link To This Post Topic: Unload forms when closing tab
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 03 August 2006 at 3:33pm
Hi, Add:
 
Unload frmUsers
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jmvvliet View Drop Down
Newbie
Newbie
Avatar

Joined: 03 August 2006
Location: Netherlands
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmvvliet Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
jmvvliet View Drop Down
Newbie
Newbie
Avatar

Joined: 03 August 2006
Location: Netherlands
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote jmvvliet Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.219 seconds.