Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come
out every day, so no prevention program can catch 100% of them. For your own safety, please:
Re-scan downloaded files using your personal virus checker before using it.
NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
Scan the source code with Minnow's Project Scanner
If you don't have a virus scanner, you can get one at many places on the net
Terms of Agreement:
By using this code, you agree to the following terms...
You may use
this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
You may link to this code from another website, but ONLY if it is not wrapped in a frame.
You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
Thank you Gary. But, what is awesome is the work you've done: entirely design-control-draw a treeview. In my case, most of work is done by API :-) And OK for correct spelling of 'hilite'. Yes, as enmity says, is only for short naming. I've seen this 'variation' more than once... What I don't know is how many incorrect spelling I've done in these comment lines, including this last sentence. (If this comment was disrespectful, please report it.)
another very fine part of 'unVisual Basic' ;))) - my ***** for!
There's a lot to learn from (e.g. the Font handling with the event and named parameter on API calls for better reading are two I will use).
One note: As I told Paul already: There is a strange error (GPF) in the subclassing part which occours on Win98 when leaving the program (IDE and compiled) . Paul will update his code next days. The fix is simple: Change the length of asm code to 202 Private Const CODE_LEN As Long = 202 to fully fix it. Else the GlobalFree() does something strange... (Yes, the asm code IS 200 bytes long, but who knows whats happing behind all of this magic called an OS ;)) ) I got the effect on an uc of mine and discovered it in Pauls fine last demo (show all WM_xxx ) , too. Ok, Win98 isn't very popular anymore, but changing a single bit just to have it all isn't a problem ;) .
Whats your next project? Another uc?
Kind regards LiTe (If this comment was disrespectful, please report it.)
Great code, the fact that it only requires 1 Module is exellent. If possible could you please tell me how the Treelines color can be changed. 5* From me. (If this comment was disrespectful, please report it.)
How can I make "one-click expand" and collasp only with "minus" button like the xp Explorer? Also "track select" without "hand" cursor? Please teach me... (If this comment was disrespectful, please report it.)
I've problem adding icons. I use: treeFolders.AddIcon picIconBuffer.Image But it only return -1 and it seems to be useless. Can anyone tell me why? (If this comment was disrespectful, please report it.)
Do you write this line, don't you ? .InitializeImageList (If this comment was disrespectful, please report it.)
Add Your Feedback
Your feedback will be posted below and an email sent to
the author. Please remember that the author was kind enough to
share this with you, so any criticisms must be stated politely, or they
will be deleted. (For feedback not related to this particular code, please
click here instead.)