Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Box Problem

Status
Not open for further replies.

hayv

Programmer
Feb 27, 2001
15
CA
Think I have a good one here folks:

How can I do the following
A Listbox that contains for example groups of Fixed Assets lets say:

+ Cars
+ Trucks
+ Computers
The + signs serves to expand the Fixed asset categories i.e,
by clicking the + sign beside Cars the list box displays:
- Cars
car 1
car 2
Now if I click on the minus sign I collapase the car group, i.e The List Box goes back to:
+ Cars
+ Trucks, etc

More if i click only on cars it simply selects the car group ignoring the + sign.

I am well aware listboxes allow pics but they do not function as controls like in this case.

Any suggestions, will be appreciatted.
 
Hi my friend,
The most appropriate control for you job in my opinion is the tree view control not the list box.
You may consider changing you choice, I think this will make your life easier.
Good luck.
Walid Magd
Engwam@Hotmail.com
 
Hello.

At the you'll find an article named "Using Visual FoxPro ActiveX Controls". There you'll find detailed information about TreeView. Article is written by Doug Hennig (a great personality, IMO).

Hope this helps.
Grigore Dolghin
 
Thank you both, I guess its back to my homework with the treeview control
 

Dear All

I already download article html above but when i insert in my forms it wont show at run time.My active x is treeview .
I really someone here can help me.Thanks in advance.
 
Hello.

Huh? It doesn't show? What do you mean? There is no treeview in runtime? At all?

In this case, I really can't help you. In my computer it always shows.

Maybe it is not a solution for you, but have you tried to reinstall Visual FoxPro? Or to register the activex again?

Hope this helps Grigore Dolghin
Class Software
Bucharest, Romania
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top