VSTO Pain Exchange ForumVSTO Pain Exchange ForumDiscussionsDiscussionsVSTO - OutlookVSTO - OutlookCusotmize my Command BarCusotmize my Command Bar
Previous Previous
 
Next
 Disabled
New Post
 11/5/2009 6:30 PM
 
Cusotmize my Command Bar  (United States)

Can I...

somehow insure that my command bar always appears at the farest right location on the same row as the Standard bar even if it has to shrink the standard bar to allow room?

in order to have my company Command Bar stand out I would like to change the background color. Is this possible?

-Don


(Don T) Wizard_tec@hotmail.com
New Post
 11/12/2009 7:18 PM
 

Hello Don,

as I know you can read and set the Positions of the CommandBar.
You need to iterate over the Explorers CommandBars and get the Position and size of the Standard ToolBar - and yours.

Then reduze the size of the Default ToolBar by the width of yours and move it to Top.
Sue Mosher has written a sample how to save the position of a ToolBar.

This should get you started...

http://www.outlookcode.com/vsto/toolb...

The Color - I'm not sure if this is possible, because all ToolBars are created and refreshed dynamically. The Backcolor comes from the selected Theme. But - Maybe you can change it using the Windows API. However - you can use a ImageButton/Icon that Identifies your ToolBar.

Hope this helps,

greets - Helmut

Previous Previous
 
Next
 Disabled
VSTO Pain Exchange ForumVSTO Pain Exchange ForumDiscussionsDiscussionsVSTO - OutlookVSTO - OutlookCusotmize my Command BarCusotmize my Command Bar

Newsgroups
Minimize 
 TitleDescription
Outlookcode.com - Everything from VBA to .NetOutlookCode.com is a meeting place for people who want to make Outlook work harder for themselves and their organizations by learning how to program applications for their own use and to share with others.
MSDN Forums - Visual Studio Tools for OfficeQuestions on using Visual Studio to create managed code solutions in Office 2003 and Office 2007.
  
HouseMenu
Minimize 
    FAQ  |  HowTo's  |  Books  |  Tools  |  Websites  |  Technology  |  Blogs  |  Newsfeeds  |  Discussion