mirror of https://github.com/buggins/dlangui.git
example1: close button in opened document tabs - close issue #195
This commit is contained in:
parent
6b3b1cd62f
commit
543259fe88
|
@ -245,6 +245,9 @@ extern (C) int UIAppMain(string[] args) {
|
||||||
VerticalLayout contentLayout = new VerticalLayout();
|
VerticalLayout contentLayout = new VerticalLayout();
|
||||||
|
|
||||||
TabWidget tabs = new TabWidget("TABS");
|
TabWidget tabs = new TabWidget("TABS");
|
||||||
|
tabs.tabClose = delegate(string tabId) {
|
||||||
|
tabs.removeTab(tabId);
|
||||||
|
};
|
||||||
|
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
// create main menu
|
// create main menu
|
||||||
|
|
Loading…
Reference in New Issue