Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Resizing tab widths based on text
posted

Salutations. This question applies to both UltraTabbedMdiManager and UltraTabControl.

I'm trying to figure out how to resize the width of the tab based on a change. In specific, to the tab's Appearance. I want to make the activate tab bold if it is the current window and non-bold if it is not. If I just replace the Appearance object, it does not resize the tab and the text goes off the side of the tab. Because of the variable length of our tabs, they don't want a fixed tab width.

Is there a method to reset the width of the tab using the new Appearance?

  • 4618
    Verified Answer
    posted

    Hi dylanmoonfire,

    I have constructed and attached a sample which demonstrates the behavior that you have described.

    Please find the sample attached.

    Note that in this sample, tabs are being resized dynamically so that they always display the complete contents of their captions. The active tab can be given a custom width and appearance objects are applied dynamically for active and inactive tabs, maintaining their relative dimensions.

    Please take a look at this sample and if you have any questions regarding the approach, or if I have misunderstood your intention, please let me know.

    Sincerely,
    Chris K
    Developer Support Engineer
    Infragistics, Inc.
    www.infragistics.com/support

    DynamicTabAppearance98573.zip
  • 4618
    posted

    Hi dylanmoonfire,

    I am currently looking into this behavior and I will be posting my findings on this thread.

    If you have any further questions in the meantime please let me know.

    Sincerely,
    Chris K
    Developer Support Engineer
    Infragistics, Inc.
    www.infragistics.com/support