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