Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Please! Somebody help me with OutLine
Message
From
18/09/1999 16:21:49
 
 
To
18/09/1999 15:46:15
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00266377
Message ID:
00266397
Views:
26
>>Explain exactly what you are trying to do. Sometimes, we might be able to >come up with an alternative solution to what you are doing.
>
>Ok, Dan, let's go!
>
>I have a form in which I put an OutLine control. This outline is loaded with records of a table. When I run the form, the outline is displayed such the sample below:
>
>+ Customers
>+ Products
>+ Sales
>
>If the user click in an item (for example, the first item), the outline is expanded, such below:
>
>+ Customers
> + John
> + Paul
> + Bill
>+ Products
>+ Sales
>
>What I'd like to do is to control this expansion... for example, if user is in the form of customers, and then he call the form with outline, the outline must be displayed as the prior example (customers expanded)...
>If user is in the form of Products, and then he call the form with outline, the outline must be displayed with the item Products expanded... and so on...
>
>Did you understand? I'd like to open the outline's tree until an specif iten programatically...
>
>Best Regards!

First of all my knowledge of spanish is very limited, so I'm not able to understand your code very well.

But, I think I understand what you want. You have three separate forms.
Customers, Products, Sales.

Each one can call the outline form. Based on which form calls the outline you wnat to have that outline expanded automatically.

I've looked at the outline control methods, and they seem to be very limited. In the treeview once you have populated the treeview, you can then go through each node and if you want a node to be expanded, you would simply do something like:

NodeExpanded[ < node number > ] = .T.

I HTH.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform