disabled treeview looks ugly
- From: "Tim_Mac" <tim@xxxxxxxxx>
- Date: 22 Aug 2005 10:25:19 -0700
hi,
i have a treeivew with items the user can click on to load a page into
a htmleditor. while the page is loading, i don't want the user to be
able to click on other nodes (they can cancel the load another way if
they want to), so i tried disabling the treeview. but it looks very
bad while it is disabled. the background color of the control remains
the same, but the items go grey background color, and in my opinion
looks very ugly, partly because it is a multi-level treeview and you
get gray strips of differing widths all the way up and down the
treeview. here is a sample screenshot:
http://tim.mackey.ie/stuff/treeview_disabled.jpg
is there a way to change it's style when it is disabled?
in my opinion it would have been better to shadow out the node text,
like a disabled label, instead of making the whole node background go
grey.
i tried setting the treeview backcolor to white, but that didn't change
anything. i don't want to loop through each node and change it's
backcolor to white, because the load only takes 1 or 2 seconds anyway,
and the treeview has lots of nodes, so it seems overkill to do
processing on each node.
appreciate any tips
tim.
.
- Follow-Ups:
- RE: disabled treeview looks ugly
- From: "Jeffrey Tan[MSFT]"
- RE: disabled treeview looks ugly
- Prev by Date: Re: StackOverFlowException
- Next by Date: Custom Painting a tab control
- Previous by thread: toolStrip buttons
- Next by thread: RE: disabled treeview looks ugly
- Index(es):