mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ScatterCtrl_Demo: Improvement in linked ScatterCtrls
git-svn-id: svn://ultimatepp.org/upp/trunk@11605 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2989705282
commit
8fc6e52ba7
2 changed files with 3 additions and 3 deletions
|
|
@ -111,7 +111,7 @@ LAYOUT(TabUserPaint, 428, 296)
|
|||
END_LAYOUT
|
||||
|
||||
LAYOUT(TabPie, 536, 440)
|
||||
ITEM(PieCtrl, chart, SetLegendLeft(20).SetLegendBackColor(Color(229, 229, 229)).SetTitle(t_("Average Weather")).SetFrame(ThinInsetFrame()).HSizePosZ(8, 12).VSizePosZ(40, 12))
|
||||
ITEM(PieCtrl, chart, SetLegendBackColor(Color(229, 229, 229)).SetLegendLeft(20).SetTitle(t_("Average Weather")).SetFrame(ThinInsetFrame()).HSizePosZ(8, 12).VSizePosZ(40, 12))
|
||||
ITEM(Label, dv___1, SetLabel(t_(" EXPERIMENTAL")).SetFrame(ThinInsetFrame()).LeftPosZ(8, 84).TopPosZ(8, 24))
|
||||
END_LAYOUT
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ void Tab12_Linked::Init()
|
|||
scatter3.SetMouseHandling(true).SetMaxRange(5000).SetMinRange(2);
|
||||
for (int t = 0; t < 3000; ++t) {
|
||||
s1 << Pointf(t, 20*sin(6*M_PI*t/500) + 5*sin(3*M_PI*t/500 + M_PI/3) + 2*sin(14*M_PI*t/500 + M_PI/5));
|
||||
s2 << Pointf(t, 20*sin(6*1.1*M_PI*t/500));
|
||||
s2 << Pointf(t, 50*sin(6*1.1*M_PI*t/500));
|
||||
s3 << Pointf(t, 20*sin(6*1.2*M_PI*t/500));
|
||||
}
|
||||
scatter1.AddSeries(s1).Legend("Series 1").NoMark().Stroke(2, LtRed());
|
||||
|
|
@ -23,7 +23,7 @@ void Tab12_Linked::Init()
|
|||
scatter1.ShowInfo().ShowContextMenu().ShowPropertiesDlg().ShowProcessDlg();
|
||||
scatter2.ShowInfo().ShowContextMenu().ShowPropertiesDlg().ShowProcessDlg();
|
||||
scatter3.ShowInfo().ShowContextMenu().ShowPropertiesDlg().ShowProcessDlg();
|
||||
link = true;
|
||||
link <<= true;
|
||||
OnLink();
|
||||
link.WhenAction = THISBACK(OnLink);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue