Editbox with slider

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

earthsruler
Quite a regular
Quite a regular
Posts: 74
Joined: Mon Apr 28, 2008 23:21
Location: Australia

Editbox with slider

Postby earthsruler » Thu Jun 12, 2008 00:28

What I want to do is have a slider with an Editbox attached. When you slide the slider it will change the value in the Editbox, and if you change the value in the Editbox it will update the slider.

I am quite enjoying the lookandfeel files and have already made a slider with a text component ( which was really easy and made me love CEGUI more :) ). Would it be possible to create this Edit box slider combo with the lookandfeel file as well?

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

Postby CrazyEddie » Thu Jun 12, 2008 08:24

Hi,

You can certainly handle the parts that deal with the component widget creation and layout in the looknfeel, though I think you'll almost certainly need some supporting code to handle the value / slider position updates.
Basically, this would would involve an event subscription on the slider to update the editbox text, and a similar subscription on the editbox to update the slider position.

CE.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 9 guests