Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Move treeview from one .vcx to another
Message
De
10/07/1997 18:29:06
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brésil
 
 
À
10/07/1997 16:10:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00038986
Message ID:
00039358
Vues:
47
>> 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.
>
>Ah, that was it. The VFP's help is somewhat confusing, but that's what
>we are used to and know the ways - but VB help is as informative as a
>railway ticket: you get almost everything, except the How, Where, and
>Why. The *15 seems to do something with fontsize, maybe? I've tried
>without it, but it doesn't seem to work (yet! but I'll get it RSN).

Come on, when you're looking for information through Vfp help files don't you also see it as a good opportunity to learn VB? :)

>> >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.
>
>Well of course - that was the first thing I tried, and had to restore at
>once. The trouble with treeview (and probably other aXes, too) is that
>they don't exist as separate class definitions in a .vcx, but only
>within an OLE container, and yet do appear as if there's no container.
>So, in order to move it out, you need to know the container, which seems
>to have no name... damn, I even tried Append From tmp.vcx, but that
>didn't work either.
>
>I tried to instantiate the container, and to saveasclass into a new
>..vcx, got an empty form class. Then (from the same instance) I did
>olecontainer.treeview.saveasclass into another new .vcx, and from the
>class browser saw it was empty :)
>
>So, I guess it'll be one more cut&paste all by hand. What do we have the
>computers for, if we have to do so much of it manually?

Well, between other reasons, sometimes computers are there to help us on answering some visceral questions. Such as: Who are we? What are we doing in front of them? :)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform