Link to home
Start Free TrialLog in
Avatar of Nirmal Sharma
Nirmal SharmaFlag for United States of America

asked on

TreeView Properties and Methods

Hi,

I have tried searching everywhere - the only thing in VFP help is missing the properties/Methods can be used with TreeView Control.

Can anyone please list all the properties and methods usable with TreeView Control?

Thanks!
SP
SOLUTION
Avatar of Cyril Joudieh
Cyril Joudieh
Flag of Lebanon image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Some general advice on using ActiveX controls:

There are some commercially available from other vendors, which also do foxpro documentation. DBI is perhaps the best known vendor, Carlos Alloatti is one of the foxpro community with his suite of ctl32 controls at http://www.ctl32.com.ar/

Exontrol is a third. Others as said typically document an activeX control for the language it's written in and languages which most customers will use, eg C#, VB.NET, C,C++, but typically not foxpro.

If you lack the time to also learn other languages to understand samples and port them to foxpro, I'd rather take some money and buy a control for which you get more documentation. For example see here, the help on Exontrols exGrid: http://www.exontrol.net/content/products/exmlgrid/help/index.htm

When you have VFP you should have installed SP2 and there are some additional addons called sedna you find at codeplex, also there are some dbi controls you get for free. Unfortunately no treeview.

Nevertheless you may be better off not using activeX as long as you aren't even familar with more basic foxpro concepts.

Last not least take a look at another big foxpro community: Universalthread.com You should search for treeview in their download section to find some more alternatives, samples, documentations.

Bye, Olaf.
I spent 2 hours developing my own version of treeview control. The bad thing is that it takes time and the good thing is that I can program it anyway I want.

You can do that in a class.
Hi Cyril,

actually there is or was (didn't find it anymore) a download at UT for a treeview based on a foxpro grid. It's a bit tricky, but with the typical images of nodes and node lines you can do a treeview in grid cells with columns bound to image controls and others bound to data. It's a load of work I think, if you start that from scratch depending on what details you implement.

An easier solution might be working with indentation of items in a listbox. Nevertheless collapsing or expanding nodes seems quite complicated to me.

So cudos, if you did only take 2 hours for a selfmade treeview.

Bye, Olaf.
Danke, Olaf!

All I did is two level indented and hide/collapse. I wanted to do it myself because it responds to keyboard shortcuts and special navigation and special dragdrop.

It's for a special Market Research Tabulation tool.
Avatar of Nirmal Sharma

ASKER

Hi Olaf, Thanks for your comments!

>>>Didn't I already pointed you to cmctl198.chm?

Well, I did look at the CHM file, yeah, it's all there except Fon.Size and Font.Name and that's what make me post this question.

I see the Font.Name and Font.Size are applicable to Node (could be Parent or Child). Is there anyway to to specify font.Name and Size for Child node specifically?

Thanks
SP
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks!