Technology Questions

Go Back   Technology Questions > Hardware Questions > Mobile Computers > Tablet PC > Tablet PC Software > Tablet PC Developers

Tablet PC Developers Show off your work while discussing with others how to create ink enabled applications.

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-06-2007, 07:32 AM
Tab
Newsgroup Contributor
 
Posts: n/a
How to find and/or iterate through pen input panels?

I'm updating an ActiveX control that calls up Word, and I need to find out if
that instance of Word has an open pen input panel and if it does, I need to
call a method on that panel.

Is there a way to either find a panel opened by a particular app or iterate
through all open panels and see who owns what? The first would obviously be
easier. I would need to get the object so I could invoke a method on it.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-06-2007, 07:32 AM
  #2 (permalink)  
Old 05-06-2007, 07:32 AM
Tab
Newsgroup Contributor
 
Posts: n/a
Corrected question

Sorry, but I'm doing this in conjunction with someone else and they have the
tablet and I don't. It was described to me that what they had sounded like a
pen input panel. As it turns out, it's something different.

Here's the scenario: In Word (instantiated by my control), they're
inserting ink annotations. You're supposed to click the "stop inking" button
when done, but when they tell my control to shut things down, if they forgot
to click the stop inking button, their annotations are lost.

I was given to believe they had a regular input panel, but I guess not. The
stop inking button apparently is on one of the Word command bars, or a bar
that's integrated with Word.

What I want to do is invoke the equivalent of a "CommitPendingInput" on
whatever is doing the collecting for Word. If I don't have a penInputPanel
to talk to, what do I want to talk to, and how can I get the object to talk
to it?

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 05-06-2007, 07:32 AM
Josh Einstein
Newsgroup Contributor
 
Posts: n/a
Re: Corrected question

Well, if it's Word 2003 I can help you. Word 2007 will be completely
different unfortunately because of the ribbon and I'm not sure how to
automate it.

What you need to do is look up a "CommandBar" class and CommandBarButton.
You write some code to enumerate the CommandBars and CommandBarControl
children and write out their ID's. Then you can use methods of the CommanBar
to find the button by its ID and there's a method on that button to simulate
a click. Sorry I don't have specific method names for you at the moment. I
can look it up later on when I get home.

--
Josh Einstein (Tablet PC MVP)
Einstein Technologies
Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com


"Tab" <Tab@discussions.microsoft.com> wrote in message
news:69DDCA5A-273A-4B8E-99DE-286DE2FF6EF9@microsoft.com...
> Sorry, but I'm doing this in conjunction with someone else and they have
> the
> tablet and I don't. It was described to me that what they had sounded
> like a
> pen input panel. As it turns out, it's something different.
>
> Here's the scenario: In Word (instantiated by my control), they're
> inserting ink annotations. You're supposed to click the "stop inking"
> button
> when done, but when they tell my control to shut things down, if they
> forgot
> to click the stop inking button, their annotations are lost.
>
> I was given to believe they had a regular input panel, but I guess not.
> The
> stop inking button apparently is on one of the Word command bars, or a bar
> that's integrated with Word.
>
> What I want to do is invoke the equivalent of a "CommitPendingInput" on
> whatever is doing the collecting for Word. If I don't have a
> penInputPanel
> to talk to, what do I want to talk to, and how can I get the object to
> talk
> to it?
>
> Thanks
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 05-06-2007, 07:32 AM
Tab
Newsgroup Contributor
 
Posts: n/a
Re: Corrected question


Well, I've been working on that anyway, in part using various spy utilities
to help.

Word doesn't seem to use the tablet input panel, but instead puts up its own
bar, just called "MsoCommandBar" (presumably meaning Microsoft Office Command
Bar) and I've yet to find any telling IDs that I can call reliably, but I'm
still working on it.

Can you explain about the ribbon stuff in Word 2007? I'm not familiar with
that yet - still trying to slog through the problem with Word 2003.

Thanks

- Tab



"Josh Einstein" wrote:

> Well, if it's Word 2003 I can help you. Word 2007 will be completely
> different unfortunately because of the ribbon and I'm not sure how to
> automate it.
>
> What you need to do is look up a "CommandBar" class and CommandBarButton.
> You write some code to enumerate the CommandBars and CommandBarControl
> children and write out their ID's. Then you can use methods of the CommanBar
> to find the button by its ID and there's a method on that button to simulate
> a click. Sorry I don't have specific method names for you at the moment. I
> can look it up later on when I get home.
>
> --
> Josh Einstein (Tablet PC MVP)
> Einstein Technologies
> Tablet Enhancements for Outlook - Try it free: www.tabletoutlook.com
>
>
> "Tab" <Tab@discussions.microsoft.com> wrote in message
> news:69DDCA5A-273A-4B8E-99DE-286DE2FF6EF9@microsoft.com...
> > Sorry, but I'm doing this in conjunction with someone else and they have
> > the
> > tablet and I don't. It was described to me that what they had sounded
> > like a
> > pen input panel. As it turns out, it's something different.
> >
> > Here's the scenario: In Word (instantiated by my control), they're
> > inserting ink annotations. You're supposed to click the "stop inking"
> > button
> > when done, but when they tell my control to shut things down, if they
> > forgot
> > to click the stop inking button, their annotations are lost.
> >
> > I was given to believe they had a regular input panel, but I guess not.
> > The
> > stop inking button apparently is on one of the Word command bars, or a bar
> > that's integrated with Word.
> >
> > What I want to do is invoke the equivalent of a "CommitPendingInput" on
> > whatever is doing the collecting for Word. If I don't have a
> > penInputPanel
> > to talk to, what do I want to talk to, and how can I get the object to
> > talk
> > to it?
> >
> > Thanks
> >

>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Missing Control Panels Icons Gene Windows XP 1 10-17-2008 04:00 AM
Where can I find the HID Non-user Input Data Filter update? cegb Windows Vista 8 04-09-2008 09:10 AM
Cannot find input panel Charlie Windows XP Tablet PC Newsgroup 0 12-14-2007 08:10 AM
Are LCD panels interchangeable between IBM A Thinkpads? dk_ Notebooks 4 06-16-2007 06:31 PM
Can not open control panels Kevin Windows Vista 5 05-25-2007 05:50 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 11:40 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0