Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Move treeview from one .vcx to another
Message
De
13/07/1997 10:25:51
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
11/07/1997 17:12:06
Renato De Giovanni
Via Fractal Information Systems
São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00038986
Message ID:
00039746
Vues:
43
> Once you've asked about this, I also decided to move 2 of my Treeviews to > other VCX files (they were not located at the best place). And it worked > fine. > > I suppose your Treeview was, as mine, saved as a separate class on your VCX > (not as a part of a bigger class such as a container or a Form, because > then it'll be very easy - just cut and paste the Treeview directly). Well, it was created as a class... and then used in a form class within the same .vcx, which originated in the main vcx where it was designed to be saved if it all worked ok; just couldn't move it there when I wanted to. > These were the steps I've done, all at design time: > > First, create a new Form. Then you add to your Form Controls Toolbar the > VCX file that contains the Treeview you want to move. Next, add the > Treeview to the Form, select it and choose *Save As Class* from the File > menu. And that's it. Just choose there the new VCX to store the Treeview. > Close the Form without saving. Good old click & point programming :) Never thought of that. Thank you, it worked just fine. > One important thing is that, even after all of this, I had to open the new > VCX file as a table to correct the values at the fields CLASSLOC and CLASS. > Those values were wrong (my Treeviews are children of the Project Treeview > Class, which is child of the Base System Treeview Class). I wonder what would it do if I just renamed tmp.vcx to something else, would it be able to find the reference within the same .vcx where it is... I'll try that tomorrow. 10Q again, one nightmare less.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform