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

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

Postby Antonio Martinez » 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
Antonio Martinez
 
Posts: 72
Joined: Tue Sep 11, 2007 3:51 pm

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

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby Antonio Martinez » Fri Feb 22, 2013 1: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
Antonio Martinez
 
Posts: 72
Joined: Tue Sep 11, 2007 3:51 pm

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

Postby Otto » 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6003
Joined: Fri Oct 07, 2005 7:07 pm

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

Postby Antonio Mart. » 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.
Antonio Mart.
 
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Postby Antonio Linares » Sat Feb 23, 2013 1:39 pm

Antonio,

Please review FWH/samples/scrolldlg.prg :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby Antonio Mart. » Sat Feb 23, 2013 4: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
Antonio Mart.
 
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Postby Antonio Mart. » Sat Feb 23, 2013 5: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
Antonio Mart.
 
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Postby Antonio Mart. » Sat Feb 23, 2013 7: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
Last edited by Antonio Mart. on Sun Feb 24, 2013 9:09 am, edited 1 time in total.
Antonio Mart.
 
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Postby Antonio Linares » Sat Feb 23, 2013 11:01 pm

Antonio,

Es una buena solución :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41314
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby Antonio Mart. » Mon Feb 25, 2013 8: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.
Antonio Mart.
 
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Postby Antonio Mart. » Mon Feb 25, 2013 4:45 pm

Hi,

One step. :)

When oGet gains focus, then automatic scrolling.

Code: Select all  Expand view
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
*
Antonio Mart.
 
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Postby TimStone » Tue Feb 26, 2013 4: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
User avatar
TimStone
 
Posts: 2904
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

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

Postby Antonio Mart. » Tue Feb 26, 2013 1: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
Antonio Mart.
 
Posts: 174
Joined: Sat Feb 23, 2013 10:04 am

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

Postby TimStone » Tue Feb 26, 2013 5: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
User avatar
TimStone
 
Posts: 2904
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 13 guests