]> git.saurik.com Git - wxWidgets.git/blobdiff - docs/tech/tn0015.txt
A Python version of wxrc
[wxWidgets.git] / docs / tech / tn0015.txt
index 2279894bce10007a7275799855a7190fcf67e4d5..365d5e46af36763c79c6f49a91bc7e94357dbd79 100644 (file)
@@ -1,4 +1,4 @@
-                How to add new bitmaps to wxWindows UI elements
+                How to add new bitmaps to wxWidgets UI elements
                 ===============================================
 
 0. Introduction
                 ===============================================
 
 0. Introduction
@@ -10,7 +10,7 @@ code. This was previously done either by including the bitmap in win32
 resource file (include/wx/msw/wx.rc) or by including XPM files in the code.
 
 wxArtProvider should be used instead, to allow users to customize the look of
 resource file (include/wx/msw/wx.rc) or by including XPM files in the code.
 
 wxArtProvider should be used instead, to allow users to customize the look of
-their wxWindows app. This technote is a detailed description of steps needed
+their wxWidgets app. This technote is a detailed description of steps needed
 when adding new bitmap/icon.
 
 1. Adding new resource
 when adding new bitmap/icon.
 
 1. Adding new resource
@@ -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.
 
 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.
 
     
 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):
 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.
 
 Alternatively, you may use wxART_OTHER when accessing the resource if the
 bitmap is standalone.
@@ -78,7 +77,7 @@ client is wxART_OTHER you may write only
 -------------------
 
 It is highly desirable to let the users know what stock bitmaps are available
 -------------------
 
 It is highly desirable to let the users know what stock bitmaps are available
-in wxWindows. The "artprov" sample serves this purpose: it contains a browser
+in wxWidgets. The "artprov" sample serves this purpose: it contains a browser
 dialog that displays all available art resources.
 
 It has to be updated to accomodate for new bitmaps. Fortunately, this is
 dialog that displays all available art resources.
 
 It has to be updated to accomodate for new bitmaps. Fortunately, this is