Print Page | Close Window

Tabbed Workspace - Stop user closing some tabs

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=12607
Printed Date: 07 October 2024 at 10:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Tabbed Workspace - Stop user closing some tabs
Posted By: LeeHayton
Subject: Tabbed Workspace - Stop user closing some tabs
Date Posted: 04 November 2008 at 9:27am
I want to stop a user from closing a particular tab.  Is it possible to display the "Close" tab option on some tabs and not others?
 
If not how would I do this?
 
Thanks
Lee



Replies:
Posted By: Oleg
Date Posted: 05 November 2008 at 4:38am
Hi,
 
Catch newitem event and set Closable property for items you need:
 
Private Sub Workspace_NewItem(ByVal Item As XtremeCommandBars.ITabControlItem)
    Item.Closable = False
End Sub


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


Posted By: LeeHayton
Date Posted: 05 November 2008 at 5:17am
Thanks Oleg - but can you tell me how I Catch that a new item (Tab) has been added to the workspace and it's handle/ID?
 
Regards
Lee


Posted By: Oleg
Date Posted: 05 November 2008 at 6:33am
Hi,
Copy code from our MDISample.


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


Posted By: LeeHayton
Date Posted: 05 November 2008 at 6:37am
Ah, I see what you have done there - I never knew you could do that.
 
Thanks again
Lee



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