Page 1 of 1

ListBox and sliders

Posted: Mon Nov 09, 2009 16:56
by PJani
How can i force Vert and Horiz sliders not to display? i dont need them.

Re: ListBox and sliders

Posted: Mon Nov 09, 2009 23:20
by Jamarr
Please exhaust all of your sources before asking your question: look at the API, search the wiki, search the forums. All of these sources can answer you question without having to waste someone elses time.

To answer the question, the API in v0.6.2 provides the following functions: setShowHorzScrollbar and setShowVertScrollbar - however since you also neglected to post the version of CEGUI you are using, I cannot give a definitive answer as to which methods you should use to achieve this.

Re: ListBox and sliders

Posted: Tue Nov 10, 2009 18:21
by PJani
Sory i forgot to specify version.
My version is 0.7.1.

i have set setShowHorzScrollbar and setShowVertScrollbar to false, before i posted this. These two functions are not forcing sliders not to display, this is my problem.
I searched all cegui api allready and I didn't find anything useful.

I only ask when i cant go forward.

Re: ListBox and sliders

Posted: Tue Nov 10, 2009 22:57
by Jamarr
I don't have any problems with Listbox Scrollbars in v0.6.2, so it is either a bug in v0.7.1 or it is derived from your code.

Have you checked the value of the ForceVertScrollbar and ForceHorzScrollbar as specified here and in CEGUIListboxProperties.h?