FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Tablet and form style for Windows 8 (desktop ver.)
Posts: 72
Joined: Tue Sep 11, 2007 03:51 PM
Tablet and form style for Windows 8 (desktop ver.)
Posted: Fri Feb 22, 2013 12:05 PM

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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Fri Feb 22, 2013 12:37 PM

Antonio,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 72
Joined: Tue Sep 11, 2007 03:51 PM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Fri Feb 22, 2013 01:13 PM

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

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Fri Feb 22, 2013 10:16 PM

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

Posts: 174
Joined: Sat Feb 23, 2013 10:04 AM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Sat Feb 23, 2013 11:04 AM

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.

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Sat Feb 23, 2013 01:39 PM

Antonio,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 174
Joined: Sat Feb 23, 2013 10:04 AM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Sat Feb 23, 2013 04:46 PM

[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

Posts: 174
Joined: Sat Feb 23, 2013 10:04 AM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Sat Feb 23, 2013 05:48 PM

[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

Posts: 174
Joined: Sat Feb 23, 2013 10:04 AM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Sat Feb 23, 2013 07:48 PM

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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Sat Feb 23, 2013 11:01 PM

Antonio,

Es una buena soluci贸n :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 174
Joined: Sat Feb 23, 2013 10:04 AM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Mon Feb 25, 2013 08:34 AM

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.

Posts: 174
Joined: Sat Feb 23, 2013 10:04 AM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Mon Feb 25, 2013 04:45 PM
Hi,

One step. :-)

When oGet gains focus, then automatic scrolling.

Code (fw): Select all Collapse
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
*
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Tue Feb 26, 2013 04:37 AM

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

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 174
Joined: Sat Feb 23, 2013 10:04 AM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Tue Feb 26, 2013 01:55 PM

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

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Tablet and form style for Windows 8 (desktop ver.)
Posted: Tue Feb 26, 2013 05:02 PM

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

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit