Hello
I expext a behaviour as in clipper :
K Deletes default text if first key is not a cursor
key.
I don't know how to impliment this in FWH . Maybe in the rc-file ?
Frank
Hello
I expext a behaviour as in clipper :
K Deletes default text if first key is not a cursor
key.
I don't know how to impliment this in FWH . Maybe in the rc-file ?
Frank
Frank,
I remember this was a bug many years ago. Are you saying that it isn't working now using the standard Clipper picture syntax?
James
James,
Yes , it is not working in fwh8.10 , when the get receives focus from the mouse
I found a thread that describes the problem :
viewtopic.php?f=3t=8631p=40346hilit=get+and+picture#p40346
Frank
&&&
Frank,
OK, I reviewed the old message thread and I see the problem. My fix only works when you Tab into the field and the cursor is in position 1. If you click into the field in any position other than 1, then my fix doesn't work.
I looked at the TGet code a little, and we have to figure out how to detect the first keystroke after the field has been clicked into. I am not sure how to do this.
Antonio, any ideas? Or, anyone?
Regards,
James
I have a problem when using "@K" picture clause. If I have several controls on a window or dialog and the user tabs or presses enter to move through the controls the get text is correctly deleted if they user types a character in a get. However, if the user clicks on a control using the mouse and types a character the text of the get is not deleted and the character typed is simply inserted (or overwrites) the text in the control.
Can someone confirm (or not) this problem?
Clipper Help for @K picture:
Deletes default text if first key is not a cursor key
xHarbour help:
Allows a suggested value to be seen within the GET
area but clears it if any non-cusor key is pressed when
the cursor is in the first Position in the GET area.
I guess a pure Harbour app is console based and thus cannot be clicked on with a mouse cursor. So, any changes to allow clicking anywhere to work as descibed would have to be made the FWH TGet class.
Regards,
James
James Bott wrote:I guess a pure Harbour app is console based and thus cannot be clicked on with a mouse cursor. So, any changes to allow clicking anywhere to work as descibed would have to be made the FWH TGet class.
Regards,
James
I used a product called Provision Windows a long time ago. It was a dos based windowing product for clipper. With it you could click on the "label" for the field and it would put you into the first position of the field with the @K active.
With it you could click on the "label" for the field and it would put you into the first position of the field with the @K active.
I tryed with xharbour AND clipper 5.3b , the k-clausule works when the first character from a get is clicked and then a key is pressed
Good Morning.
Sorry my english!
This problem solved:
oget:refresh(.t.)
oget:setpos(0)
oget:setfocus()
bye
James Bott wrote:This should be fairly easy to implement using the GotFocus() method. It would be more difficult if the user clicks on the field in any position other than the first and then starts typing.
Here is how the IE address field works. If you click on it anywhere, the entire address is highlighted and the cursor is at the last position (of the address). If you then start typing, the entire address is erased and your keystroke is in the first position.
I think we need to come to a general agreement about how it should work before suggesting a solution.
If you are talking about filling out forms or a screen of information then it seems there are at least 4 types of people/scenarios.
1. Someone who likes to use a mouse for everything possible.
2. Someone that wants to skip ahead on the page.
3. Someone that needs to go back and correct something on the page.
4. Someone that uses keyboard to go forward and back.
Type 1 I don't know which way would be preferable. But if it is a lot of editing instead of adding I would say not to highlight entire field when click into it.
Type 2 would probable be ok with highlight entire field.
Type 3 would probably prefer correct positioning.
Type 4 already taken care of.