Format | SetCursor F[fieldname] Sets the cursor into the field.
SetCursor cell[table,column,row] Sets the cursor into a table cell.
SetCursor (row,col) List display: Sets the cursor on a certain position in the list.
|
Tips & Tricks |
- If you want to setcursor on an absolute address of a table with a control key (e.g. Ctrl F12), use the following coding in your script:
//GuiXT script: Pushbutton (toolbar) “Material column” process=“va01_setcursor2.txt” “Ctrl+F12″ if V[NewCursorPosition] SetCursor “&V[NewCursorPosition]“ Set V[NewCursorPosition] “” endif // InputScript “va01_setcursor2.txt”: Set V[NewCursorPosition] “cell[All items,2,&V[_tabrow]]”
- If you want to move the cursor relatively two columns left in a table on Enter event, use the following coding:
//GuiXT script: if V[NewCursorPosition]
SetCursor “&V[NewCursorPosition]“
Set V[NewCursorPosition] “”
endif On Enter Process=“va01_skip2cols.txt”
//InputScript “va01_skip2cols.txt”: Set V[NextColumn] “&V[_tabcol]“ + 2
Set V[NewCursorPosition] “cell[All Items,&V[NextColumn],&V[_tabrow]]”
|