Home » U++ Library support » Splitter » add controls to splitter bar, how? [NEEDS MORE IMPLEMENTATION...]
Re: add controls to splitter bar, how? [message #1960 is a reply to message #1958] |
Tue, 28 March 2006 21:44 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
I am afraid this will to satisfy your appetitte, but for illustration:
#include <CtrlLib/CtrlLib.h>
class App : public TopWindow {
LineEdit ed1,ed2;
Splitter horz;
FrameRight<StaticRect> sr;
Option btn;
public:
typedef App CLASSNAME;
void MoveSplitter();
App();
};
void App::MoveSplitter()
{
if(btn)
horz.SetPos(1000);
else
horz.SetPos(5000);
}
App::App()
{
horz.Add(ed1);
horz.Add(ed2);
Add(horz.Horz().VSizePos(35,35));
ed1.SetFrame(0, sr);
sr.Width(20);
ed1.AddFrame(FieldFrame());
sr.Add(btn.LeftPos(5, 20).TopPos(0, 20));
btn.WhenAction=THISBACK(MoveSplitter);
Sizeable().Zoomable();
}
GUI_APP_MAIN
{
App().Run();
}
As for the right solution, I believe something close how "edit window split" is done in TheIDE should be OK for you.
In fact, this is not much about U++, but about UI design. I do not believe that that option over split area looks nice
Mirek
|
|
|
|
|
add controls to splitter bar, how? [NEEDS MORE IMPLEMENTATION...]
By: fudadmin on Fri, 24 March 2006 14:37
|
|
|
Re: add controls to splitter bar, how?
By: mirek on Fri, 24 March 2006 14:57
|
|
|
Re: add controls to splitter bar, how?
By: fudadmin on Fri, 24 March 2006 15:16
|
|
|
Re: add controls to splitter bar, how?
By: fudadmin on Fri, 24 March 2006 15:31
|
|
|
Re: add controls to splitter bar, how?
By: fudadmin on Fri, 24 March 2006 17:58
|
|
|
Re: add controls to splitter bar, how?
By: mirek on Fri, 24 March 2006 23:01
|
|
|
Re: add controls to splitter bar, how?
By: fudadmin on Tue, 28 March 2006 20:43
|
|
|
Re: add controls to splitter bar, how?
By: mirek on Tue, 28 March 2006 21:44
|
|
|
Re: add controls to splitter bar, how?
By: fudadmin on Tue, 28 March 2006 23:44
|
|
|
Re: add controls to splitter bar, how?
By: fudadmin on Tue, 28 March 2006 23:59
|
|
|
Re: add controls to splitter bar, how?
By: mirek on Fri, 24 March 2006 22:54
|
Goto Forum:
Current Time: Fri Mar 29 07:48:09 CET 2024
Total time taken to generate the page: 0.01896 seconds
|