mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-22 06:12:32 -06:00
.uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@5868 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
5e1a4e8676
commit
ff82abb318
2 changed files with 8 additions and 6 deletions
|
|
@ -6,13 +6,10 @@ GUI_APP_MAIN
|
|||
{
|
||||
ArrayCtrl a;
|
||||
a.AddColumn("Alfa\rbeta");
|
||||
for(int i = 0; i < 100; i++) {
|
||||
for(int i = 0; i < 10; i++) {
|
||||
a.Add(i);
|
||||
if(i % 3 == 0)
|
||||
a.Select(i);
|
||||
}
|
||||
a.Select(70, 10);
|
||||
a.MultiSelect();
|
||||
a.MultiSelect().Removing();
|
||||
TopWindow app;
|
||||
app.Add(a.SizePos());
|
||||
app.Run();
|
||||
|
|
|
|||
|
|
@ -8,6 +8,11 @@ String FileName()
|
|||
return GetExeDirFile("test.qtf");
|
||||
}
|
||||
|
||||
struct MyApp : TopWindow {
|
||||
virtual void Activate() { Title("Active"); TopWindow::Activate(); }
|
||||
virtual void Deactivate() { Title("Deactivated"); TopWindow::Deactivate(); }
|
||||
};
|
||||
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
|
|
@ -41,7 +46,7 @@ GUI_APP_MAIN
|
|||
LoadFromFile(f, ConfigFile("pos"));
|
||||
e.SetPosInfo(f);
|
||||
// e.Pick(ParseQTF(AsQTF(CreateImageObject(CtrlImg::exclamation)) + " hahahaha"));
|
||||
TopWindow w;
|
||||
MyApp w;
|
||||
w.ToolWindow();
|
||||
w.SetRect(0, 0, 700, 500);
|
||||
w.Sizeable().Zoomable();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue