Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving trough form controls
Message
De
16/12/1997 11:27:56
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/12/1997 09:11:08
Stoyka Kurteva
Busoft Engineering Ltd.
Bourgas, Bulgarie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00066143
Message ID:
00066246
Vues:
26
>>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform