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!
Add ImageButton in the FrameWindow titlebar
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Add ImageButton in the FrameWindow titlebar
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.
HTH
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Add ImageButton in the FrameWindow titlebar
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
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??????!
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??????!
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Add ImageButton in the FrameWindow titlebar
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.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Add ImageButton in the FrameWindow titlebar
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!
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Add ImageButton in the FrameWindow titlebar
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.
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.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 12 guests