gfroese
05-09-2001, 07:18 AM
is there a way to make a background image appear in a treeview? or even a colour other than white?
Background image for Treeviewgfroese 05-09-2001, 07:18 AM is there a way to make a background image appear in a treeview? or even a colour other than white? gfroese 05-09-2001, 01:37 PM I found a lot of stuff about the treeview here http://www.mvps.org/btmtz/treeview/ and I downloaded the two modules. I cut and paste all the definitions into one of my own modules, and then copied a function from the macros module, but it doesn't recognise the enum constant TVM_SETBKCOLOR when I try to run it. I've never used enums before so I don't really know what is going on. Any help appreciated here. anhmytran 05-16-2001, 04:24 AM Please, paste the code onto your post rather than the URL. I do not have time to search for the URL and determine which parts of the web site is what you are talking about. To make your code recorgnize the enum, just simply copy and paste it in your BAS file. AnhMy_Tran Garrett Sever 07-06-2001, 07:22 AM I put a BG into my Treeview control using the tutorial/info found in the source code section of http://www.vbthunder.com You need a working knowledge of Subclassing and GDI32 to follow the example, though... I've since also found/implemented ways to get background images into Textboxes, Listboxes, and ListViews using either subclassing or the extended features that come w/ common controls > v4.72. I'll attach a couple screenshots in a ZIP file for you all to see. -Hand out "On a long enough timeline, everyone's life expectancy drops to zero." - Fight Club<P ID="edit"><FONT class="small"><EM>Edited by The Hand on 07/06/01 08:40 AM.</EM></FONT></P> Garrett Sever 07-06-2001, 07:43 AM Example 1: TreeView (Found on www.vbthunder.com) "On a long enough timeline, everyone's life expectancy drops to zero." - Fight Club Garrett Sever 07-06-2001, 07:47 AM Example #2: Textbox and Listbox Uses subclassing to intercept the WM_CTLCOLOREDIT and WM_CTLCOLORLISTBOX messages... found in www.vbforums.com threads. "On a long enough timeline, everyone's life expectancy drops to zero." - Fight Club Garrett Sever 07-06-2001, 07:50 AM Example #3: ListView Simply uses the extended styles of the ListView control that came w/ >v4.72. Found at http://www.mvps.org/vbnet/index.html?code/comctl/lvbackground.htm "On a long enough timeline, everyone's life expectancy drops to zero." - Fight Club Garrett Sever 07-06-2001, 07:53 AM Oh yeah, and if you couldn't tell, I'm totally a GUI trick junkie. I love messing around with custom interfaces. -Hand out "On a long enough timeline, everyone's life expectancy drops to zero." - Fight Club Ad1 07-06-2001, 07:54 AM some nice examples there Mr Hand, I shall have to check these links myself |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum