B4J Question Change Background Color of Expandable CLV

GuyBooth

Active Member
Licensed User
Longtime User
I'm working with an expandable CLV. With a slightly modified version of the original demo (attached) from this forum I have just three items, leaving a blank space below them. I have changed the background color of the items to a dark green color (which works fine) but the empty area below the items (circled in blue in the picture below) remains a non-descript gray. I have tried changing every color I can think of to make this dark green to match the Item panels background color, but no luck.

upload_2019-6-7_10-39-25.png


How can I change this color?
 

Attachments

  • Expandable CLV Color Problem.zip
    5.3 KB · Views: 132

mangojack

Well-Known Member
Licensed User
Longtime User
Last edited:
Upvote 0

GuyBooth

Active Member
Licensed User
Longtime User
I tested the alternative method / code suggested by @stevel05 in post #4 .. which worked also.
Thanks mj, this suits me better than using the CSS file … but why does the call have to be subdelayed, rather than direct? (Just curious, the direct call doesn't work and the delayed call does).
 
Upvote 0

mangojack

Well-Known Member
Licensed User
Longtime User
but why does the call have to be subdelayed, rather than direct?

after a test .. any call to the sub AFTER the form is loaded / shown works ..

B4X:
CallSub3(Me,"SetScrollPaneBackgroundColor",clv1,0xFF008000)
'OR
SetScrollPaneBackgroundColor(clv1,0xFF008000)

ps: it has just occurred to me that the CSS style method sets the background transparent .. but this sub code actually colors the background. ?
Either way it achieves the desired result.
 
Last edited:
Upvote 0
Top