Page 1 of 1
Giving "selected" feedback for a Static Image?
Posted: Sat Mar 15, 2008 14:25
by HexDump
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.
Posted: Sat Mar 15, 2008 18:35
by scriptkid
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.
Re: Giving "selected" feedback for a Static Image?
Posted: Sat Mar 15, 2008 20:00
by CrazyEddie
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.
Posted: Mon Mar 17, 2008 11:57
by HexDump
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.
Posted: Mon Mar 17, 2008 14:27
by CrazyEddie
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.
Posted: Tue Mar 18, 2008 20:33
by HexDump
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.
Posted: Wed Mar 19, 2008 10:16
by CrazyEddie
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
CE.