Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Downloads
Search: 

Simplest Treeview for VFP
Greg Reichert, GLR Software
This control is a simple treeview using the WebBrowser control and a HTML file to drive a VFP form. The tree itself is a standard html outline using the "UL"/"LI" tags. What make this the simplest, is that the only one OnClick event is established, and that is at the first (or root) "UL" tag.
Created on
20 years ago
Downloads
3005
File type
Rating
5.00/5.00
General information
Rating:
5.00/5.00 (1 rate) Rate this item
Description
How to use: In this demo, when the user clicks on a category item (bold faced), the category is either expanded or colapsed.But when the item (normal face) is clicked, their caption is placed in the Textbox above. Click on Category to expand the category of items. Then clicking on the Category a second time will collapse the category. A Shift+Click on a Category will expand or collapse all sub-categories. How it works: As can be seen, the tree is a HTML Outline using the "UL" and "LI" tags. The first "UL" tag has the OnClick event, and all child outline tags bubble their OnClick events to this one. The format of the tree is open to the developer. Images, different fonts and colors can be applied either directly in the HTML file or globally through a CSS stylesheet. When the item is clicked, the BeforeNavigate2 event in the WebBrowser is called. The URL of the HRef attribute of the "A" tag is passed. Looking at the sTreeView.htm file, you will notice that the HRef references a string that starts will "VFP:". The BeforeNavigate2 event will look for this prefix and if found, it will execute the remainder of the string as a Visual FoxPro statement. The Cancel parameter is then set to False to prevent the WebBrowser from attempt to load a page by that name.
Created by
Greg Reichert, GLR Software

Comments
Greg, absolutely awesome!!! I remember you from MS back in 97. I see you went back for more and worked with MACE, which BTW I reworked from it's original. Jeff Leason, December 19, 2003

In the example, when clicking on one of the actual animals (poodle, etc.) the first time I get the error, "This page cannot be displayed..." Each time after that, for any animal, it just does the spinning globe and never finds any information. Using IE 6. Jay Johengen, December 23, 2003

To Jay, I can only reproduce this problem if I attempt to view the HTML page in the browser. The "VFP:" at the begin of the "A" tag's HREF informs the WebBrowser control in the VCX class to process the preceeding command as VFP. The actual Tree will work in a browser if the HREF attributes had normal web address or Javascript code. Greg Reichert, December 23, 2003

Add a comment
More downloads created from this member
Greg Reichert, GLR Software
Image be able to manage an array (or any list of data) using a SQL statements. Well with this little tool you can. Query allows you to select, update, delete, and even insert data into array, collection, cursors, file directories, most any list of data. And it can be extended too. Yes; you can cr...
Created on
17 years ago
Downloads
2193
File type
Freeware
Rating
5.00/5.00
Greg Reichert, GLR Software
I would like to indroduce a new utility from the on going series of LifeCycle. FUnit is a NUnit like utility for unit testing and coverage analysis for object orientated applications. You write you test cases in the method that will be tested. Then run the FUnit utility. It will scan the application...
Created on
17 years ago
Downloads
539
File type
Freeware
Rating
5.00/5.00
Greg Reichert, GLR Software
Automatally closes a form after N seconds of inactivity from the user. Based on Timer class and monitors the current position of the cursor and mouse. Just drop the control on any form, and set the desired duration of the delay.
Created on
18 years ago
Downloads
2154
File type
Freeware
Greg Reichert, GLR Software
The purpose of LifeCycle - Build Phase utility is to provide a central application to automated as much of the built process as possible without have to clone code, or replicate the procedure for different projects. It also provides the means to schedule automated builds for daily builds. The util...
Created on
18 years ago
Downloads
599
File type
Freeware
Greg Reichert, GLR Software
AuthCode, or Authentication Code, is an add-on form that makes the application into an evaluation copy type. The user can use the application until either an expiration date or count runs out, or they have registered it by entering an authentication code. At which time the application will stop aski...
Created on
19 years ago
Downloads
2562
File type
Freeware
Rating
4.00/5.00
Greg Reichert, GLR Software
This object encapsulates the SYS() and SET() functions in methods of a class. This allows the developer to use these function by named instead of sum number. Plus it provides more readability of the source code. 12/15/2005: Included classes the encapsulate the SysMetric(), FontMetric(), Home(), and ...
Created on
19 years ago
Downloads
894
File type
Freeware
Greg Reichert, GLR Software
This tiny control resizes controls on forms. Just drop this control on any form. Set the TAG properties of the controls you wish to resize to a combination of T,L,H,W. And place a Thisform.Refresh() statement in the form's Resize event. That is all there is to it. Now work properly in VFP 6.0.
Created on
19 years ago
Downloads
2506
File type
Freeware
Greg Reichert, GLR Software
Multiple Project Hooks is a ProjectHook class that allow for chaining more then one projecthook class per project manager. If you have different projecthook class that do different tasks, and you want then all to be a part of the current project you are working on, you normally would have to combin...
Created on
19 years ago
Downloads
627
File type
Freeware
Greg Reichert, GLR Software
This routine uses Google's spelling correction feature of their search engine to perform spell checking. When a mis-spelled word is submitted, Google attempts to correct the spelling and persents it as a phrase near the top of their result page. The corrected phrase is always after the term "Did y...
Created on
20 years ago
Downloads
671
File type
Greg Reichert, GLR Software
The purpose of this application is insure that the local copy of the application, and it dependent files, are always up to date. The remote copies of the application can be located either on LAN/WAN server, HTTP web server, a FTP site, or even a Email attachment. In addition, the AppStart can instal...
Created on
20 years ago
Downloads
2423
File type
Greg Reichert, GLR Software
This object, when dropped on a form, automatically sets the colors and other properties of all the controls on the form to those that match the same properties on the Style object. Set the properties value once on the Style control, and when the form is ran, then all the controls with the same prop...
Created on
20 years ago
Downloads
1571
File type
Freeware
Greg Reichert, GLR Software
The Locale class automatically translates captions, tooltips, and statusbar text from one language to an alternate language with the use of the internet, then stores the translation for future use and faster translations. Now with 8 languages and uses 11 web-sites for the best and fastest possible t...
Created on
20 years ago
Downloads
2236
File type
Greg Reichert, GLR Software
Monitor and remotely terminate running application from across the network. Great for those times you need to force users out of applications they have left running. Also, the administrator can check for dead applications or those that are reporting they are in a critical section of the program, lik...
Created on
20 years ago
Downloads
4146
File type
Freeware
Greg Reichert, GLR Software
Have your clients ever ask to have their forms remember their position and size? This neat little control does just that. Now works with VFP 9.0 Anchors. Just drop it on any form, and it will remember its position and shape. The properties are saved in the registry for each user that can log on ...
Created on
20 years ago
Downloads
2088
File type
Freeware
Greg Reichert, GLR Software
Link update only. Have you ever needed a Mover control, but space is limited. This control provides many of the same features as the Mover control, but all in the same space of a single listbox. There are several different demos of this in the download. Also, a couple of the demos use a slider con...
Created on
21 years ago
Downloads
1973
File type
Rating
5.00/5.00
Greg Reichert, GLR Software
Link adjustment only. Auto hide any form behind the VFP desktop, pop it back out when the mouse is hovering over it. The AutoHide class can be dropped on any form to provide the ability for the form auto hide itself behind the VFP border. This is similar to other autohide feature found in windows d...
Created on
21 years ago
Downloads
2244
File type