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
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?
Hi Boris,
i think we are targetting different goals.
I am using the ultradockmanager and my question is about how to realize a behaviour like Georgie has shown me for the ultratabcontrol for the ultradockmanager. So how can i achieve a tab close button within the tab area of the ultradockmanager?
---
Ahmad,
my question targets the ultradockmanager not the ultratabcontrol.
Okay, but what is wrong with my first post and the following line:
this.ultraDockManager1.DefaultPaneSettings.AllowClose = Infragistics.Win.DefaultableBoolean.True; ?
I have tried this and it is providing a small close button for the top-right section of the pane's caption.
We are still following your forum thread.
Please feel free to let us know if you have any other questions on that matter, once you try the latest suggestion.
Thank you.
Hello Boris,
hello Danko,
sorry for my late answer.
Yes Boris, your answer is in that way correct that i also see a small close button within the caption area. But my question is if there is a chance to display it within the tab area - like it is possible with the ultratabcontrol. I suggest that there is no standard way to 'move' this close button within the tab area instead the caption area. Or do you have an example for that? The other question would be if there is a chance for a future implementation for my destinated behaviour of the dock manager.
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.
Sassan,
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.