simple fix to ET contents viewer on Windows 2008

luc.tanguay@REDACTED luc.tanguay@REDACTED
Fri Mar 18 20:23:49 CET 2011


Using R14B02 on Windows 2008 64-bit,  I saw that ET contents viewer window was not displayed correctly when first opened.  A simple fix is to force the size of the TextCtrl inside the frame:

*** c:/eddc-0.3/src/et_wx_contents_viewer.erl      2011-03-18 10:19:57.002512400 -0400
--- c:/erl5.8.3/lib/et-1.4.2/src/et_wx_contents_viewer.erl  2011-03-14 16:29:18.000000000 -0400
***************
*** 463,470 ****
      Bar = wxMenuBar:new(),
      wxFrame:setMenuBar(Frame,Bar),
      create_file_menu(Bar),
!     Editor = wxTextCtrl:new(Panel, ?wxID_ANY, [{size,{W,H}},
!                                                                  {style, 0
                                                                        bor  ?wxDEFAULT
                                                                        bor ?wxTE_MULTILINE
                                                                        bor ?wxTE_READONLY
--- 463,469 ----
      Bar = wxMenuBar:new(),
      wxFrame:setMenuBar(Frame,Bar),
      create_file_menu(Bar),
!     Editor = wxTextCtrl:new(Panel, ?wxID_ANY, [{style, 0
                                                                        bor  ?wxDEFAULT
                                                                        bor ?wxTE_MULTILINE
                                                                        bor ?wxTE_READONLY


---
N'allez pas où le chemin peut mener, allez là où il n'y a pas de chemin et laissez une trace.
Ralph Waldo Emerson
---
Luc Tanguay, ing./Eng.
Bell Canada
671 De La Gauchetière 4e étage,
Montréal H3B 2M8
514-786-6440
cell: 514-229-7585



More information about the erlang-patches mailing list