>>>Hi all,
>>>
>>> I have a form with several controls. I'd like to move trough controls only by pressing Tab key, Ctrl+Tab or by mouse clicking.
>>> Would you please tell me how can I do this.
>>>
>>>Thanks
>>>
>>>Stoyka
>>Hi,
>>You can at least disable Tab by setting tabstop property to .f. for the controls. Ctrl+Tab is reserved by windows by default. So for those controls only Mouse click works. Disabling mouse might not be good in windows.
>>Cetin
>
> Hello, Cetin!
>Thank you for being so kind to answer my question.
>Perhaps it is my fault to form the question in a wrong way, but please read
>it in the following form:
>=====
>I have created a form, including different controls /text box, edit box,
>etc/. I want to make the cursor move from one control to another both:
>1. by pressing TabKey /forward/, Shift+TabKey /backward/, Ctrl+Tab / for edit box/
>2. by mouse.
>How can I do it? I mean, how can I allow moving from one control to another
>only in these two way and not by pressing Arrows, BackSpace, etc.
>====
>
>Stoyka
Hi,
I understood just the reverse before, sorry.
You can set form.keypreview to .t. and in the keypress event set nodefault for arrows,
but you should also control if backspace or leftarrow is pressed at selstart = 0, rightarrow at selstart = seltext etc.
Cetin