lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] A no-longer-reproducible anomaly


From: Greg Chicares
Subject: [lmi] A no-longer-reproducible anomaly
Date: Sat, 10 Mar 2018 00:42:33 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

I conclude that this issue, described in 'single_choice_popup_menu.hpp':

/// WX !! Warning: the first character in 'title' (if specified) seems
/// to become an accelerator, interfering with any menuitem that uses
/// the same character as its own accelerator.

must have been fixed by some wx update (and can therefore now be
removed) based on experimenting with the following throwaway patch.
Notably, pressing "T" chooses "Two", not "Test".

---------8<--------8<--------8<--------8<--------8<--------8<--------8<-------
diff --git a/skeleton.cpp b/skeleton.cpp
index dc3ca460..84dfceb9 100644
--- a/skeleton.cpp
+++ b/skeleton.cpp
@@ -930,9 +930,15 @@ void Skeleton::UponPreferences(wxCommandEvent&)
         }
 }
 
+#include "single_choice_popup_menu.hpp"
 void Skeleton::UponTestAppStatus(wxCommandEvent&)
 {
-    status()         << "Test status() ."         << LMI_FLUSH;
+    wxArrayString strings;
+    strings.Add("One");
+    strings.Add("Two");
+    strings.Add("Three");
+    int selection = SingleChoicePopupMenu(strings, "Test").Choose();
+    status()         << "Test status() . " << selection         << LMI_FLUSH;
 }
 
 void Skeleton::UponTestAppWarning(wxCommandEvent&)
--------->8-------->8-------->8-------->8-------->8-------->8-------->8-------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]