Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Please! Somebody help me with OutLine
Message
From
21/09/1999 12:01:22
 
 
To
21/09/1999 08:48:32
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00266377
Message ID:
00267168
Views:
32
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform