|Tree selection rendering questions [message #631937]
||Sun, 10 October 2010 16:29
| Bjorn Gustafsson
Registered: July 2009
I develop a planning editor that has a widget with a Tree and a Canvas side-by-side. For each tree item in the Tree, there's a timebox item drawn on the Canvas, aligned so they appear to be part of the same "widget row".
I have two problems in relation to rendering of Tree selection. I'm hoping someone can help me with this this - any input is more than welcome!
1. I want to draw the background of the row in the Canvas in the same color as the Tree selection (both focused and non-focused) so that when user selects a row in the Tree, I can render the Canvas background in the same color. How can I get hold of the Tree selection colors and use them in the Canvas?
2. When the user selects a "widget row" in the Canvas I also select the corresponding tree item so the whole "widget row" appears selected. However, since the Canvas receives focus, the Tree loses focus and the Tree selection is rendered as grey non-focused. Is there a way to override the Tree behaviour and render as selected/focused even though it does not have focus?
With Best Regards,
Powered by FUDForum
. Page generated in 0.13301 seconds