mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.SplitterFrame1 cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@3240 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8cfbeffadc
commit
5a8a97ef5b
1 changed files with 29 additions and 32 deletions
|
|
@ -1,32 +1,29 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
#define LAYOUTFILE <SplitterFrame1/StandardLayout.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
struct MyApp : WithStandardLayout<TopWindow> {
|
||||
SplitterFrame sf;
|
||||
ArrayCtrl list,list1;
|
||||
typedef MyApp CLASSNAME;
|
||||
TopWindow app;
|
||||
|
||||
MyApp() {
|
||||
CtrlLayoutOKCancel(*this, "Test SplitterFrame");
|
||||
AddFrame(sf.Left(list, 200));
|
||||
list.AddColumn("List");
|
||||
for(int i = 0; i < 100; i++)
|
||||
list.Add(FormatIntRoman(i, true));
|
||||
AddFrame(InsetFrame());
|
||||
sf.SizeMin(200).MinSize(100);
|
||||
Sizeable();
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
MyApp().Run();
|
||||
}
|
||||
|
||||
|
||||
|
||||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define LAYOUTFILE <SplitterFrame1/StandardLayout.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
struct MyApp : WithStandardLayout<TopWindow> {
|
||||
SplitterFrame sf;
|
||||
ArrayCtrl list,list1;
|
||||
typedef MyApp CLASSNAME;
|
||||
TopWindow app;
|
||||
|
||||
MyApp() {
|
||||
CtrlLayoutOKCancel(*this, "Test SplitterFrame");
|
||||
AddFrame(sf.Left(list, 200));
|
||||
list.AddColumn("List");
|
||||
for(int i = 0; i < 100; i++)
|
||||
list.Add(FormatIntRoman(i, true));
|
||||
AddFrame(InsetFrame());
|
||||
sf.SizeMin(200).MinSize(100);
|
||||
Sizeable();
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
MyApp().Run();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue