mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.reference
git-svn-id: svn://ultimatepp.org/upp/trunk@10274 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8b96b11e8c
commit
c8dbd68e1d
18 changed files with 55 additions and 67 deletions
|
|
@ -8,7 +8,6 @@ using namespace Upp;
|
|||
|
||||
class MainWindow : public WithMainWindowLayout<TopWindow> {
|
||||
public:
|
||||
typedef MainWindow CLASSNAME;
|
||||
MainWindow();
|
||||
void Serialize(Stream& s);
|
||||
protected:
|
||||
|
|
@ -22,7 +21,7 @@ MainWindow::MainWindow()
|
|||
{
|
||||
CtrlLayout(*this, "Array Hide/Show Column Menu demonstration");
|
||||
Sizeable();
|
||||
m_array.WhenBar = THISBACK(OnArrayBar);
|
||||
m_array.WhenBar = [=](Bar& menu) { OnArrayBar(menu); };
|
||||
m_array.AllSorting();
|
||||
|
||||
|
||||
|
|
@ -71,7 +70,7 @@ void MainWindow::OnArrayBar(Bar &menu)
|
|||
for(int i=0; i<header.GetCount(); i++){
|
||||
bool visible = header.IsTabVisible(i);
|
||||
String label = header[i].GetText();
|
||||
menu.Add(label, THISBACK2(ShowColumn, i, !visible)).Check(visible);
|
||||
menu.Add(label, [=] { ShowColumn(i, !visible); }).Check(visible);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue