Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - TabContol ActiveX
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TabContol ActiveX

 Post Reply Post Reply
Author
Message
patchjanx View Drop Down
Newbie
Newbie


Joined: 21 April 2009
Location: United States
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote patchjanx Quote  Post ReplyReply Direct Link To This Post Topic: TabContol ActiveX
    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.
Back to Top
Krog View Drop Down
Groupie
Groupie


Joined: 06 February 2008
Status: Offline
Points: 100
Post Options Post Options   Thanks (0) Thanks(0)   Quote Krog Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
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.188 seconds.