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-21-2007, 04:41 AM
How to get NormalPressure from Tablet
Newsgroup Contributor
 
Posts: n/a
How to get NormalPressure from Tablet device

I develop tablet application but have problem with normalPressure. I can get
only X,Y and error when I try to get NormalPressure. I use the follow code:
The array guidMy return only 2 elements X,Y guid.

foreach (Stroke theStroke in theStrokes)
{
Guid[] guidMy = theStroke.PacketDescription;

int[] theX =
theStroke.GetPacketValuesByProperty(PacketProperty .X);

int[] theY =
theStroke.GetPacketValuesByProperty(PacketProperty .Y);

int[] thePressure =

theStroke.GetPacketValuesByProperty(PacketProperty .NormalPressure);
}

When I initialized InkCollector object :
myInkCollector = new InkCollector(panelInk.Handle);
myInkCollector.Enabled = true;

I tested to constuct InkCollector with 2 parameters :
Tablets tb = new Tablets();
Tablet tablet = null
foreach(Tablet theTB in tb)
{
tablet = theTB;
}
myInkCollector = new InkCollector(panelInk.Handle,tablet);

but not result for NormalPressure.
My tablet device is Trust model: Wireless Tablet TB-2100
http://www.trust.com/products/defaul...NCH&item=12052
If you know how to decide my problem write me on E-mail: dilianl@abv.bg or
dilianl******.com


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

 
Old 05-21-2007, 04:41 AM
  #2 (permalink)  
Old 06-11-2007, 06:30 AM
Stefan Wick[MS]
Newsgroup Contributor
 
Posts: n/a
RE: How to get NormalPressure from Tablet device

Hi,

I am not familiar with this specific Tablet model but my guess is that it
doesn't come with a proper HID driver that complies with the requirements for
TabletPC components. As a result, you only get the input through the system's
mouse architecture.

You can check the IsPacketPropertySupported() API [1] to see if the
device/driver actually supports NormalPressure.

Thanks,
Stefan Wick

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


"How to get NormalPressure from Tablet" wrote:

> I develop tablet application but have problem with normalPressure. I can get
> only X,Y and error when I try to get NormalPressure. I use the follow code:
> The array guidMy return only 2 elements X,Y guid.
>
> foreach (Stroke theStroke in theStrokes)
> {
> Guid[] guidMy = theStroke.PacketDescription;
>
> int[] theX =
> theStroke.GetPacketValuesByProperty(PacketProperty .X);
>
> int[] theY =
> theStroke.GetPacketValuesByProperty(PacketProperty .Y);
>
> int[] thePressure =
>
> theStroke.GetPacketValuesByProperty(PacketProperty .NormalPressure);
> }
>
> When I initialized InkCollector object :
> myInkCollector = new InkCollector(panelInk.Handle);
> myInkCollector.Enabled = true;
>
> I tested to constuct InkCollector with 2 parameters :
> Tablets tb = new Tablets();
> Tablet tablet = null
> foreach(Tablet theTB in tb)
> {
> tablet = theTB;
> }
> myInkCollector = new InkCollector(panelInk.Handle,tablet);
>
> but not result for NormalPressure.
> My tablet device is Trust model: Wireless Tablet TB-2100
> http://www.trust.com/products/defaul...NCH&item=12052
> If you know how to decide my problem write me on E-mail: dilianl@abv.bg or
> dilianl******.com
>
>

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

  #3 (permalink)  
Old 06-14-2007, 12:50 AM
How to get NormalPressure from Tablet
Newsgroup Contributor
 
Posts: n/a
RE: How to get NormalPressure from Tablet device

Thank you for advice.


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
More rumors about an Apple Tablet-like device Loren Tablet PC Bloggers 0 06-12-2008 09:10 AM
IR Remote Control device on TX2000 Tablet PC Paul Gray Windows XP Tablet PC Newsgroup 2 04-07-2008 11:40 AM
Magnetic strip reader doesn't work with tablet PC - anyone encounteredthis? (USB device, works fine on XP/2K but not on Tablet) Peter Windows XP Tablet PC Newsgroup 10 01-10-2008 12:51 PM
Using the Tablet PC as an input device for my desktop PC fox_jjkisf@trashmail.net Windows XP Tablet PC Newsgroup 11 12-03-2006 11:39 AM
warning: Tablet PC is a dangerous device! www.MSmobiles.com Windows XP Tablet PC Newsgroup 0 05-26-2004 10:14 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:41 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0