Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Please! Somebody help me with OutLine
Message
De
21/09/1999 12:01:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00266377
Message ID:
00267168
Vues:
31
>>This sounds very much like a treeview. I am more familiar with the treeview. >Are you using a treeview. Can you use a treeview?
>
>Hi, Dan! Following your tip, I've did my form with a treeview, instead of outline... now, I have a doubt:
>
>I populated my treeview, as below:
>oNode = o.Nodes.Add(,1,ALLTRIM(RepoView.cCodigo)+"_",RepoView.cDescricao,,)
>or
>oNode = o.Nodes.Add(pkey,4,ALLTRIM(RepoView.cCodigo)+"_",RepoView.cDescricao,,)
>
>and know I just don't know how I could expand programmatically a node... what is the syntax?
>
>I've tried
>
>ThisForm.oleTreeView.object.onode.Expanded(10)=.T.
>and
>ThisForm.oleTreeView.onode.Expanded(10)=.T.
>
>but it doesn't works...
>
>What I have to do?


Try this just to make sure you have the correct syntax.
WITH THISFORM.OleTreeView
    FOR lnCurNode = 0 TO .ListCount
        .NodeExpanded[ lnCurNode ] = .T.
    ENDFOR
ENDWITH
If this works, you may have to expand more than one node in order to get that section auto expanded. But first let me know if this expands the entire tree.

HTH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform