From faa10d3b8b4fa5c01e428bcc93eb5ccde2c83900 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 14 Nov 2012 11:56:12 +0000 Subject: [PATCH] tweak --- Fltk/FlGui.cpp | 1 + Fltk/graphicWindow.cpp | 9 ++++----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Fltk/FlGui.cpp b/Fltk/FlGui.cpp index 6af5a03b2d..5df40535dc 100644 --- a/Fltk/FlGui.cpp +++ b/Fltk/FlGui.cpp @@ -271,6 +271,7 @@ FlGui::FlGui(int argc, char **argv) #endif graph[0]->win->show(1, argv); + if(graph[0]->menuwin) graph[0]->menuwin->show(); // graphic window should have the initial focus (so we can e.g. directly loop // through time steps with the keyboard) diff --git a/Fltk/graphicWindow.cpp b/Fltk/graphicWindow.cpp index 1ed5738783..192cc582a8 100644 --- a/Fltk/graphicWindow.cpp +++ b/Fltk/graphicWindow.cpp @@ -2927,7 +2927,6 @@ graphicWindow::graphicWindow(bool main, int numTiles, bool detachedMenu) menuwin->resizable(onelab); menuwin->size_range(onelab->getMinWindowWidth(), onelab->getMinWindowHeight()); menuwin->end(); - menuwin->show(); } else{ menuwin = 0; @@ -3025,8 +3024,8 @@ void graphicWindow::hideMenu() void graphicWindow::showHideMenu() { if(menuwin || !onelab) return; - if(onelab->w()) hideMenu(); - else showMenu(); + if(onelab->w() < 5) showMenu(); + else hideMenu(); } int graphicWindow::getMenuWidth() @@ -3202,8 +3201,8 @@ void graphicWindow::hideMessages() void graphicWindow::showHideMessages() { if(!browser) return; - if(browser->h()) hideMessages(); - else showMessages(); + if(browser->h() < 5) showMessages(); + else hideMessages(); } int graphicWindow::getMessageHeight() -- GitLab