Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drag set to auto - can't get focus anymore
Message
From
17/01/2007 17:10:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
17/01/2007 14:39:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01186395
Message ID:
01186459
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform