Virtual Keyboard

Re: Virtual Keyboard

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

Re: Virtual Keyboard

Postby Gross » Tue Nov 08, 2016 5: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ß
Gross
 
Posts: 41
Joined: Sat Mar 09, 2013 8:17 am
Location: Germany Kassel

Re: Virtual Keyboard

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

Re: Virtual Keyboard

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

Re: Virtual Keyboard

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

Re: Virtual Keyboard

Postby Gross » Sat Nov 12, 2016 7:32 am

Hello Antonio,
thank you!
Greeting Manfred
Manfred Groß
Gross
 
Posts: 41
Joined: Sat Mar 09, 2013 8:17 am
Location: Germany Kassel

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 82 guests