Hide ListView's scrollbar?

As title, can I hide the scrollbar of a ListView?

In a project of mine, I use ListView widget to show lots of items, everthing works fine except the scrollbar. In my design, the scrollbar need to be hidden.

But, I find no way. So, need help here, Blueprint or C++ are both ok.

image

Collapsing does not work?

3 Likes

@Everynone , I test your solution. Scrollbar will hide if all entries (items)’ contain area is small. When the area go beyond the listview, the scrollbar will show automatically. Maybe that’s the problem. I want a solution to hide scrollbar ALWAYS.

I disagree. This gets rid of the scrollbar permanently. How are you calling this?

  • default:

  • collapsed scrollbar:

It’s strange!

Already use the SetScrollbarVisibility in EventOnInitialized, like below:

And my UMG hierarchy:

But the result still remain scrollbar-not-hidden:

What’s wrong here? I test this on version 4.26.2, different version?

4.25.3 indeed. Sorry. In my example I called it OnIntitialised, just like you.

Try adding another call during Construct, perhaps?

@Everynone

I move the SetScrollbarVisibility to construct, and, it works.

Amazing, you save my life!

1 Like

Hi!
Is there a way to do the same things, but for text box multiline? For some reason, the text box multi line has a scrollbox implemented with it, and I didn’t find any solution to remove the scrollbar, since the function SetScrollbarVisibility is not available for Textbox multiline. And there is no scrollbar property or anything like that that I can access in the blueprint.

And from the inspector, I can’t remove the scrollbar either. There is no image for the scrollbar already, it’s set to none by default, even though an image for the scrollbar is displayed. So I can’t even remove the “none” image. I can change the color of the “none” image to have it transparent, but it’s really hacky