aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reltool/src/reltool_app_win.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2012-03-19 15:54:30 +0100
committerSiri Hansen <[email protected]>2012-03-19 15:54:30 +0100
commit844afaf366ad7a4f668a60e896d0ae3b9e5d850b (patch)
tree05838abebbb3c998abc41ff5f3430313fb23da7b /lib/reltool/src/reltool_app_win.erl
parent20ef6a7d381b37d7c620f303a981a3a8b4e227a8 (diff)
downloadotp-844afaf366ad7a4f668a60e896d0ae3b9e5d850b.tar.gz
otp-844afaf366ad7a4f668a60e896d0ae3b9e5d850b.tar.bz2
otp-844afaf366ad7a4f668a60e896d0ae3b9e5d850b.zip
[reltool] Fix GUI problems on Windows
The new warning list did not work on Windows. It could not display tooltips for each warning and the popup window would always disappear behind the main system window. Also, column width did not occur well initially in list controls.
Diffstat (limited to 'lib/reltool/src/reltool_app_win.erl')
-rw-r--r--lib/reltool/src/reltool_app_win.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/reltool/src/reltool_app_win.erl b/lib/reltool/src/reltool_app_win.erl
index 70bd72b258..eddb37ea11 100644
--- a/lib/reltool/src/reltool_app_win.erl
+++ b/lib/reltool/src/reltool_app_win.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2009-2010. All Rights Reserved.
+%% Copyright Ericsson AB 2009-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -271,8 +271,8 @@ create_apps_list_ctrl(Panel, Sizer, Text) ->
ListItem = wxListItem:new(),
wxListItem:setAlign(ListItem, ?wxLIST_FORMAT_LEFT),
wxListItem:setText(ListItem, Text),
+ wxListItem:setWidth(ListItem, reltool_utils:get_column_width(ListCtrl)),
wxListCtrl:insertColumn(ListCtrl, ?APPS_APP_COL, ListItem),
- %% wxListCtrl:setColumnWidth(ListCtrl, ?APPS_APP_COL, ?APPS_APP_COL_WIDTH),
wxListItem:destroy(ListItem),
wxSizer:add(Sizer, ListCtrl,