Page 1 of 1
Add ImageButton in the FrameWindow titlebar
Posted: Sun Jan 17, 2010 07:01
by jasonjzz
Add ImageButton in the FrameWindow titlebar , how do it!!
i try set the Property ClippedByParent(False),but when I resize the FrameWindow ,The ImageButton Pictrue size & position will be wrong!
sorry my bad english!
Re: Add ImageButton in the FrameWindow titlebar
Posted: Sun Jan 17, 2010 19:21
by CrazyEddie
If you're using the 0.7.x code, then it's likely that rather than setting "ClippedByParent" to false, you should set "NonClient" to True instead.
HTH
CE.
Re: Add ImageButton in the FrameWindow titlebar
Posted: Tue Jan 19, 2010 17:47
by jasonjzz
CrazyEddie wrote:If you're using the 0.7.x code, then it's likely that rather than setting "ClippedByParent" to false, you should set "NonClient" to True instead.
HTH
CE.
using the 0.7.x code can be OK?
but I need the 0.6.x,Because I need the dx81RenderModule. I download the CELayoutEditor 0.7.1a try your argument, The result was not work!!

Help Help Help!!
Re: Add ImageButton in the FrameWindow titlebar
Posted: Tue Jan 19, 2010 18:00
by jasonjzz
This is my desired results

I do not want it to change with the size of FrameWindow.
but I cant do this.
when I change with the size of FrameWindow.The Button beyond the TitleBar.

why??????!
Re: Add ImageButton in the FrameWindow titlebar
Posted: Wed Jan 20, 2010 09:47
by CrazyEddie
jasonjzz wrote:I do not want it to change with the size of FrameWindow.
So use absolute pixel sizes (offset) instead of relative sizes (scale)
jasonjzz wrote:when I change with the size of FrameWindow.The Button beyond the TitleBar.
why??????!
Because you're using relative sizing, which is relative to the size of the containing FrameWindow. You should either use pixel sizes, or maybe add the button directly to the title bar itself (not sure if it's possible directly in the CELayoutEditor at the moment, but CEGUI supports doing this). If you need the button on every FrameWindow, then a better choice would be to add it into the looknfeel instead - since it's more powerful and offers more control than the layout system.
CE.
Re: Add ImageButton in the FrameWindow titlebar
Posted: Sat Jan 23, 2010 14:46
by jasonjzz
CrazyEddie wrote:jasonjzz wrote:I do not want it to change with the size of FrameWindow.
So use absolute pixel sizes (offset) instead of relative sizes (scale)
jasonjzz wrote:when I change with the size of FrameWindow.The Button beyond the TitleBar.
why??????!
Because you're using relative sizing, which is relative to the size of the containing FrameWindow. You should either use pixel sizes, or maybe add the button directly to the title bar itself (not sure if it's possible directly in the CELayoutEditor at the moment, but CEGUI supports doing this). If you need the button on every FrameWindow, then a better choice would be to add it into the looknfeel instead - since it's more powerful and offers more control than the layout system.
CE.
yes.Titlebar is ok now,but the FrameWindow BottomBar is wrong, I want add a button on the FrameWindow BottomBar , How do it! thanks!

Re: Add ImageButton in the FrameWindow titlebar
Posted: Mon Jan 25, 2010 08:55
by CrazyEddie
Well, the bottom part of the frame is just an image, so depending on the skin / looknfeel this area is not easily expanded from a visual point of view, unless you modify the source imagery and imageset to make it tall enough to accommodate your button(s). Another option is to have a container window that you add the buttons to, this could be styled such that it looks like part of the FrameWindow.
You can add any content you want to the bottom of the window (and keep it at the bottom) by way of using the window alignment settings with WA_BOTTOM and a vertical position of 0 (or whatever), this can be used in layouts or looknfeel. You may need to set this content with the AlwaysOnTop option to give the illusion that it's part of the window chrome, since in version 0.6.x there is no separate client area - so all content is contending for the same space equally.
CE.