Page 1 of 1

Perparing for W8 tablets

Posted: Sat Jun 02, 2012 12:26 am
by c-tec
Hello Roger,
I have to prepare my software for using on Windows8 tablets. I think this is no big problem with eXPress++, but I need some help.
1. When the tablet changes orientation, the dialog should be automatically adjustest. Would it be a solution always to define two dialogs, hide the not fitting one, and change them on demand ?
2. Drawing functionality is a major part of tablet computing. I need to capture drawings and signatures with a stylus on the board. So I have to capture points on a static and draw lines or splines on signatures, this needs a special logic. I think I can also get the pressure of the pen from Windows.
Would be great to get support for this things in eXPress++ to make it fit for the future
regards
Rudolf

Re: Perparing for W8 tablets

Posted: Sat Jun 02, 2012 7:19 am
by rdonnay
1. When the tablet changes orientation, the dialog should be automatically adjustest. Would it be a solution always to define two dialogs, hide the not fitting one, and change them on demand ?
This is not necessary. It is a better idea to use the eXpress++ automatic resizing system.
Look at the samples in \exp19\samples\resize.
2. Drawing functionality is a major part of tablet computing. I need to capture drawings and signatures with a stylus on the board. So I have to capture points on a static and draw lines or splines on signatures, this needs a special logic. I think I can also get the pressure of the pen from Windows.
Would be great to get support for this things in eXPress++ to make it fit for the future
regards
I am not sure what would be required for this but I doubt that it would require any changes to eXpress++ or Xbase++.

Re: Perparing for W8 tablets

Posted: Sun Jun 03, 2012 1:06 am
by c-tec
Hello Roger,
for resizing I thougt that it is faster switching between two dialogs, but will try the resize example and test it.
For the drawing it would be nice to have for example a @ x,y DC_DRAWAREA ... or so. The value should be a array with strokes. So for example the signature can drawn again when displaying the dialog. It seems that Alaska supports the "InkRecognition" with the Tablet PC SDK


regards
Rudolf

Re: Perparing for W8 tablets

Posted: Sun Jun 03, 2012 10:27 am
by rdonnay
I'm still not sure where to go with this.
Does the pad software save the signatures as meta-files or some other format?

Re: Perparing for W8 tablets

Posted: Sun Jun 03, 2012 10:41 am
by Auge_Ohr
rdonnay wrote:I'm still not sure where to go with this.
Does the pad software save the signatures as meta-files or some other format?
we talk about this Sample
// Tablet PC Ink Sample
//
// Copyright:
// Alaska Software, (c) 2009. All rights reserved.
//
// Contents:
// This example is based on the "InkRecognition" sample that
// ships with the Tablet PC SDK.
//
// Note: This sample also shows how to use XbasePART names
// to access parts which are childs of a dialog without
// having declared a class. Only the dialog is referencing
// the child parts in its child list. A child part is queried
// using the :childFromName() method. (See XbpPartHandler)
so it is Object

Code: Select all

PROCEDURE InitInk()

    // Create the recognizers collection
    myRecognizers := CreateObject( "msinkaut.InkRecognizers" )

    // Create a new ink collector that uses the Frame's window
    myInkCollector      := CreateObject( "msinkaut.InkCollector" )
    myInkCollector:hWnd := SetAppWindow():ChildFromName(ID_STAFRAME):GetHWND()

    // Turn the ink collector on
    myInkCollector:Enabled = .T.

RETURN

Re: Perparing for W8 tablets

Posted: Sun Jun 03, 2012 11:27 pm
by c-tec
Hello,
here you can find more information:http://msdn.microsoft.com/en-us/library ... 85%29.aspx
Even Windows7 is prepared for this, a customer has tested it, seems to work very good. Actually I work with the Anoto digital pen & paper system, here I get strokes (vector data with pressure and timestamp for each point) and the data from the text recognition. I think the MS implementation will work similar.
regards
Rudolf

Re: Perparing for W8 tablets

Posted: Wed Jun 06, 2012 12:06 am
by c-tec
Hello,
Alaska sent me the sample that uses msinkaut.InkRecognizers and msinkaut.InkCollector, this I will try to integrate in a eXPress++ dialog.
regards
Rudolf