Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move treeview from one .vcx to another
Message
From
08/07/1997 18:49:15
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brazil
 
 
To
08/07/1997 15:31:38
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00038986
Message ID:
00039019
Views:
39
>- how to capture MouseMove event .or. are there any tooltips? I mean,
>since it substitutes the menu, I want the message to appear on either
>tooltip or a label caption (the label's near the main form bottom, so it
>resembles the menu message). The help for TreeView.MouseMove method
>indicates lots of screen coordinates recalculation, so the node being
>currently beneath the mouse pointer is hardly predictable - it may be
>higher or lower, depending on branches above it being expanded or
>collapsed. I've even tried adding the message to the node text (hoping
>I'll get something like InfoView on M$DN distribution disks behavior),
>but no luck.

Hi Dragan,

To achieve what you want I think you'll have to use the HitTest method into the MouseMove event. It needs x and y coordinates multiplied by 15 as parameters and it returns a handle to the Node object which is over that point. Depending on the Node you can set the message you want.

>- how to move a treeview class from a temporary classlib into a new one?
>I've accidentally created it as a member of the wrong form class, so I
>simply pasted it into the proper form class definition, and got the
>incredible original path to the temp classlib hard welded in.

Have you tried to open the right VCX as a table? I usually fix this kind of problem changing the value directly into the VCX. I don't remember which is the field you'll have to look at (I'm not with Vfp now) but you can easily find it.

Good Luck,

Renato
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform