Divelements Community
Customer discussion of all Divelements products

Handling a lot of RibbonTabs

Latest post 11-14-2007 18:16 by deathangel. 1 replies.
  • 11-01-2007 13:53

    • MarcoK
    • Not Ranked
    • Joined on 11-01-2007
    • Posts 1

    Handling a lot of RibbonTabs

    Hi everybody.
    I couldn't locate anything about this in the docs, so pardon me if I'm asking for the obvious...
    Question is, if I add a lot of ribbontabs to a ribbon, I found they (their width) just keeps getting smaller and smaller.
    Is there a way to tell them to stop shrinking at some point, possibly navigating the tabs like in the standard tab-control, with small arrows to move left and rightwards?
    I have an application at 800x600 (supposed to run on older model tablet pcs in this resolution) and I'm not out of functionality to add, but out of room for non-shrunk tabs.

    Thanks in advance for any advice you can give
    MarcoK
  • 11-14-2007 18:16 In reply to

    Re: Handling a lot of RibbonTabs

    Not really an answer to your specific problem, but two possible workarounds:

    1) Have you investigated EditingContexts?
    Depending on your application some functionality could be restricted to cases where a certain type of thing is selected, maybe you can get some tabs to only appear when they are needed.
    The usual example is documents with an image. When you select the image, you switch the context to "IMAGE" and an image related ribbon tab appears.
    This is relatively trivial to add, each tab can have a context (I wish they could have more), then you can set the ribbon context dynamically and in-context tabs appear.

    2) You can manage the tabs in the ribbon dynamically yourself.
    Depending on your application structure, you might have "modes" or other types of work subdivisions. You could elect to only show a certain set of tabs when in those modes.
    This is relatively easy to do, keep a reference to the tabs, and then you can dynamically add or remove them from the ribbon's collection. There are a couple quirks (for instance if you remove all tabs, the ribbon goes a bit nuts, so make sure you always keep one in) but it's working fine overall.

    Hope this helps a bit.
    Yves
Page 1 of 1 (2 items) | RSS
Copyright © 2008 Divelements Limited
Powered by Community Server (Commercial Edition), by Telligent Systems