Hi,
my question is if there's currently a chance to show an close-button [x] within the tab-area like illustrated on the image below.
If only found a setting to display the close-button within the caption area - but i wan't a look & feel of such a tab like in current internet-browsers like Firefox / IE ...
Kind regards,
Sassan
Hello Sassan,
If I udnerstand well your requirements, you could solve this task using different approaches. I made small sample for you. Please take a look at the attached sample for more details and let me know if you have any questions.
Regards
Here is the sample
Sassan,
Please take your time, I will be waiting for your feedback.
Hi Boris,
i've implemented your code. The problem is - that if i observed the changes correctly - the close buttons appears within the caption area. Is there a way to display it within the tab area? I am using some algorithm to have a visual behaviour like a tab control with some features of the dockmanager control (i.e. undock / slide - mechanism). So i am hiding the caption area of 'my' dockmanager control.
The option I gave you is a built-in functionality, another approach would be to use CreationFilter but I do not see the point in this, since you could just create a new instance of the 'UltraButton' class and place it wherever you want, doing whatever you would like it to.
so there is no comfortable way to achieve a behaviour like illustrated in the first posts within this thread?
I mean if i create buttons and place them within the application by myself i get problems with longer tab texts, positioning and so on.
Whats the point of the CreationFilter? There is a way to build my destinated functionality with using that filter?
Hi Sassan,
There should be some way to achieve something like this with CreationFilter for sure. I am not sure what you want now - you want a close button on the UltraTabControl's tab page, but you do not want it on the caption with the built-in functionality. From what I can see looking at your screenshot, the close button is exactly in the caption area - am I missing something?
I agree 100% - please add this as a feature request for future releases. I am trying to implement this now myself and in our application we are creating / adding / removing panes dynamically so attaching the error handler has become a wee bit trickier as well as positioning the buttons.
Edit:
I have created an official feature request for this here:
http://ideas.infragistics.com/forums/192359-windows-forms/suggestions/4279784-ultradockmanager-option-for-close-buttons-in-tab
If you would like this functionality as well, please go vote for it.
Thanks!
solved the second problem by using a ascii 1 symbol.
So now everything is fine.
Thank you for your patience and help.
Any chance that this will get a build-in functionality for a next release of your controls?
Hi again,
some correction.
By using the tabs rectangle width i was able to solve the positioning problem.
But still have no clue how to extend the tab width by a fixed size to have place for the closing button.
i realised your example within our application and it's getting close to that what i've intented.
But there are 2 problems i can not solve by myself.
First, how to extend the tab - area width, cause they don't have the space for the close buttons without having a overlap of tab-text and the inserted button.
Second, all buttons seems to have the same position related to their owning tab-area. But there is needed a individual placement depending on the owning tab-area element to prevent such a miss-displacement like seen on the screenshot above.
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.