![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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. 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| The REAL reason of the ribbon and Aero Glass.... | Vista General | |||
| New ribbon UI | Vista General | |||