Looking at the examples the menubar should also be put in the div.
This commit is contained in:
parent
2b8395de69
commit
9aa2ceeb90
2 changed files with 3 additions and 2 deletions
|
@ -40,7 +40,8 @@ MainWindow::MainWindow (int icon_size, int icon_fps, const std::string& caption)
|
||||||
m_grid2.emplace_back(duck::make_nana_animation(mc2[z], m_icon_size, m_icon_size, m_icon_fps));
|
m_grid2.emplace_back(duck::make_nana_animation(mc2[z], m_icon_size, m_icon_size, m_icon_fps));
|
||||||
}
|
}
|
||||||
|
|
||||||
this->div("fit margin=3 <vert fit slot1> <width=25> <vert fit slot2>");
|
this->div("vert <menu weight=28><fit margin=3 <vert fit slot1> <width=25> <vert fit slot2>>");
|
||||||
|
(*this)["menu"] << m_menubar;
|
||||||
(*this)["slot1"] << m_label1 << m_grid1;
|
(*this)["slot1"] << m_label1 << m_grid1;
|
||||||
(*this)["slot2"] << m_label2 << m_grid2;
|
(*this)["slot2"] << m_label2 << m_grid2;
|
||||||
this->collocate();
|
this->collocate();
|
||||||
|
|
|
@ -26,7 +26,7 @@ namespace {
|
||||||
} //unnamed namespace
|
} //unnamed namespace
|
||||||
|
|
||||||
VersionWindow::VersionWindow(nana::window owner) :
|
VersionWindow::VersionWindow(nana::window owner) :
|
||||||
nana::form(owner, nana::size{615, 505}),
|
nana::form(owner, nana::size{615, 530}),
|
||||||
m_top_label(*this),
|
m_top_label(*this),
|
||||||
m_short_desc(*this),
|
m_short_desc(*this),
|
||||||
m_git_revision(*this),
|
m_git_revision(*this),
|
||||||
|
|
Loading…
Add table
Reference in a new issue