I agree with James proposed solution:
http://forums.fivetechsupport.com/viewt ... 440#p71440
Virtual Keyboard
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Virtual Keyboard
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
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ß
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Virtual Keyboard
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Virtual Keyboard
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
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
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Virtual Keyboard
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
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