Reusable Part in List

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Reusable Part in List

Post by soa »

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?
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Reusable Part in List

Post by Stewart Marshall »

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.
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Reusable Part in List

Post by soa »

Its not quite that simple, Mouseover & Pressed work on all columns buts Selected only highlights the non RP columns.
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Reusable Part in List

Post by soa »

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.
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Reusable Part in List

Post by Stewart Marshall »

Do the reusable parts have any ThemeDrawStyles applied anywhere in their code?
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
User avatar
Stewart Marshall
Posts: 417
Joined: Thu Nov 05, 2015 5:25 pm

Re: Reusable Part in List

Post by Stewart Marshall »

Aha...I think I may have reproduced your issue
Stewart Marshall

Independent IT Consultant
www.marshallfloyd.com.au
soa
Posts: 339
Joined: Mon Dec 07, 2015 3:15 pm

Re: Reusable Part in List

Post by soa »

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.
Post Reply