Guys:
On a dialog with a couple of says & gets, how can I:
1. Highlight in other color the current get ?
2. Move between fields with the ENTER key instead of the TAB key ?
Thank you.
Guys:
On a dialog with a couple of says & gets, how can I:
1. Highlight in other color the current get ?
2. Move between fields with the ENTER key instead of the TAB key ?
Thank you.


Uwe:
I'm not using resources, will it work ? Thank you very much my friend. ![]()
if oDialog:oCtlFocus == oGet[1]
if nKey = VK_RETURN
oGt[1]:oWnd:GoNextCtrl(oGt[1]:hWnd)
end
endHunterEC wrote:Guys:
On a dialog with a couple of says & gets, how can I:
1. Highlight in other color the current get ?
Thank you.
SetGetColorFocus( nClrFocus )HunterEC wrote:Guys:
On a dialog with a couple of says & gets, how can I:
2. Move between fields with the ENTER key instead of the TAB key ?
Thank you.

I tested :
SetGetColorFocus( nClrFocus )
the first Time, but why it doesn't work with Multiline-Get ?
We do not have to write any code for this. By default pressing either ENTER key or TAB key moves to the next field.
If there is a default pushbutton, then that pushbutton is activated when the Enter key is pressed.
I don't believe this is true.
This is standard Windows behavior, and I don't think it is a good idea to deviate from this standard. Users expect dialogs to work this way. Using the Enter key for field movement is a holdover from the Clipper apps era and should be abandoned (IMHO).
Rao,
I meant that it is not true whenever there is a default pushbutton. And there is a default pushbutton (by default) whenever a new dialog is designed in Workshop. It is extremely tedious to write code for dialogs, so I am not sure why anyone would choose to do that over visually designing them. Perhaps because they do not know that they can visually design them.
James