Home » U++ Library support » U++ Widgets - General questions or Mixed problems » How to hide a TopSeparatorFrame
How to hide a TopSeparatorFrame [message #14863] |
Tue, 18 March 2008 15:40  |
cbpporter
Messages: 1427 Registered: September 2007
|
Ultimate Contributor |
|
|
How would one best hide and show a TopSeparatorFrame (or the other equivalents). I could make the TopSeparatorFrameClass public for one and add the methods. Is there another way which doesn't add extra public names? Anyway, those classes are visible in Assist++ so it shouldn't be a problem.
|
|
|
|
|
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:34:00 CEST 2025
Total time taken to generate the page: 0.01094 seconds
|