Dear all,
I hope someone could guide me me up where I've problem to deal with keydown event of dtpicker(olecontrol). I just want to switch focus on control_1 after press in 'Enter' button but it just return to control_2. 'nodefault' is not working at all.
add object dtpicker as olecontrol with ;
oleclass= "MSCOMCTL2.DTPICKER.2",;
top = 10,;
left = this.width - this.width/2,;
width = 95,;
height = 24
procedure dtpicker.keydown
LPARAMETERS keycode, shift
if keycode = 13
Nodefault => this is not working to avoiid 2 times Enter pressed.
this.parent.control_1.setfocus() => It will soonly switch focus to control_2 right after control_1.
endif
endpro
Thanks to someone could help.
I hope someone could guide me me up where I've problem to deal with keydown event of dtpicker(olecontrol). I just want to switch focus on control_1 after press in 'Enter' button but it just return to control_2. 'nodefault' is not working at all.
add object dtpicker as olecontrol with ;
oleclass= "MSCOMCTL2.DTPICKER.2",;
top = 10,;
left = this.width - this.width/2,;
width = 95,;
height = 24
procedure dtpicker.keydown
LPARAMETERS keycode, shift
if keycode = 13
Nodefault => this is not working to avoiid 2 times Enter pressed.
this.parent.control_1.setfocus() => It will soonly switch focus to control_2 right after control_1.
endif
endpro
Thanks to someone could help.