HardCopy Posted July 26, 2005 Share Posted July 26, 2005 Hi FellasIve populated a treeview with treeview itemsusing categories under which display the products in that category.However i wish to have the Category heading in either a different font or a different coloured text to the product shown in subitems beneath each category:quick example:+VEGETABLES --- Peas --- Carrots+ FRUIT --- Apples --- Oranges in short i want the VEGETABLES and FRUIT Category Headers different from their component colour/font.Ive used GUICtrlSetFont & GUICtrlSetColor to change the main treeview, but using these options on the treeviewitems appears to have no effect.Anyone help me here? Thank youHardCopy Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad Link to comment Share on other sites More sharing options...
Valuater Posted July 26, 2005 Share Posted July 26, 2005 after creating the treeview item you want... use _GUICtrlTreeViewSetTextColor (-1, ???????) Needs beta version 8) Link to comment Share on other sites More sharing options...
GaryFrost Posted July 26, 2005 Share Posted July 26, 2005 Doesn't work that, it colors all the text for the treeview control. Far as I know for treeview and listview there is no option to color each item seperate. Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Valuater Posted July 26, 2005 Share Posted July 26, 2005 Gary is right, sorry 8( Link to comment Share on other sites More sharing options...
HardCopy Posted July 26, 2005 Author Share Posted July 26, 2005 Doesn't work that, it colors all the text for the treeview control.Far as I know for treeview and listview there is no option to color each item seperate.Gary<{POST_SNAPBACK}>The words of which i was dreading.oh well, at least i wont waste an evening, like i already wasted this afternoon trying.Thx GaryHardcopy Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad Link to comment Share on other sites More sharing options...
dragonlord Posted November 9, 2006 Share Posted November 9, 2006 GUICtrlSetColor works for both. Check out the screens maybe fixed in the beta. If anyone still haven got this , willl share sum code. Noob Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now