![]() |
TabContol ActiveX |
Post Reply ![]() |
Author | |
patchjanx ![]() Newbie ![]() Joined: 21 April 2009 Location: United States Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() 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. |
|
![]() |
|
Krog ![]() Groupie ![]() Joined: 06 February 2008 Status: Offline Points: 100 |
![]() ![]() ![]() ![]() ![]() |
Well... You can use markup on the TabControl. With it you can put an image of an X on each tab caption.
Something like:
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 |
|
![]() |
|
Baldur ![]() Senior Member ![]() Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
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 |