Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drag set to auto - can't get focus anymore
Message
De
17/01/2007 17:10:37
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/01/2007 14:39:22
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01186395
Message ID:
01186459
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>I have a form (sounds familiar, eh?) where I need to drag a few controls and drop them onto an editbox. I've just set the dragmode=1 (automatic) on those, wrote the code in dragdrop method of the editbox, and it works as I wanted it to.
>
>Now the trouble is that these controls can't be clicked into. I've worked around this by setting the hotkeys to their labels and having a proper tab order, but that's a kludge.
>
>Is there a better way to have drag and drop AND to be able to set focus to the controls by just mouse?

Dragan,
What I do is:
-Use manual instead of automatic
-In mousedown wait for a little time (ie: 0.2secs)
-if still mdown() start drag manuall (this.drag(1)).
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