Scrollbar Question

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
Mdobele
Just popping in
Just popping in
Posts: 10
Joined: Wed Jan 12, 2005 12:06
Location: Brisbane / Australia
Contact:

Scrollbar Question

Postby Mdobele » Tue Mar 01, 2005 12:47

Hi

I am trying to create a Window with a whole bunch of buttons on it. And I want a scrollbar on the side so that I can scroll through the buttons. Whats the best way you go to achieve this? I'm not quite sure how i link a scrollbar to my window so that I can scroll those buttons up and down. Essentually the way a ListBox scrolls through items.
Thanks

An example of what I am trying to do.


Image
Visit the PrimdGames website
www.primedgames.com

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Scrollbar Question

Postby CrazyEddie » Tue Mar 01, 2005 14:14

Hi,

Currently there is no ready made option available, but it is possible to fake it by using an oversized default window and adjusting it's position when a scrollbar you've attached gets its value changed (I think spannerman / mac did this general approach in thier particle editor).

Or, if you're using CVS head code...

You can wait until Thursday/Friday when I will have finally done the ScrollablePane (and I can hear spannerman rejoice from here :hammer: ).

CE.

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: Scrollbar Question

Postby spannerman » Tue Mar 01, 2005 18:27

You can wait until Thursday/Friday when I will have finally done the ScrollablePane (and I can hear spannerman rejoice from here :hammer: ).


Woohoo!! :pint:

Yes, mac and I have two different implementations of a 'scrollable pane'...one for our custom tab control which scrolls some buttons horizontally, and one to scroll a bunch of widgets up/down, hiding/showing the widgets as they are moved. Its all very very messy, so the scrollable pane is going to be an ultra useful addition. I'd wait for that if I was you :hammer:

User avatar
Mdobele
Just popping in
Just popping in
Posts: 10
Joined: Wed Jan 12, 2005 12:06
Location: Brisbane / Australia
Contact:

Re: Scrollbar Question

Postby Mdobele » Tue Mar 01, 2005 23:10

Sweet thanks guys. Cant wait to use it.
Visit the PrimdGames website

www.primedgames.com

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Scrollbar Question

Postby CrazyEddie » Wed Mar 02, 2005 18:53

This will almost certainly get added on Friday. I have it about 80% done, though I've been playing around with things today and am not entirely satisfied with the way it's working; so I'm going to redo some of the more obscure scrolling logic, rather than put out something I know to be sub-standard :twisted:

CE

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: Scrollbar Question

Postby spannerman » Wed Mar 02, 2005 21:17

Cool :)

I eagerly await its arrival, but yes dont rush this little puppy. I imagine theres many more people out there who will find this one useful.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Scrollbar Question

Postby CrazyEddie » Thu Mar 03, 2005 10:33

spannerman wrote:
Cool :)

I eagerly await its arrival, but yes dont rush this little puppy.

Now you should know by now that I am not one to rush things, how long has it taken me to get around to this :oops:

CE.

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: Scrollbar Question

Postby spannerman » Thu Mar 03, 2005 11:27

CrazyEddie wrote:

Now you should know by now that I am not one to rush things...


Hence the high quality of this GUI and why it is so popular.

CrazyEddie wrote:
how long has it taken me to get around to this :oops:


It matters not how long these things take. A real life analogy is Im a begger on the street, and you are a working man walking home. I ask for some change.
I dont care how long it takes for you to reach in your pocket and throw me some coins, because whatever I get Im greatful.

Ok, thats enough arse licking. The moral of the story is if the scrollpane dont work right, Im getting out the bat again :hammer:

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Scrollbar Question

Postby CrazyEddie » Thu Mar 03, 2005 12:47

spannerman wrote:
thats enough arse licking. The moral of the story is if the scrollpane dont work right, Im getting out the bat again :hammer:

:shock:
.
.
.
:-o
.
.
.
:shock:
.
.
.
Not, "the bat" :(

:lol:

Quick update: Things are going quite well, mainly just have some property classes to add and then code the windows look variant. There's two small glitches at the moment, one is only of concern when negative relative co-ords are used, and the other is something else ( :roll: ), I'll probably not get these fixed before making the component available, mainly so I can get some more feedback :hammer:

CE.

User avatar
Mdobele
Just popping in
Just popping in
Posts: 10
Joined: Wed Jan 12, 2005 12:06
Location: Brisbane / Australia
Contact:

Re: Scrollbar Question

Postby Mdobele » Fri Mar 04, 2005 00:16

:shock: OMG the people on this forum are craaaazy.


Sounds good CE. cant wait to use it. :D
Visit the PrimdGames website

www.primedgames.com

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: Scrollbar Question

Postby spannerman » Fri Mar 04, 2005 00:42

Hehe.

CrazyEddie wrote:
... I'll probably not get these fixed before making the component available, mainly so I can get some more feedback :hammer:


Yup, Im happy to help check whatever you have out and let you know how it goes.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Scrollbar Question

Postby CrazyEddie » Fri Mar 04, 2005 13:36

Mdobele wrote:
:shock: OMG the people on this forum are craaaazy.

Mwwhahahahahahhah! :-D

Okay people, the ScrollablePane is now in CVS-HEAD. Best to allow a few hours for anonymous cvs to sync up with the developer cvs; although the snapshot downloads are up-to-date right now, if that is your kind of thing.

Anyway, any problems, don't call me :hammer:

CE.

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: Scrollbar Question

Postby spannerman » Fri Mar 04, 2005 16:04

Lol, cool! I'll check this out as soon as I get home, in about 1 hour...

User avatar
spannerman
Home away from home
Home away from home
Posts: 330
Joined: Wed Jan 12, 2005 12:06

Re: Scrollbar Question

Postby spannerman » Fri Mar 04, 2005 16:52

Just rebuilding everything now. I see youve sneaked tooltips in there too! 8)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Scrollbar Question

Postby CrazyEddie » Fri Mar 04, 2005 18:56

spannerman wrote:
I see youve sneaked tooltips in there too! 8)

Nah, that's just the files that will be the tooltips, I'm still deciding how I want to go about those (I might get them in over the weekend, though).

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 12 guests