I'm have a reusable part as a column in a list (to support word wrapping with variable lines) and I'm finding that the theme settings for 'ListItem' for selected, mouseover etcetera are not applied, ie when I click on a row all columns have the selected style except the RP column.
What do I have to do make this column behave like the rest?
Reusable Part in List
- Stewart Marshall
- Posts: 417
- Joined: Thu Nov 05, 2015 5:25 pm
Re: Reusable Part in List
By default, all panels and labels are transparent, so Selected, Focus and Mouseover related styles should be visible through the cells.
Without seeing your code, my guess would be that you've specified a background colour somewhere.
Without seeing your code, my guess would be that you've specified a background colour somewhere.
Re: Reusable Part in List
Its not quite that simple, Mouseover & Pressed work on all columns buts Selected only highlights the non RP columns.
Re: Reusable Part in List
Just to clarify(!) I have white text on a dark gray background.
(I've used extreme colours so I can see what is happening)
On Mouseover I have a foreground colour of pink - this work across all columns
On Pressed I have a foreground colour of yellow- this work across all columns
On Selected I have a foreground colour of blue - when a row is clicked and the cursor moved away only the non-RP columns have blue text, the RP column returns to white as if it is not selected.
(I've used extreme colours so I can see what is happening)
On Mouseover I have a foreground colour of pink - this work across all columns
On Pressed I have a foreground colour of yellow- this work across all columns
On Selected I have a foreground colour of blue - when a row is clicked and the cursor moved away only the non-RP columns have blue text, the RP column returns to white as if it is not selected.
- Stewart Marshall
- Posts: 417
- Joined: Thu Nov 05, 2015 5:25 pm
Re: Reusable Part in List
Do the reusable parts have any ThemeDrawStyles applied anywhere in their code?
- Stewart Marshall
- Posts: 417
- Joined: Thu Nov 05, 2015 5:25 pm
Re: Reusable Part in List
Aha...I think I may have reproduced your issue
Re: Reusable Part in List
I did have a themedrawsyle on the labels in my RP (I set it because I'm using a dark background and could't see the text). I've removed the style and its now behaving as expected.