Looking at the examples the menubar should also be put in the div.

This commit is contained in:
King_DuckZ 2020-03-21 12:10:12 +01:00
parent 2b8395de69
commit 9aa2ceeb90
2 changed files with 3 additions and 2 deletions

View file

@ -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();

View file

@ -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),