Results 1 to 7 of 7
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    display full toolbars (Word 2002 XP SR3)

    With toolbars can we check if the full toolbar is displayed? or just the partial toolbar displaying the 2 arrows at the end of the toolbar (i dont know what there called)? see picture.

    What I want to acheive is ...
    for all toolbars displayed.
    check if toolbar is displaying full toolbar
    if not - change to display full toolbar

    at the end of the toolbar, when I click on the 2 arrows a menu displays "Show Buttons on One Row" or "Show Buttons on Two Rows" . Can I use these commands?"

    many thanks
    diana
    Attached Images Attached Images

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: display full toolbars (Word 2002 XP SR3)

    As far as I know, there is no VBA support for this. You can retrieve and set the RowIndex of a CommandBar (i.e. menu bar or toolbar) and also its Left property, but I don't see a property that indicates whether the commandbar is displayed completely.

  3. #3
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    5,055
    Thanks
    2
    Thanked 417 Times in 346 Posts

    Re: display full toolbars (Word 2002 XP SR3)

    Hi Diana,

    Following on from what Hans has said, even being able to confirm whether the whole command bar is visible won't of itself tell you whether the user has customised it and:
    a) re-ordered the icons;
    added new icons; and/or
    c) deleted icons
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  4. #4
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: display full toolbars (Word 2002 XP SR3)

    I believe that the IsPriorityDropped property of the CommandBarControl reflects whether it is displayed on screen. If you set a Control's Priority to 1, it should always be displayed, so you could use that to ensure all controls are visible.
    Regards,
    Rory

    Microsoft MVP - Excel

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: display full toolbars (Word 2002 XP SR3)

    Good call! That works well for a single toolbar, but I wonder what happens if you apply it to all controls on all toolbars... (I don't really want to try that out on my PC <img src=/S/grin.gif border=0 alt=grin width=15 height=15>)

  6. #6
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: display full toolbars (Word 2002 XP SR3)

    I did a quick test with three toolbars on one row - the last one whose controls were set to priority 1 moved to its own row so that all the controls were visible. Setting the Priority to 0 again moved the toolbar back where it was, but I don't know how reliable that part will be!
    Regards,
    Rory

    Microsoft MVP - Excel

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: display full toolbars (Word 2002 XP SR3)

    Thanks - that sounds good.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •