Print Page | Close Window

TabContol ActiveX

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14093
Printed Date: 26 November 2024 at 7:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TabContol ActiveX
Posted By: patchjanx
Subject: TabContol ActiveX
Date Posted: 21 April 2009 at 1:18pm
I would like to add the close ''x'' button to the individual tabs on the tab control. Is this functionality possible.

Currently i can only get the ''x'' to show in the lower right hand corner for the entire control.



Replies:
Posted By: Krog
Date Posted: 27 June 2009 at 5:39am
Well... You can use markup on the TabControl. With it you can put an image of an X on each tab caption.

Something like:


<TextBlock>Caption <InlineUIContainer BaselineAlignment='Bottom'><Image Source="13"/></InlineUIContainer></TextBlock>

See the Suite Controls sample to know how it works.

But the problem is that the TabControl does not support the MarkupContext to receive the click event on the X image.

Anyone knows another way to implement it?

Look also at the TabManager sample. There it shows that a close button appears using the MDI form. Maybe it is it what you're looking for.


-------------
Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows XP SP2
Language: Visual Basic 6 SP6


Posted By: Baldur
Date Posted: 19 August 2009 at 10:17am
In this case i use Docking-Panels instead of TabControl.
It's look like TabControl and is easy to use (own forms for each tab) for adding and removing tab's.
The properties are set, that the user can't move or  change the panels except closing them.



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