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
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.
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
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
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.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 19 guests