B4J Question CLV Background Color ...

GuyBooth

Active Member
Licensed User
Longtime User
Why am I having trouble with this?
In the attached project, I want the background of the CLV to be a specific color, or transparent - but "it" insists on being white.
The individual items are fine (each click of the button adds one),
What do I need to do? What property controls it? I'm sure I have figured this out in the past, but right now I'm stumped.
 

Attachments

  • CLV Background.zip
    3.1 KB · Views: 120

GuyBooth

Active Member
Licensed User
Longtime User
Yes BUT you have added enough items to fill the clv panel. If you only add one item you get this:



If you set the background Alpha to 0, you don't see the added items at all. And if you set the background alpha to 1 and add one item, you get this:



Which brings me back to my original problem: How do I make the background into a color I want?
 
Upvote 0

Gabino A. de la Gala

Well-Known Member
Licensed User
Longtime User
How do I make the background into a color I want?

I solved it by following the thread that I indicated before:

Erel said:
This is a limitation of the way CLV works. The divider color = the background color.

You can use XUIViewsUtils.AddStubToCLVIfNeeded to add a stub item at the bottom.
 
Upvote 0

Gabino A. de la Gala

Well-Known Member
Licensed User
Longtime User
I appreciate your help Gabino. I'm using Erel's solution with the style sheet, especially since I need one for other items on the screen anyway.

I'm glad the other option worked for you.

The truth is that I have been looking at it and I find it very interesting to give a more "professional" aspect to the applications made with B4J.

A greeting.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…