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 11-15-2007, 12:20 PM
Vincent Bergeron
Newsgroup Contributor
 
Posts: n/a
InkPicture NewInAirPackets not fireing...

Hi!

I'm using Ink with Delphi.

I wrote a OnNewInAirPackets event handler and it nevers gets fired.

I tested it with C# and it is fireing correctly.

Anyone knows why?

Thanks

VB


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

 
Old 11-15-2007, 12:20 PM
  #2 (permalink)  
Old 11-17-2007, 07:10 AM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
Re: InkPicture NewInAirPackets not fireing...

Hi Vincent,

I am not very familiar with Delphi, but I assume you are using the COM Ink
API (in InkObj.dll) from your Delphi environment, correct?

When using the COM API, you have to tell the Ink collection object
(InkPicture, InkOverlay or InkCollector) which of the optional events you
want to receive. To do so, please call the SetEventInterest method [1] on
your InkPicture control.

Specifically, the NewPackets and NewInAirPackets events are expensive from a
performance perspective as they fire with high frequency. Thus we do not
produce them by default - you only receive them if you explicitely ask for
them.

In a managed code environment (like C# or VB.NET) we manage the event
interest automatically behind the scenes for you: if we see that an event
handler for an optional event is attached, we'll start producing the
events - making this transparent to the user. Thus your C# application does
receive the events without any extra API calls.

Thanks,
Stefan Wick - http://blogs.msdn.com/swick

[1] http://msdn2.microsoft.com/en-us/library/ms704140.aspx

"Vincent Bergeron" <info@vincentbergeron.com> wrote in message
news:OaqkLN8JIHA.5860@TK2MSFTNGP04.phx.gbl...
> Hi!
>
> I'm using Ink with Delphi.
>
> I wrote a OnNewInAirPackets event handler and it nevers gets fired.
>
> I tested it with C# and it is fireing correctly.
>
> Anyone knows why?
>
> Thanks
>
> VB
>


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

  #3 (permalink)  
Old 11-19-2007, 10:21 AM
Vincent Bergeron
Newsgroup Contributor
 
Posts: n/a
Re: InkPicture NewInAirPackets not fireing...

Hi Stefan.

Thanks, it does the trick!

VB


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
Renderer Problems with InkPicture matt Windows XP Tablet PC Newsgroup 1 03-17-2005 09:15 AM
InkPicture, InkCollector & JScript =?Utf-8?B?RnV6eXJhbQ==?= Windows XP Tablet PC Newsgroup 1 07-19-2004 03:20 PM
inkpicture CharlieChau Windows XP Tablet PC Newsgroup 1 06-03-2004 11:21 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 06:41 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0