Page 1 of 1

Editbox with slider

Posted: Thu Jun 12, 2008 00:28
by earthsruler
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?

Posted: Thu Jun 12, 2008 08:24
by CrazyEddie
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.