]> git.saurik.com Git - wxWidgets.git/commitdiff
added a note about XRCID() and EVT_*_RANGE macros (see bug #11431)
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 11 Nov 2009 10:22:57 +0000 (10:22 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 11 Nov 2009 10:22:57 +0000 (10:22 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/xrc/xmlres.h

index a906d188c61f3882375363d64d69b0adc2919436..603411084ba769668e0dc489df35d8439d7322d8 100644 (file)
@@ -175,7 +175,12 @@ public:
 
         If @a value_if_not_found is @c wxID_NONE, the number is obtained via
         wxNewId(). Otherwise @a value_if_not_found is used.
+
         Macro @c XRCID(name) is provided for convenient use in event tables.
+
+        @note IDs returned by XRCID() cannot be used with the <tt>EVT_*_RANGE</tt>
+              macros, because the order in which they are assigned to symbolic @a name
+              values is not guaranteed.
     */
     static int GetXRCID(const wxString& str_id, int value_if_not_found = wxID_NONE);