LPARAMETERS nButton, nShift, nXCoord, nYCoord thisForm.MousePointer = 1I have tried several other places to put mousePointer code and MouseMove is the best one.
init() *-- Show textbox always as selected this.BackColor = this.SelectedBackColor this.ForeColor = this.SelectedForeColor return doDefault() gotFocus() doDefault() set Cursor Off keyPress() LPARAMETERS nKeyCode, nShiftAltCtrl *-- Allow only navigation keys. *-- The rest is disabled to mimic list control *-- 19: ENTER *-- 9: TAB *-- 15: SHIFT-TAB *-- 18, 3: RePag, AvPag *-- 5, 24: up arrow, down arrow (don't wnat to include left and right arrows) *-- 27: ESC *-- 148: CTRL-TAB (grid key to go next control) if inList(nKeycode, 13, 9, 15, 18, 3, 5, 24, 27, 148) do case *-- On ENTER select this value case nKeyCode = 13 if pemStatus(thisForm, 'aceptar', 5) thisForm.aceptar() endif *-- If TAB is pressed, then go to next control (same as in a listBox) case nKeyCode == 9 keyboard '{CTRL+TAB}' *-- If SHIFT-TAB pressed, then go to previous control, same as in a listBox case nKeyCode == 15 keyboard '{SHIFT+CTRL+TAB}' endcase else noDefault endif lostFocus() doDefault() set Cursor onHope that helps,