Giving "selected" feedback for a Static Image?

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

HexDump
Just popping in
Just popping in
Posts: 19
Joined: Fri Mar 07, 2008 11:49

Giving "selected" feedback for a Static Image?

Postby HexDump » Sat Mar 15, 2008 14:25

Hi all,

I have some images, and I want the user to click on them and make them change to tell the user one is selected. Is it possible to do this with cegui?.

By the way, I have set a title bar for a framewindow, and the client zone of the windows seems to be the same that whitout it, I mean, If a Titlebar is set, if I place a control at 0 from top, it is covered by the titlebar, is there anysolution to this? is there anyway to get the size of the titlebar?.


Thanks in advance,
HexDUmp.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Sat Mar 15, 2008 18:35

Hi,

for the Image part, you might look into using an ImageButton (taharez) and see how it works there.

About the titlebar, you might look here: http://www.cegui.org.uk/phpBB2/viewtopi ... dow+offset

Bit of a quick reply, but i'm in a hurry ;)

HTH.
Check out my released snake game using Cegui!

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

Re: Giving "selected" feedback for a Static Image?

Postby CrazyEddie » Sat Mar 15, 2008 20:00

HexDump wrote:If a Titlebar is set, if I place a control at 0 from top, it is covered by the titlebar, is there anysolution to this? is there anyway to get the size of the titlebar?.


Hi,

In addition to scriptkid's quick response, here is my quick response ;)

Please see:
http://www.cegui.org.uk/phpBB2/viewtopi ... 2953#12953

and
http://www.cegui.org.uk/wiki/index.php/ ... to_Windows

HTH

CE.

HexDump
Just popping in
Just popping in
Posts: 19
Joined: Fri Mar 07, 2008 11:49

Postby HexDump » Mon Mar 17, 2008 11:57

Well, the tilebar thing doesn´t work for me. I have checked the size of the children array with titlebar and without it and it is the same, so I suppose, the Titlebar is not a child of the frame window (I used getchild() function). I have to check CrazyEddie solution, but I prefer just to do the titlebar thing, does it really works?.

Thanks in advance,
HexDump.

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

Postby CrazyEddie » Mon Mar 17, 2008 14:27

You'll need to give more information as regards to what did not work - i.e. post the code you tried, what you thought would happen, and what did (nor did not) happen, any errors you get, etc...

The Titlebar is indeed a child of the FrameWindow - the child count will remain the same whether it is enabled or not, since it is always created and attached, it is just hidden when disabled.

CE.

HexDump
Just popping in
Just popping in
Posts: 19
Joined: Fri Mar 07, 2008 11:49

Postby HexDump » Tue Mar 18, 2008 20:33

Well, it is working now. It was my fault sorry.

By the way, is it possible to have variable thum sizes in the scroll bar? I want it to reflect the pagesize vs documentsize ration.

Thanks in advance,
HexDump.

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

Postby CrazyEddie » Wed Mar 19, 2008 10:16

HexDump wrote:is it possible to have variable thum sizes in the scroll bar? I want it to reflect the pagesize vs documentsize ration.


This used to be possible as the WindowsLook scrollbars did this by default. I've just had a quick look and it appears that it's not currently possible anymore :( I've made a note to address this in the future as this is something that I myself want the system to do :roll:

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests