Change focus on TAB or Enter
Posted: Mon Nov 07, 2011 11:37 am
Hello,
I have a window with multiple DCGET's.
Every get has a VALID clause.
I can navigate from a DCGET to another DCGET in 4 ways:
1. Tab-key
2. Enter-key
3. Shift-Tab key
4. Mouseclick in other DCGET
How can i set focus to a special field if i navigate with the Tab-key or the Enter-Key?
The working of Shift-Tab and Mouseclick should not change.
My current code looks like:
But this changes focus to the oBewerking at all navigation.
I tryed to use
in the Valid clause, but it always returns the same value 1048629.
Suggestions are welcome.
Regards,
Jack Duijf
I have a window with multiple DCGET's.
Every get has a VALID clause.
I can navigate from a DCGET to another DCGET in 4 ways:
1. Tab-key
2. Enter-key
3. Shift-Tab key
4. Mouseclick in other DCGET
How can i set focus to a special field if i navigate with the Tab-key or the Enter-Key?
The working of Shift-Tab and Mouseclick should not change.
My current code looks like:
Code: Select all
@ nLine,nTab2 DCGET oTekening:breedte PICTURE "9999.99" ;
WHEN {||lEdit} ;
VALID {||Tekening_Herberekenen_Plaat(oTekening,GetList),SetAppFocus(oBewerking),TRUE}
I tryed to use
Code: Select all
iif(LastAppEvent()=xbeK_TAB,SetAppFocus(oBewerking),nil)
Suggestions are welcome.
Regards,
Jack Duijf