Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Getting data from Office's Ribbon

Reply
 
Old 02-01-2009   #1 (permalink)
Willian F. Lopes


 
 

Getting data from Office's Ribbon

Hi!

I wanna get the value of some properties of the buttons in the Office 2007
ribbon. Example: I wanna move my mouse over the bold button and get the
properties left, top, width and height. How can I do this? I'm using VB.NET.

Thanks, Willian


My System SpecsSystem Spec
Old 02-02-2009   #2 (permalink)
Andrew Morton


 
 

Re: Getting data from Office's Ribbon

Willian F. Lopes wrote:
Quote:

> I wanna get the value of some properties of the buttons in the Office
> 2007 ribbon. Example: I wanna move my mouse over the bold button and
> get the properties left, top, width and height. How can I do this?
> I'm using VB.NET.
As a practice, make a copy of calc.exe (Windows' calculator) and open that
in VS. In the "Dialog" part, you can get to the layout. I couldn't see an
obvious way to get what you want, but if you click in the rulers you can see
coordinates. Now try it with the Office app you want to investigate. It
could be tedious...

Otherwise, you could take a screen-grab of the app and open it in something
like Photoshop where you can get a coordinate display. Actually, that might
be easier.

Andrew


My System SpecsSystem Spec
Old 02-02-2009   #3 (permalink)
Willian F. Lopes


 
 

Re: Getting data from Office's Ribbon

Hi Andrew, thanks for answering.

I like to some code for this action, a sample. Do you have one? I need a
start point.

Thanks,

Willian

"Andrew Morton" <akm@xxxxxx-press.co.uk.invalid> escreveu na notícia da
mensagem:6unvv6FgbrjbU1@xxxxxx
Quote:

> Willian F. Lopes wrote:
Quote:

>> I wanna get the value of some properties of the buttons in the Office
>> 2007 ribbon. Example: I wanna move my mouse over the bold button and
>> get the properties left, top, width and height. How can I do this?
>> I'm using VB.NET.
>
> As a practice, make a copy of calc.exe (Windows' calculator) and open that
> in VS. In the "Dialog" part, you can get to the layout. I couldn't see an
> obvious way to get what you want, but if you click in the rulers you can
> see coordinates. Now try it with the Office app you want to investigate.
> It could be tedious...
>
> Otherwise, you could take a screen-grab of the app and open it in
> something like Photoshop where you can get a coordinate display. Actually,
> that might be easier.
>
> Andrew
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
The REAL reason of the ribbon and Aero Glass.... Vista General
New ribbon UI Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46