aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer
diff options
context:
space:
mode:
authorpascalchap <[email protected]>2014-08-08 10:34:26 +0200
committerpascalchap <[email protected]>2014-08-08 10:34:26 +0200
commit202934e054d00ea5ed5d96b52247bb200d66fa79 (patch)
tree08d65caed60bbd326b343d25297b277a3348909b /lib/observer
parent461dc05384eece7b4b7d84370fb0a2cf96ed2f6d (diff)
downloadotp-202934e054d00ea5ed5d96b52247bb200d66fa79.tar.gz
otp-202934e054d00ea5ed5d96b52247bb200d66fa79.tar.bz2
otp-202934e054d00ea5ed5d96b52247bb200d66fa79.zip
correction of huge status bar
following the last evolution - use wxStatusBar:new(Frame) then wxFrame:setStatusBar(Frame, StatusBar), the status bar use the full space available in frame. move the creation of the status bar after the creation of the notebook and the mainsizer. it is ok on windows 7 64bits, no other test done so far.
Diffstat (limited to 'lib/observer')
-rw-r--r--lib/observer/src/observer_wx.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/observer/src/observer_wx.erl b/lib/observer/src/observer_wx.erl
index 03ca1bf9c1..c86f5ea916 100644
--- a/lib/observer/src/observer_wx.erl
+++ b/lib/observer/src/observer_wx.erl
@@ -112,10 +112,6 @@ setup(#state{frame = Frame} = State) ->
observer_lib:create_menus(DefMenus, MenuBar, default),
wxFrame:setMenuBar(Frame, MenuBar),
- StatusBar = wxStatusBar:new(Frame),
- wxFrame:setStatusBar(Frame, StatusBar),
- wxFrame:setTitle(Frame, atom_to_list(node())),
- wxStatusBar:setStatusText(StatusBar, atom_to_list(node())),
%% Setup panels
Panel = wxPanel:new(Frame, []),
@@ -131,6 +127,11 @@ setup(#state{frame = Frame} = State) ->
wxSizer:add(MainSizer, Notebook, [{proportion, 1}, {flag, ?wxEXPAND}]),
wxPanel:setSizer(Panel, MainSizer),
+ StatusBar = wxStatusBar:new(Frame),
+ wxFrame:setStatusBar(Frame, StatusBar),
+ wxFrame:setTitle(Frame, atom_to_list(node())),
+ wxStatusBar:setStatusText(StatusBar, atom_to_list(node())),
+
wxNotebook:connect(Notebook, command_notebook_page_changing),
wxFrame:connect(Frame, close_window, [{skip, true}]),
wxMenu:connect(Frame, command_menu_selected),