From: Václav Slavík Date: Sun, 19 Jan 2003 18:10:47 +0000 (+0000) Subject: updated for new/better way of declaring wxART_xxx constants X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/82e94f591f2638b07a4f28c096d94ec7e8571c20 updated for new/better way of declaring wxART_xxx constants git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/tech/tn0015.txt b/docs/tech/tn0015.txt index 2279894bce..5575d2de90 100644 --- a/docs/tech/tn0015.txt +++ b/docs/tech/tn0015.txt @@ -21,7 +21,7 @@ when adding new bitmap/icon. First of all, you have to add new wxArtID constant to include/wx/artprov.h. Look for "Art IDs" and add new definition to the list, e.g. - #define wxART_MY_BITMAP _T("my_bitmap") + #define wxART_MY_BITMAP wxART_MAKE_ART_ID(wxART_MY_BITMAP) Add it to docs/latex/wx/artprov.tex, too. @@ -30,8 +30,7 @@ of defined client categories (search for "Art clients" in the header). In case the new resource is part of a larger category, you need to define a new client. Just add it to the list of existing clients (and don't forget to update artprov.tex): - #define wxART_MY_CLIENT _T("my_client_C") -(Note that you *have* to add the trailing "_C"!) + #define wxART_MY_CLIENT wxART_MAKE_CLIENT_ID(wxART_MY_CLIENT) Alternatively, you may use wxART_OTHER when accessing the resource if the bitmap is standalone.