Page 1 of 6

Tablet and form style for Windows 8 (desktop ver.)

Posted: Fri Feb 22, 2013 12:05 pm
by Antonio Martinez
Hi all, especially Otto,

I recently purchased an Asus tablet with Windows 8 desktop version.
He had thought about making a CRM program for this tablet. I had thought to start doing a form. This had thought of using ScrollDlg class. I've seen that I need the virtual keyboard automatically show when the user is positioned at a Get.

Any hit is welcome.

regards

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Fri Feb 22, 2013 12:37 pm
by Antonio Linares
Antonio,

Please review FWH\samples\keybsim.prg as it implements a virtual keyboard :-)

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Fri Feb 22, 2013 1:13 pm
by Antonio Martinez
Hello Antonio and friends

My idea is to use the virtual keyboard in Windows 8, but that is only one aspect that I wanted to consider the forum. There are other aspects of the design of forms, for example: to display the virtual keyboard to do scroll form, which forms must be scroll, it is also better than OK and Cancel button are up, so are more visible. They wanted to address general issues with the forum, especially those who are working with tablets with Windows 8 desktop version naturally.

regards

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Fri Feb 22, 2013 10:16 pm
by Otto
Hello Antonio M.,
please let me know more about your plans to develop a CRM system.
Maybe we can share some code.
Best regards,
Otto
datron (@) aon.at

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Sat Feb 23, 2013 11:04 am
by Antonio Mart.
Friends,

[ENG by GT]
I found the virtual keyboard running Windows 8 appears Tabtip.exe in C: \ Program Files \ Common Files \ Microsoft Shared \ ink \ Tabtip.exe. Seen http://stackoverflow.com/questions/1187 ... esktop-app).

The next problem will be how to make a scrolling the dialog that shows the get active. We will have to absorb a fixed size virtual keyboard.

[SPA]
Encontré que el teclado virtual de Windows 8 aparece ejecutando el TabTip.exe en C:\Program Files\Common Files\Microsoft Shared\ink\TabTip.exe. Visto en http://stackoverflow.com/questions/1187 ... esktop-app).

El siguiente problema sera ver cómo hacer un scrolling del dialogo que muestre el get activo. Tendremos que asimilar un tamaño fijo para el teclado virtual, ante la imposibilidad de saber que tamaño tiene, via una función del API.

Regards. Saludos.

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Sat Feb 23, 2013 1:39 pm
by Antonio Linares
Antonio,

Please review FWH/samples/scrolldlg.prg :-)

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Sat Feb 23, 2013 4:46 pm
by Antonio Mart.
[ENG]
Thank you, Antonio,
I've thought about moving the vertical scroll until the get coordinates are off the top of the virtual keyboard.

regards

[SPA]
Gracias, Antonio,
He pensado en mover el scroll vertical hasta que el las coordenadas del get queden por encima del alto del teclado virtual.

Saludos

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Sat Feb 23, 2013 5:48 pm
by Antonio Mart.
[ENG]
Antonio,

To invoke the keyboard what I do is a WinExec () to Tabtip.exe in GotFocus () method of oGet. The problem is that it is recursive:
Get gains focus, keyboard calls, leaving the keyboard get wins like focus, keyboard is called ... How do you do this without recursion? Can you think of anything?

regards



[SPA]
Antonio,

Para invocar al teclado lo que hago es un WinExec() a TabTip.Exe en el metodo GotFocus() del oGet. El problema es que se hace recursivo:
Get gana el foco, se llama a teclado, al salir del teclado, como el get gana el foco, se llama a teclado... ¿ cómo hacer esto sin que haya recursividad ? ¿ Se te ocurre algo ?

Saludos

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Sat Feb 23, 2013 7:48 pm
by Antonio Mart.
Antonio,

Solved last issue !

TGet.Prg

STATIC hWndGet
...
METHOD GotFocus()

IF hWndGet == NIL .OR. hWndGet != ::hWnd
WinExec("TabTip.Exe")
ENDIF
.....
hWndGet:= ::hWnd
RETURN 0

Regards

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Sat Feb 23, 2013 11:01 pm
by Antonio Linares
Antonio,

Es una buena solución :-)

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Mon Feb 25, 2013 8:34 am
by Antonio Mart.
Good morning,

Windows comes with a virtual keyboard from at least version xp. Called osk.exe and seems to behave well with focus issues.

Good day.

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Mon Feb 25, 2013 4:45 pm
by Antonio Mart.
Hi,

One step. :)

When oGet gains focus, then automatic scrolling.

Code: Select all

METHOD ScrollDlgUp() CLASS TGet

#Define nDHEIGHT_ WndHeight( GetDesktopWindow() )
#Define nBOTTOM_  ClientToScreen(::oWnd:hWnd, {WndTop(::hWnd)+ ::nHeight(), WndLeft(::hWnd)})[1]
*
DO WHILE nBOTTOM_ > (nDHEIGHT_/ 2)
   ::oWnd:oVScroll:GoDown()
   SysRefresh()
ENDDO
RETURN NIL
*

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Tue Feb 26, 2013 4:37 am
by TimStone
I modified an app to optimize it for a Samsung Slate. Unfortunately my Slate had to go back to the factory, or I could directly respond. It should return Wednesday, and will hopefully be working.

The keyboard should come up automatically when you tap in the field.

Consider tab pages rather than scrolling down the screen. Otherwise, remember this is a touch screen, so use your finger to swipe up the screen to scroll it.

Tim

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Tue Feb 26, 2013 1:55 pm
by Antonio Mart.
Hi Tim,

Yes, I am testing. The keyboard should automatically appear, almost as I have.
The scroll I have it. By the way: GotFocus () goes crazy when you interrupt the sequence of change in focus! But it has also solved.

regards

Re: Tablet and form style for Windows 8 (desktop ver.)

Posted: Tue Feb 26, 2013 5:02 pm
by TimStone
I received word from Samsung that my Slate is fixed and coming back tomorrow. I'll reinstall the program and see how it works. I'll look for issues !

The Slate has less vertical resolution ( height ) than the Surface and some other new tablets. The Surface Pro actually will run an application just like a normal desktop or notebook ( 1920 x 1080 ). That makes it very nice.

My Slate sits on a dock that has the power connection, a wired internet connection, DVD drive, and an HDMI connection to a 24" monitor. That is nice because I can grab the tablet off the dock ( and its always fully charged ), walk around and do my work, then put it back on the dock and use a keyboard and mouse. The screen is duplicated on the large screen monitor so its very easy to work. This is a great solution for any business.

Tim