Hello Rick,
Thank you for the suggestions.
The use of DC_ReadGuiEvent(DCGUI_MOVE_DOWN_PAR,GetList) does not work in the POPUP code-block.
The one that mentioned the return of a array, helped me in the right direction.
Because it was a generic numeric touchscreen entry, i needed to go to the next data-entry (whatever that was).
Below the code i put in the popup codeblock.
I investigate the GetList, and locate the next entryfield (if possible).
Thanks again.
Jack Duijf
Code: Select all
@ 1,1 DCGET nInput PICTURE "999.99" POPUP {|n,o|Touch_NumPad(o,GetList)} VALID {||myvalid(....)}
Function Touch_NumPad(oInput,aParentGetlist)
Locals .....
if ValType(aParentGetlist) = "A"
nPos := AScan(aParentGetlist,{|a|a[oGETLIST_OBJECT]==oInput})
if nPos > 0
nPos++
do while nPos <= Len(aParentGetlist)
oNextFocus := aParentGetlist[nPos,oGETLIST_OBJECT]
if ValType(oNextFocus) = "O"
if oNextFocus:isDerivedFrom("xbpSle") .or. ;
oNextFocus:isDerivedFrom("xbpMle")
exit
endif
endif
oNextFocus := nil
nPos++
Enddo
endif
endif
..
.. My touchcreen code..
..
DCREAD GUI TO lOk MODAL OPTIONS GetOptions EVAL {|o| setappwindow(o) } ENTEREXIT FIT OWNER oAppWindow
if lOk
uRet := oInput:Getdata()
if ValType(oNextFocus) = "O"
uRet := {uRet,oNextFocus}
endif
endif
Return uRet