![]() |
Tabbed Workspace - Stop user closing some tabs |
Post Reply
|
| Author | |
LeeHayton
Senior Member
Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
Topic: Tabbed Workspace - Stop user closing some tabsPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
LeeHayton
Senior Member
Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 05 November 2008 at 6:33am |
|
Hi,
Copy code from our MDISample.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
LeeHayton
Senior Member
Joined: 25 November 2005 Location: United Kingdom Status: Offline Points: 102 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |