aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/examples
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-01-12 15:47:11 +0100
committerDan Gudmundsson <[email protected]>2015-03-27 09:55:50 +0100
commit830652f64fb17ae37743c2571586ab0e0518d679 (patch)
treea4ec00a6f7a1a2d0eae8462b3e129b557a556a17 /lib/wx/examples
parente52e4398a318293d57485c0a47f9c8e50a4b2b4b (diff)
downloadotp-830652f64fb17ae37743c2571586ab0e0518d679.tar.gz
otp-830652f64fb17ae37743c2571586ab0e0518d679.tar.bz2
otp-830652f64fb17ae37743c2571586ab0e0518d679.zip
wx: Prefer wxWidgets-3.0. branch on windows
Since no bug fixes are done anymore on the 2.8 branch it is time to switch the preferred version to 3.0 branch.
Diffstat (limited to 'lib/wx/examples')
-rw-r--r--lib/wx/examples/demo/demo.erl10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/wx/examples/demo/demo.erl b/lib/wx/examples/demo/demo.erl
index 2f560096f5..65fb05cd94 100644
--- a/lib/wx/examples/demo/demo.erl
+++ b/lib/wx/examples/demo/demo.erl
@@ -256,9 +256,17 @@ handle_event(#wx{id = Id,
wx_misc:launchDefaultBrowser("http://www.erlang.org/doc/apps/wx/part_frame.html"),
{noreply, State};
?wxID_ABOUT ->
+ WxWVer = io_lib:format("~p.~p.~p.~p",
+ [?wxMAJOR_VERSION, ?wxMINOR_VERSION,
+ ?wxRELEASE_NUMBER, ?wxSUBRELEASE_NUMBER]),
+ application:load(wx),
+ {ok, WxVsn} = application:get_key(wx, vsn),
AboutString =
"Demo of various widgets\n"
- "Authors: Olle & Dan",
+ "Authors: Olle & Dan\n\n" ++
+ "Frontend: wx-" ++ WxVsn ++
+ "\nBackend: wxWidgets-" ++ lists:flatten(WxWVer),
+
wxMessageDialog:showModal(wxMessageDialog:new(State#state.win, AboutString,
[{style,
?wxOK bor