mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
.ScatterCtrl_Demo: Small change
git-svn-id: svn://ultimatepp.org/upp/trunk@6081 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
1ce70e9028
commit
df4447469c
2 changed files with 6 additions and 5 deletions
|
|
@ -44,6 +44,7 @@ ScatterCtrl_Demo::ScatterCtrl_Demo()
|
|||
for (int i = 0; i < Examples().GetCount(); ++i)
|
||||
Examples()[i].ctrl()->Init();
|
||||
|
||||
examplesList.NoHorzGrid().NoVertGrid();
|
||||
examplesList.AddColumn("Example name");
|
||||
for (int i = 0; i < Examples().GetCount(); ++i) {
|
||||
examplesList.Add(Examples()[i].name);
|
||||
|
|
@ -109,14 +110,14 @@ void ScatterCtrl_Demo::SavePNG()
|
|||
{
|
||||
int ntab = examplesList.GetCursor();
|
||||
|
||||
Examples()[ntab].ctrl()->Scatter().SaveToFile(Format("scatter%d.png", ntab));
|
||||
Examples()[ntab].ctrl()->Scatter().SaveToFile(AppendFileName(GetDesktopFolder(), Format("scatter%d.png", ntab)));
|
||||
}
|
||||
|
||||
void ScatterCtrl_Demo::SaveJPG()
|
||||
{
|
||||
int ntab = examplesList.GetCursor();
|
||||
|
||||
Examples()[ntab].ctrl()->Scatter().SaveToFile(Format("scatter%d.jpg", ntab));
|
||||
Examples()[ntab].ctrl()->Scatter().SaveToFile(AppendFileName(GetDesktopFolder(), Format("scatter%d.jpg", ntab)));
|
||||
}
|
||||
|
||||
#ifdef PLATFORM_WIN32
|
||||
|
|
@ -124,7 +125,7 @@ void ScatterCtrl_Demo::SaveEMF()
|
|||
{
|
||||
int ntab = examplesList.GetCursor();
|
||||
|
||||
Examples()[ntab].ctrl()->Scatter().SaveAsMetafile(Format("scatter%d.emf", ntab));
|
||||
Examples()[ntab].ctrl()->Scatter().SaveAsMetafile(AppendFileName(GetDesktopFolder(), Format("scatter%d.emf", ntab)));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue