DropDown scrollbar?

#1

How do I add a scrollbar to a dropdown GUI element, so I can limit its height but still have really large lists?

Thanks!

#2

Hi, NessEngine!

I’ve got almost no experience with Urho3D GUI stuff, so I went looking for an answer to your question.
Chances are I’ll be needing this kind of thing very soon…

DropDownList has a method called GetListView(), which returns a ListView object representing your dropdown element… as it so happens, the ListView class derives from ScrollView, which has a method called SetScrollBarsVisible, and another called SetScrollBarsVisibleAuto.
I hope that helps! :slight_smile:

2 Likes
#3

Works great, thank you! :slight_smile:

1 Like