FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Virtual Keyboard
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Virtual Keyboard
Posted: Mon Nov 07, 2016 10:18 PM

I agree with James proposed solution:

viewtopic.php?p=71440#p71440

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 41
Joined: Sat Mar 09, 2013 08:17 AM
Re: Virtual Keyboard
Posted: Tue Nov 08, 2016 05:34 AM

Hello Antonio,
With the keyboard, the input is ok. I would also like this with a virtual keyboard ( 'KeyChar ()')
I have a POS system with input in numeric fields with keyboard or virtual keyboard. Here you should also enter numeric values in numeric get.

When entering into character fields, I have to convert the value back into numeric values before and after input.

Antonio, you can check this again
Thank you Manfred

Manfred Groß
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Virtual Keyboard
Posted: Tue Nov 08, 2016 06:32 PM

Manfred,

When the button is pressed, the GET looses the focus and the numeric value changes. We can't stop that as we use a standard Harbour GET from FWH Class TGet

so the only solution that I see it is as James proposed

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Virtual Keyboard
Posted: Tue Nov 08, 2016 06:55 PM

I have tried different possible solutions without luck:

oGet[2]:bGotFocus:={|| nX:=2, oGet[2]:SetText( buffer ) }
oGet[2]:bLostFocus:={|| buffer := oGet[2]:GetText() }

and

oGet[2]:bGotFocus:={|| nX:=2, oGet[2]:oGet:buffer := buffer }
oGet[2]:bLostFocus:={|| buffer := oGet[2]:oGet:buffer }

the problem comes from the fact that the GET looses the focus when the button is pressed

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Virtual Keyboard
Posted: Tue Nov 08, 2016 06:58 PM

This is a possible solution:

ACTIVATE DIALOG oDlg CENTER ;
   ON CLICK ( SetFocus(oGet[nX]:hWnd), oGet[nX]:KeyChar(asc("1")))

Click on the dialog and it will work fine :-)

The solution would be not to use real buttons and use painted buttons (simulated buttons) on the dialog.
This way the GET does not looses the focus

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 41
Joined: Sat Mar 09, 2013 08:17 AM
Re: Virtual Keyboard
Posted: Sat Nov 12, 2016 07:32 AM

Hello Antonio,
thank you!
Greeting Manfred

Manfred Groß

Continue the discussion