Virtual Keyboard

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Virtual Keyboard

Post by Antonio Linares »

I agree with James proposed solution:

http://forums.fivetechsupport.com/viewt ... 440#p71440
regards, saludos

Antonio Linares
www.fivetechsoft.com
Gross
Posts: 41
Joined: Sat Mar 09, 2013 8:17 am
Location: Germany Kassel
Contact:

Re: Virtual Keyboard

Post by Gross »

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

Re: Virtual Keyboard

Post by Antonio Linares »

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

Re: Virtual Keyboard

Post by Antonio Linares »

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

Re: Virtual Keyboard

Post by Antonio Linares »

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
Gross
Posts: 41
Joined: Sat Mar 09, 2013 8:17 am
Location: Germany Kassel
Contact:

Re: Virtual Keyboard

Post by Gross »

Hello Antonio,
thank you!
Greeting Manfred
Manfred Groß
Post Reply