Jump to content

How do I programmatically change the color of an entire tree control?


Recommended Posts

Create a property node for the tree and set the following properties (in this order)

 

Active Cell.Active Column Number = -2 (this selects all columns)

Active Item.Row Number = -2 (this selects all rows, including the column headers)

Active Cell.Background Color = Desired color

 

You may have to play with it a bit to get everything exactly right, but this should get you started. Set Active Item.Row Number = -1 to color just the column headers. Also remember property nodes are executed top down, this is why order matters

Link to comment

Basically you need 2 more Property nodes if you want to keep your headers color.

 

you must do what QueueYueue said first.

 

Then :

Active Cell.Active Column Number = -2 (this selects all columns)

Active Item.Row Number = -1 (this selects the column headers)

Active Cell.Background Color = Desired color

 

Then :

Active Cell.Active Column Number = -1 (this selects row header)

Active Item.Row Number = -2 (this selects all rows)

Active Cell.Background Color = Desired color

Edited by Jimmy Chretien
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.