Skip to content
Snippets Groups Projects
Commit c01641e7 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Update button in help browser

parent bc0aede6
No related branches found
No related tags found
No related merge requests found
...@@ -434,7 +434,7 @@ helpWindow::helpWindow() ...@@ -434,7 +434,7 @@ helpWindow::helpWindow()
o->resizable(search); o->resizable(search);
o->end(); o->end();
browser = new Fl_Browser(0, BH + 2 * WB, width, height - BH - 2 * WB); browser = new Fl_Browser(0, BH + 2 * WB, width, height - 2 * BH - 4 * WB);
browser->box(GMSH_SIMPLE_TOP_BOX); browser->box(GMSH_SIMPLE_TOP_BOX);
browser->textfont(FL_SCREEN); browser->textfont(FL_SCREEN);
browser->textsize(FL_NORMAL_SIZE - 2); browser->textsize(FL_NORMAL_SIZE - 2);
...@@ -443,6 +443,17 @@ helpWindow::helpWindow() ...@@ -443,6 +443,17 @@ helpWindow::helpWindow()
browser->tooltip("Double-click to edit value"); browser->tooltip("Double-click to edit value");
browser->scrollbar_size(std::max(10, FL_NORMAL_SIZE - 2)); // thinner scrollbars browser->scrollbar_size(std::max(10, FL_NORMAL_SIZE - 2)); // thinner scrollbars
{
Fl_Group* g = new Fl_Group(0, height - BH - WB, width, BH);
Fl_Group* g2 = new Fl_Group(0, height - BH - WB, BB, BH);
Fl_Return_Button *o = new Fl_Return_Button
(width - BB - WB, height - BH - WB, BB, BH, "Update");
o->callback(help_options_cb);
g->resizable(g2);
g2->end();
g->end();
}
options->resizable(browser); options->resizable(browser);
options->position(Fl::x() + Fl::w()/2 - width / 2, options->position(Fl::x() + Fl::w()/2 - width / 2,
Fl::y() + Fl::h()/2 - height / 2); Fl::y() + Fl::h()/2 - height / 2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment