I'm pretty sure that to change the scrollbar width on a listbox, i'll probably need to write or change the code for the listbox.
Just thought I'd ask if there's some easy way to change the listbox scrollbar size.
It looks fine on PC, but it's barely small enough to touch on Android
EDIT
getVerticalScrollBar() in the .h file - doesn't seem to actually be getting the scrollbar
ListBox Scrollbar Width
Re: ListBox Scrollbar Width
I think (not tested right now) you can change it with IGUISkin::setSize(irr::gui::EGDS_SCROLLBAR_SIZE, size);
You get the the skin from the guienvironment.
You get the the skin from the guienvironment.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: ListBox Scrollbar Width
I had to go look at the source of some of my older WIP's to see how I had done this, and found that CuteAlien's solution is correct.
-
- Posts: 386
- Joined: Sun May 11, 2014 12:13 am
Re: ListBox Scrollbar Width
Tried CuteAlien's solution.
All the size is doing is changing the highlight width of the selected listbox item, the scrollbar width itself has no change.
All the size is doing is changing the highlight width of the selected listbox item, the scrollbar width itself has no change.
Re: ListBox Scrollbar Width
OK, guess I'll have to check then.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: ListBox Scrollbar Width
Hm, seems to work in my test.
Left is with:
Right with:
(I copied them together in gimp - can't have different sizes at the same time with current solution!)
Left is with:
Code: Select all
env->getSkin()->setSize(irr::gui::EGDS_SCROLLBAR_SIZE, 10);
Code: Select all
env->getSkin()->setSize(irr::gui::EGDS_SCROLLBAR_SIZE, 30);
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
-
- Posts: 386
- Joined: Sun May 11, 2014 12:13 am
Re: ListBox Scrollbar Width
Hm. This is what mine looks like:
But I am using the 5065 branch for Android -- so I suppose that's my own issue.
Thanks for the help
But I am using the 5065 branch for Android -- so I suppose that's my own issue.
Thanks for the help
Re: ListBox Scrollbar Width
Hm, that explains it not really - that code is older than the ogl_es branch. But I would need code to reproduce it... (modifed hello-world or so would be enough).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm