Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to hide a TopSeparatorFrame
Re: How to hide a TopSeparatorFrame [message #14872 is a reply to message #14869] |
Tue, 18 March 2008 18:04   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
It should work (I've done similar things before). If you've only got one TopSeparatorFrame:
...
ctrl.AddFrame(ViewFrame());
ctrl.AddFrame(TopSeparatorFrame());
ctrl.AddFrame(ViewFrame());
...
void RemoveSeparator()
{
framepos = ctrl.FindFrame(TopSeparatorFrame());
ctrl.RemoveFrame(framepos);
}
void AddSeparator()
{
ctrl.InsertFrame(framepos, TopSeparatorFrame());
}
(framepos is a member variable, natch)
It'll be a bit more difficult if you've got more than one TopSeparatorFrame, but it should be possible with more specific information about the layout.
James
[Updated on: Tue, 18 March 2008 18:16] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Apr 27 19:51:14 CEST 2025
Total time taken to generate the page: 0.00428 seconds
|