How to define Property sheets of GUI widgets

Discussion regarding the development of CEGUI itself - as opposed to questions about CEGUI usage that should be in the help forums.

Moderators: CEGUI MVP, CEGUI Team

User avatar
ritz
Quite a regular
Quite a regular
Posts: 49
Joined: Wed Jan 12, 2005 12:06

How to define Property sheets of GUI widgets

Postby ritz » Tue Nov 09, 2004 10:24

Hello All,

Can any body tell me is their any support avaiable in CGGUI Library to show a property sheets of a Gui widget.

Or i need to create it on my own.


Rgds,
Ritz

User avatar
Banania
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Wed Jan 12, 2005 12:06
Location: Paris, France

How to define Property sheets of GUI widgets

Postby Banania » Tue Nov 09, 2004 11:09

Can you please explain a little what you are trying to achieve ? I am not sure to understand what you want ...
Banania

User avatar
ritz
Quite a regular
Quite a regular
Posts: 49
Joined: Wed Jan 12, 2005 12:06

How to define Property sheets of GUI widgets

Postby ritz » Tue Nov 09, 2004 11:43

I am plainng to create a GUI widget.


I want to provide a dialog where user should be able to change properties of the widget on runtime.

This is similar to any activex control property sheet used in windows.

Hope i am able to explain what i am looking for.

Ritz

User avatar
Banania
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Wed Jan 12, 2005 12:06
Location: Paris, France

How to define Property sheets of GUI widgets

Postby Banania » Tue Nov 09, 2004 12:14

A property sheet widget capable of handling different types of property would be indeed a nice widget to have.

But, you could easily fake one using the multicolumnlist widget, having one column for the property name and one column for it's value.

Of course, you would have to handle the values as strings, but it's not too much of an issue. Or maybe, you could subclass the ListboxItem class to handle values as boolean, numbers... I never actually tried it so I am not sure it is possible but it seems reasonable.

You can populate the list with Window::getPropertyIterator().

Well, if you still plan on creating a fully functionnal property sheet widget, i'd love to hear about it...
Banania


Return to “CEGUI Library Development Discussion”

Who is online

Users browsing this forum: No registered users and 3 guests