Button widget

rodrigofarias77

30-07-2007 22:22:55

KungFooMasta, CEGUI divides the button widget in 3 parts, with an image for each one. The central part is the only one which stretches its image.

Do you plan to implement a button divided in 9 parts? What is the widget I could use as starting point in QuickGUI to do such button? It seems QuickGUI::Window only uses 5 parts (materials).

If you need, I can send you an image to explain what are those 9 parts, and the kind of stretch to each one.

Regards
Rodrigo

kungfoomasta

31-07-2007 07:49:54

Images are usually fun to look at. :twisted:

Maybe you're referring to borders? Border exist for widgets in v0.9.5, and will be redone in v0.9.6. I'll make sure to include an example of a button with borders in the demo app. If I've misunderstood you, then an image would really help explain what you're looking for.

rodrigofarias77

31-07-2007 19:18:04

I do not know if what you call border is exactly what I was trying to say. So let us try the image approach.



When we set the size of a button, some parts of it are stretched to fit the new size. Actually what is stretched is an image texture. For instance, this Windows button is divided in 9 parts.

- The blue ones may not be stretched at all
- The red ones may be stretched vertically
- The green ones may be stretched horizontally
- The yellow one may be stretched freely

Is this what you were calling borders? Will the new version of QuickGUI support this feature?

Regards
Rodrigo

kungfoomasta

31-07-2007 21:31:57

Yes, we are talking about the same. Thanks for showing the image. :)

Borders:
Left/Top/Right/Bottom
LeftTop/RightTop/LeftBottom/RightBottom

Each widget will have the ability to use borders. It will be something like
Widget::useBorders( /* some parameters */ );

rodrigofarias77

31-07-2007 22:05:44

Very good! Thank you KungFooMasta.

Regards
Rodrigo