]> git.saurik.com Git - wxWidgets.git/commitdiff
Add XRC handler for wxBannerWindow and a test for it to the xrc sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Aug 2011 12:18:56 +0000 (12:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Aug 2011 12:18:56 +0000 (12:18 +0000)
Also document the new XRC format elements.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

21 files changed:
Makefile.in
build/bakefiles/files.bkl
build/msw/makefile.bcc
build/msw/makefile.gcc
build/msw/makefile.vc
build/msw/makefile.wat
build/msw/wx_core.dsp
build/msw/wx_vc7_core.vcproj
build/msw/wx_vc7_xrc.vcproj
build/msw/wx_vc8_core.vcproj
build/msw/wx_vc8_xrc.vcproj
build/msw/wx_vc9_core.vcproj
build/msw/wx_vc9_xrc.vcproj
build/msw/wx_xrc.dsp
docs/doxygen/overviews/xrc_format.h
include/wx/xrc/xh_all.h
include/wx/xrc/xh_bannerwindow.h [new file with mode: 0644]
samples/xrc/rc/controls.xrc
samples/xrc/rc/wxbanner.gif [new file with mode: 0644]
src/xrc/xh_bannerwindow.cpp [new file with mode: 0644]
src/xrc/xmlrsall.cpp

index 7f8608caa8db7ff69911201d1c09d74813c8f8c9..6d0ed4894e1796de9922801856d3031447b804d8 100644 (file)
@@ -1662,6 +1662,7 @@ XRCDLL_CXXFLAGS = $(__xrcdll_PCH_INC) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
 XRCDLL_OBJECTS =  \
        $(__xrcdll___win32rc) \
        xrcdll_xh_animatctrl.o \
+       xrcdll_xh_bannerwindow.o \
        xrcdll_xh_bmp.o \
        xrcdll_xh_bmpcbox.o \
        xrcdll_xh_bmpbt.o \
@@ -1732,6 +1733,7 @@ XRCLIB_CXXFLAGS = $(__xrclib_PCH_INC) -D__WX$(TOOLKIT)__ $(__WXUNIV_DEFINE_p) \
        $(__INC_EXPAT_p) $(CXXWARNINGS) $(CPPFLAGS) $(CXXFLAGS)
 XRCLIB_OBJECTS =  \
        xrclib_xh_animatctrl.o \
+       xrclib_xh_bannerwindow.o \
        xrclib_xh_bmp.o \
        xrclib_xh_bmpcbox.o \
        xrclib_xh_bmpbt.o \
@@ -4089,6 +4091,7 @@ COND_USE_GUI_1_ALL_GUI_HEADERS =  \
        wx/debugrpt.h \
        wx/xrc/xh_all.h \
        wx/xrc/xh_animatctrl.h \
+       wx/xrc/xh_bannerwindow.h \
        wx/xrc/xh_bmpbt.h \
        wx/xrc/xh_bmp.h \
        wx/xrc/xh_bmpcbox.h \
@@ -4396,6 +4399,7 @@ COND_USE_GUI_1___MONOLIB_GUI_SRC_OBJECTS =  \
        monodll_debugrpt.o \
        monodll_dbgrptg.o \
        monodll_xh_animatctrl.o \
+       monodll_xh_bannerwindow.o \
        monodll_xh_bmp.o \
        monodll_xh_bmpcbox.o \
        monodll_xh_bmpbt.o \
@@ -6328,6 +6332,7 @@ COND_USE_GUI_1___MONOLIB_GUI_SRC_OBJECTS_1 =  \
        monolib_debugrpt.o \
        monolib_dbgrptg.o \
        monolib_xh_animatctrl.o \
+       monolib_xh_bannerwindow.o \
        monolib_xh_bmp.o \
        monolib_xh_bmpcbox.o \
        monolib_xh_bmpbt.o \
@@ -17163,6 +17168,9 @@ monodll_dbgrptg.o: $(srcdir)/src/generic/dbgrptg.cpp $(MONODLL_ODEP)
 monodll_xh_animatctrl.o: $(srcdir)/src/xrc/xh_animatctrl.cpp $(MONODLL_ODEP)
        $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/xrc/xh_animatctrl.cpp
 
+monodll_xh_bannerwindow.o: $(srcdir)/src/xrc/xh_bannerwindow.cpp $(MONODLL_ODEP)
+       $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/xrc/xh_bannerwindow.cpp
+
 monodll_xh_bmp.o: $(srcdir)/src/xrc/xh_bmp.cpp $(MONODLL_ODEP)
        $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/xrc/xh_bmp.cpp
 
@@ -22491,6 +22499,9 @@ monolib_dbgrptg.o: $(srcdir)/src/generic/dbgrptg.cpp $(MONOLIB_ODEP)
 monolib_xh_animatctrl.o: $(srcdir)/src/xrc/xh_animatctrl.cpp $(MONOLIB_ODEP)
        $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/xrc/xh_animatctrl.cpp
 
+monolib_xh_bannerwindow.o: $(srcdir)/src/xrc/xh_bannerwindow.cpp $(MONOLIB_ODEP)
+       $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/xrc/xh_bannerwindow.cpp
+
 monolib_xh_bmp.o: $(srcdir)/src/xrc/xh_bmp.cpp $(MONOLIB_ODEP)
        $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/xrc/xh_bmp.cpp
 
@@ -36171,6 +36182,9 @@ xrcdll_version_rc.o: $(srcdir)/src/msw/version.rc $(XRCDLL_ODEP)
 xrcdll_xh_animatctrl.o: $(srcdir)/src/xrc/xh_animatctrl.cpp $(XRCDLL_ODEP)
        $(CXXC) -c -o $@ $(XRCDLL_CXXFLAGS) $(srcdir)/src/xrc/xh_animatctrl.cpp
 
+xrcdll_xh_bannerwindow.o: $(srcdir)/src/xrc/xh_bannerwindow.cpp $(XRCDLL_ODEP)
+       $(CXXC) -c -o $@ $(XRCDLL_CXXFLAGS) $(srcdir)/src/xrc/xh_bannerwindow.cpp
+
 xrcdll_xh_bmp.o: $(srcdir)/src/xrc/xh_bmp.cpp $(XRCDLL_ODEP)
        $(CXXC) -c -o $@ $(XRCDLL_CXXFLAGS) $(srcdir)/src/xrc/xh_bmp.cpp
 
@@ -36360,6 +36374,9 @@ xrcdll_xmlrsall.o: $(srcdir)/src/xrc/xmlrsall.cpp $(XRCDLL_ODEP)
 xrclib_xh_animatctrl.o: $(srcdir)/src/xrc/xh_animatctrl.cpp $(XRCLIB_ODEP)
        $(CXXC) -c -o $@ $(XRCLIB_CXXFLAGS) $(srcdir)/src/xrc/xh_animatctrl.cpp
 
+xrclib_xh_bannerwindow.o: $(srcdir)/src/xrc/xh_bannerwindow.cpp $(XRCLIB_ODEP)
+       $(CXXC) -c -o $@ $(XRCLIB_CXXFLAGS) $(srcdir)/src/xrc/xh_bannerwindow.cpp
+
 xrclib_xh_bmp.o: $(srcdir)/src/xrc/xh_bmp.cpp $(XRCLIB_ODEP)
        $(CXXC) -c -o $@ $(XRCLIB_CXXFLAGS) $(srcdir)/src/xrc/xh_bmp.cpp
 
index 38fbc2d7e55b007a49da417f480e29378c2b4d79..5340ade4b2bdb70daae8b715769fdb8c093b2b1d 100644 (file)
@@ -3357,6 +3357,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
 
 <set var="XRC_SRC" hints="files">
     src/xrc/xh_animatctrl.cpp
+    src/xrc/xh_bannerwindow.cpp
     src/xrc/xh_bmp.cpp
     src/xrc/xh_bmpcbox.cpp
     src/xrc/xh_bmpbt.cpp
@@ -3425,6 +3426,7 @@ IMPORTANT: please read docs/tech/tn0016.txt before modifying this file!
 <set var="XRC_HDR" hints="files">
     wx/xrc/xh_all.h
     wx/xrc/xh_animatctrl.h
+    wx/xrc/xh_bannerwindow.h
     wx/xrc/xh_bmpbt.h
     wx/xrc/xh_bmp.h
     wx/xrc/xh_bmpcbox.h
index 1d39fdb2a253797b9dffcae08c3329e81a58a820..53c1e4a69d899205495575f1d1486324dcc52e80 100644 (file)
@@ -1136,6 +1136,7 @@ XRCDLL_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
 XRCDLL_OBJECTS =  \\r
        $(OBJS)\xrcdll_dummy.obj \\r
        $(OBJS)\xrcdll_xh_animatctrl.obj \\r
+       $(OBJS)\xrcdll_xh_bannerwindow.obj \
        $(OBJS)\xrcdll_xh_bmp.obj \\r
        $(OBJS)\xrcdll_xh_bmpcbox.obj \\r
        $(OBJS)\xrcdll_xh_bmpbt.obj \\r
@@ -1210,6 +1211,7 @@ XRCLIB_CXXFLAGS = $(__RUNTIME_LIBS) -I$(BCCDIR)\include $(__DEBUGINFO) \
 XRCLIB_OBJECTS =  \\r
        $(OBJS)\xrclib_dummy.obj \\r
        $(OBJS)\xrclib_xh_animatctrl.obj \\r
+       $(OBJS)\xrclib_xh_bannerwindow.obj \
        $(OBJS)\xrclib_xh_bmp.obj \\r
        $(OBJS)\xrclib_xh_bmpcbox.obj \\r
        $(OBJS)\xrclib_xh_bmpbt.obj \\r
@@ -1578,6 +1580,7 @@ ____MONOLIB_GUI_SRC_FILENAMES_OBJECTS =  \
        $(OBJS)\monodll_debugrpt.obj \\r
        $(OBJS)\monodll_dbgrptg.obj \\r
        $(OBJS)\monodll_xh_animatctrl.obj \\r
+       $(OBJS)\monodll_xh_bannerwindow.obj \
        $(OBJS)\monodll_xh_bmp.obj \\r
        $(OBJS)\monodll_xh_bmpcbox.obj \\r
        $(OBJS)\monodll_xh_bmpbt.obj \\r
@@ -2344,6 +2347,7 @@ ____MONOLIB_GUI_SRC_FILENAMES_1_OBJECTS =  \
        $(OBJS)\monolib_debugrpt.obj \\r
        $(OBJS)\monolib_dbgrptg.obj \\r
        $(OBJS)\monolib_xh_animatctrl.obj \\r
+       $(OBJS)\monolib_xh_bannerwindow.obj \
        $(OBJS)\monolib_xh_bmp.obj \\r
        $(OBJS)\monolib_xh_bmpcbox.obj \\r
        $(OBJS)\monolib_xh_bmpbt.obj \\r
@@ -6706,6 +6710,9 @@ $(OBJS)\monodll_dbgrptg.obj: ..\..\src\generic\dbgrptg.cpp
 $(OBJS)\monodll_xh_animatctrl.obj: ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\xrc\xh_animatctrl.cpp\r
 \r
+$(OBJS)\monodll_xh_bannerwindow.obj: ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\xrc\xh_bannerwindow.cpp
+
 $(OBJS)\monodll_xh_bmp.obj: ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\xrc\xh_bmp.cpp\r
 \r
@@ -9062,6 +9069,9 @@ $(OBJS)\monolib_dbgrptg.obj: ..\..\src\generic\dbgrptg.cpp
 $(OBJS)\monolib_xh_animatctrl.obj: ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\xrc\xh_animatctrl.cpp\r
 \r
+$(OBJS)\monolib_xh_bannerwindow.obj: ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\xrc\xh_bannerwindow.cpp
+
 $(OBJS)\monolib_xh_bmp.obj: ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\xrc\xh_bmp.cpp\r
 \r
@@ -14705,6 +14715,9 @@ $(OBJS)\xrcdll_version.res: ..\..\src\msw\version.rc
 $(OBJS)\xrcdll_xh_animatctrl.obj: ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) -q -c -P -o$@ $(XRCDLL_CXXFLAGS) ..\..\src\xrc\xh_animatctrl.cpp\r
 \r
+$(OBJS)\xrcdll_xh_bannerwindow.obj: ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) -q -c -P -o$@ $(XRCDLL_CXXFLAGS) ..\..\src\xrc\xh_bannerwindow.cpp
+
 $(OBJS)\xrcdll_xh_bmp.obj: ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) -q -c -P -o$@ $(XRCDLL_CXXFLAGS) ..\..\src\xrc\xh_bmp.cpp\r
 \r
@@ -14897,6 +14910,9 @@ $(OBJS)\xrclib_dummy.obj: ..\..\src\common\dummy.cpp
 $(OBJS)\xrclib_xh_animatctrl.obj: ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) -q -c -P -o$@ $(XRCLIB_CXXFLAGS) ..\..\src\xrc\xh_animatctrl.cpp\r
 \r
+$(OBJS)\xrclib_xh_bannerwindow.obj: ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) -q -c -P -o$@ $(XRCLIB_CXXFLAGS) ..\..\src\xrc\xh_bannerwindow.cpp
+
 $(OBJS)\xrclib_xh_bmp.obj: ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) -q -c -P -o$@ $(XRCLIB_CXXFLAGS) ..\..\src\xrc\xh_bmp.cpp\r
 \r
index 656b0327dedb8fab5f53e85b14e429402545281d..5cc712209aa9e2e7a752bc8d36da06cdeea5b723 100644 (file)
@@ -1134,6 +1134,7 @@ XRCDLL_OBJECTS =  \
        $(OBJS)\xrcdll_dummy.o \\r
        $(OBJS)\xrcdll_version_rc.o \\r
        $(OBJS)\xrcdll_xh_animatctrl.o \\r
+       $(OBJS)\xrcdll_xh_bannerwindow.o \
        $(OBJS)\xrcdll_xh_bmp.o \\r
        $(OBJS)\xrcdll_xh_bmpcbox.o \\r
        $(OBJS)\xrcdll_xh_bmpbt.o \\r
@@ -1207,6 +1208,7 @@ XRCLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) $(GCCFLAGS)
 XRCLIB_OBJECTS =  \\r
        $(OBJS)\xrclib_dummy.o \\r
        $(OBJS)\xrclib_xh_animatctrl.o \\r
+       $(OBJS)\xrclib_xh_bannerwindow.o \
        $(OBJS)\xrclib_xh_bmp.o \\r
        $(OBJS)\xrclib_xh_bmpcbox.o \\r
        $(OBJS)\xrclib_xh_bmpbt.o \\r
@@ -1588,6 +1590,7 @@ ____MONOLIB_GUI_SRC_FILENAMES_OBJECTS =  \
        $(OBJS)\monodll_debugrpt.o \\r
        $(OBJS)\monodll_dbgrptg.o \\r
        $(OBJS)\monodll_xh_animatctrl.o \\r
+       $(OBJS)\monodll_xh_bannerwindow.o \
        $(OBJS)\monodll_xh_bmp.o \\r
        $(OBJS)\monodll_xh_bmpcbox.o \\r
        $(OBJS)\monodll_xh_bmpbt.o \\r
@@ -2360,6 +2363,7 @@ ____MONOLIB_GUI_SRC_FILENAMES_1_OBJECTS =  \
        $(OBJS)\monolib_debugrpt.o \\r
        $(OBJS)\monolib_dbgrptg.o \\r
        $(OBJS)\monolib_xh_animatctrl.o \\r
+       $(OBJS)\monolib_xh_bannerwindow.o \
        $(OBJS)\monolib_xh_bmp.o \\r
        $(OBJS)\monolib_xh_bmpcbox.o \\r
        $(OBJS)\monolib_xh_bmpbt.o \\r
@@ -6856,6 +6860,9 @@ $(OBJS)\monodll_dbgrptg.o: ../../src/generic/dbgrptg.cpp
 $(OBJS)\monodll_xh_animatctrl.o: ../../src/xrc/xh_animatctrl.cpp\r
        $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
 \r
+$(OBJS)\monodll_xh_bannerwindow.o: ../../src/xrc/xh_bannerwindow.cpp
+       $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<
+
 $(OBJS)\monodll_xh_bmp.o: ../../src/xrc/xh_bmp.cpp\r
        $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
 \r
@@ -9212,6 +9219,9 @@ $(OBJS)\monolib_dbgrptg.o: ../../src/generic/dbgrptg.cpp
 $(OBJS)\monolib_xh_animatctrl.o: ../../src/xrc/xh_animatctrl.cpp\r
        $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
 \r
+$(OBJS)\monolib_xh_bannerwindow.o: ../../src/xrc/xh_bannerwindow.cpp
+       $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<
+
 $(OBJS)\monolib_xh_bmp.o: ../../src/xrc/xh_bmp.cpp\r
        $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
 \r
@@ -14855,6 +14865,9 @@ $(OBJS)\xrcdll_version_rc.o: ../../src/msw/version.rc
 $(OBJS)\xrcdll_xh_animatctrl.o: ../../src/xrc/xh_animatctrl.cpp\r
        $(CXX) -c -o $@ $(XRCDLL_CXXFLAGS) $(CPPDEPS) $<\r
 \r
+$(OBJS)\xrcdll_xh_bannerwindow.o: ../../src/xrc/xh_bannerwindow.cpp
+       $(CXX) -c -o $@ $(XRCDLL_CXXFLAGS) $(CPPDEPS) $<
+
 $(OBJS)\xrcdll_xh_bmp.o: ../../src/xrc/xh_bmp.cpp\r
        $(CXX) -c -o $@ $(XRCDLL_CXXFLAGS) $(CPPDEPS) $<\r
 \r
@@ -15047,6 +15060,9 @@ $(OBJS)\xrclib_dummy.o: ../../src/common/dummy.cpp
 $(OBJS)\xrclib_xh_animatctrl.o: ../../src/xrc/xh_animatctrl.cpp\r
        $(CXX) -c -o $@ $(XRCLIB_CXXFLAGS) $(CPPDEPS) $<\r
 \r
+$(OBJS)\xrclib_xh_bannerwindow.o: ../../src/xrc/xh_bannerwindow.cpp
+       $(CXX) -c -o $@ $(XRCLIB_CXXFLAGS) $(CPPDEPS) $<
+
 $(OBJS)\xrclib_xh_bmp.o: ../../src/xrc/xh_bmp.cpp\r
        $(CXX) -c -o $@ $(XRCLIB_CXXFLAGS) $(CPPDEPS) $<\r
 \r
index 7948df179b7f17babcf86555074fe7a35498b71e..23cf9f1399716a86110b2d10cde298b37c93b5bf 100644 (file)
@@ -1211,6 +1211,7 @@ XRCDLL_CXXFLAGS = /M$(__RUNTIME_LIBS_395)$(__DEBUGRUNTIME) /DWIN32 \
 XRCDLL_OBJECTS =  \\r
        $(OBJS)\xrcdll_dummy.obj \\r
        $(OBJS)\xrcdll_xh_animatctrl.obj \\r
+       $(OBJS)\xrcdll_xh_bannerwindow.obj \
        $(OBJS)\xrcdll_xh_bmp.obj \\r
        $(OBJS)\xrcdll_xh_bmpcbox.obj \\r
        $(OBJS)\xrcdll_xh_bmpbt.obj \\r
@@ -1289,6 +1290,7 @@ XRCLIB_CXXFLAGS = /M$(__RUNTIME_LIBS_410)$(__DEBUGRUNTIME) /DWIN32 \
 XRCLIB_OBJECTS =  \\r
        $(OBJS)\xrclib_dummy.obj \\r
        $(OBJS)\xrclib_xh_animatctrl.obj \\r
+       $(OBJS)\xrclib_xh_bannerwindow.obj \
        $(OBJS)\xrclib_xh_bmp.obj \\r
        $(OBJS)\xrclib_xh_bmpcbox.obj \\r
        $(OBJS)\xrclib_xh_bmpbt.obj \\r
@@ -1786,6 +1788,7 @@ ____MONOLIB_GUI_SRC_FILENAMES_OBJECTS =  \
        $(OBJS)\monodll_debugrpt.obj \\r
        $(OBJS)\monodll_dbgrptg.obj \\r
        $(OBJS)\monodll_xh_animatctrl.obj \\r
+       $(OBJS)\monodll_xh_bannerwindow.obj \
        $(OBJS)\monodll_xh_bmp.obj \\r
        $(OBJS)\monodll_xh_bmpcbox.obj \\r
        $(OBJS)\monodll_xh_bmpbt.obj \\r
@@ -2558,6 +2561,7 @@ ____MONOLIB_GUI_SRC_FILENAMES_1_OBJECTS =  \
        $(OBJS)\monolib_debugrpt.obj \\r
        $(OBJS)\monolib_dbgrptg.obj \\r
        $(OBJS)\monolib_xh_animatctrl.obj \\r
+       $(OBJS)\monolib_xh_bannerwindow.obj \
        $(OBJS)\monolib_xh_bmp.obj \\r
        $(OBJS)\monolib_xh_bmpcbox.obj \\r
        $(OBJS)\monolib_xh_bmpbt.obj \\r
@@ -7286,6 +7290,9 @@ $(OBJS)\monodll_dbgrptg.obj: ..\..\src\generic\dbgrptg.cpp
 $(OBJS)\monodll_xh_animatctrl.obj: ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\xrc\xh_animatctrl.cpp\r
 \r
+$(OBJS)\monodll_xh_bannerwindow.obj: ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\xrc\xh_bannerwindow.cpp
+
 $(OBJS)\monodll_xh_bmp.obj: ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\xrc\xh_bmp.cpp\r
 \r
@@ -9642,6 +9649,9 @@ $(OBJS)\monolib_dbgrptg.obj: ..\..\src\generic\dbgrptg.cpp
 $(OBJS)\monolib_xh_animatctrl.obj: ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\xrc\xh_animatctrl.cpp\r
 \r
+$(OBJS)\monolib_xh_bannerwindow.obj: ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\xrc\xh_bannerwindow.cpp
+
 $(OBJS)\monolib_xh_bmp.obj: ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\xrc\xh_bmp.cpp\r
 \r
@@ -15285,6 +15295,9 @@ $(OBJS)\xrcdll_version.res: ..\..\src\msw\version.rc
 $(OBJS)\xrcdll_xh_animatctrl.obj: ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(XRCDLL_CXXFLAGS) ..\..\src\xrc\xh_animatctrl.cpp\r
 \r
+$(OBJS)\xrcdll_xh_bannerwindow.obj: ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(XRCDLL_CXXFLAGS) ..\..\src\xrc\xh_bannerwindow.cpp
+
 $(OBJS)\xrcdll_xh_bmp.obj: ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(XRCDLL_CXXFLAGS) ..\..\src\xrc\xh_bmp.cpp\r
 \r
@@ -15477,6 +15490,9 @@ $(OBJS)\xrclib_dummy.obj: ..\..\src\common\dummy.cpp
 $(OBJS)\xrclib_xh_animatctrl.obj: ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(XRCLIB_CXXFLAGS) ..\..\src\xrc\xh_animatctrl.cpp\r
 \r
+$(OBJS)\xrclib_xh_bannerwindow.obj: ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(XRCLIB_CXXFLAGS) ..\..\src\xrc\xh_bannerwindow.cpp
+
 $(OBJS)\xrclib_xh_bmp.obj: ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) /c /nologo /TP /Fo$@ $(XRCLIB_CXXFLAGS) ..\..\src\xrc\xh_bmp.cpp\r
 \r
index 9f2d8525e1c8ffa429bf4ecd02aabe6694b3f3c1..0eee311b67eb420532ab6ddc246b8dcffa70385b 100644 (file)
@@ -138,6 +138,7 @@ ____MONOLIB_GUI_SRC_FILENAMES_OBJECTS =  &
        $(OBJS)\monodll_debugrpt.obj &\r
        $(OBJS)\monodll_dbgrptg.obj &\r
        $(OBJS)\monodll_xh_animatctrl.obj &\r
+       $(OBJS)\monodll_xh_bannerwindow.obj &
        $(OBJS)\monodll_xh_bmp.obj &\r
        $(OBJS)\monodll_xh_bmpcbox.obj &\r
        $(OBJS)\monodll_xh_bmpbt.obj &\r
@@ -915,6 +916,7 @@ ____MONOLIB_GUI_SRC_FILENAMES_1_OBJECTS =  &
        $(OBJS)\monolib_debugrpt.obj &\r
        $(OBJS)\monolib_dbgrptg.obj &\r
        $(OBJS)\monolib_xh_animatctrl.obj &\r
+       $(OBJS)\monolib_xh_bannerwindow.obj &
        $(OBJS)\monolib_xh_bmp.obj &\r
        $(OBJS)\monolib_xh_bmpcbox.obj &\r
        $(OBJS)\monolib_xh_bmpbt.obj &\r
@@ -4568,6 +4570,7 @@ XRCDLL_CXXFLAGS = -bd $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
 XRCDLL_OBJECTS =  &\r
        $(OBJS)\xrcdll_dummy.obj &\r
        $(OBJS)\xrcdll_xh_animatctrl.obj &\r
+       $(OBJS)\xrcdll_xh_bannerwindow.obj &
        $(OBJS)\xrcdll_xh_bmp.obj &\r
        $(OBJS)\xrcdll_xh_bmpcbox.obj &\r
        $(OBJS)\xrcdll_xh_bmpbt.obj &\r
@@ -4642,6 +4645,7 @@ XRCLIB_CXXFLAGS = $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) &
 XRCLIB_OBJECTS =  &\r
        $(OBJS)\xrclib_dummy.obj &\r
        $(OBJS)\xrclib_xh_animatctrl.obj &\r
+       $(OBJS)\xrclib_xh_bannerwindow.obj &
        $(OBJS)\xrclib_xh_bmp.obj &\r
        $(OBJS)\xrclib_xh_bmpcbox.obj &\r
        $(OBJS)\xrclib_xh_bmpbt.obj &\r
@@ -7115,6 +7119,9 @@ $(OBJS)\monodll_dbgrptg.obj :  .AUTODEPEND ..\..\src\generic\dbgrptg.cpp
 $(OBJS)\monodll_xh_animatctrl.obj :  .AUTODEPEND ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
 \r
+$(OBJS)\monodll_xh_bannerwindow.obj :  .AUTODEPEND ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
+
 $(OBJS)\monodll_xh_bmp.obj :  .AUTODEPEND ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
 \r
@@ -9471,6 +9478,9 @@ $(OBJS)\monolib_dbgrptg.obj :  .AUTODEPEND ..\..\src\generic\dbgrptg.cpp
 $(OBJS)\monolib_xh_animatctrl.obj :  .AUTODEPEND ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
 \r
+$(OBJS)\monolib_xh_bannerwindow.obj :  .AUTODEPEND ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
+
 $(OBJS)\monolib_xh_bmp.obj :  .AUTODEPEND ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
 \r
@@ -15114,6 +15124,9 @@ $(OBJS)\xrcdll_version.res :  .AUTODEPEND ..\..\src\msw\version.rc
 $(OBJS)\xrcdll_xh_animatctrl.obj :  .AUTODEPEND ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(XRCDLL_CXXFLAGS) $<\r
 \r
+$(OBJS)\xrcdll_xh_bannerwindow.obj :  .AUTODEPEND ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) -bt=nt -zq -fo=$^@ $(XRCDLL_CXXFLAGS) $<
+
 $(OBJS)\xrcdll_xh_bmp.obj :  .AUTODEPEND ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(XRCDLL_CXXFLAGS) $<\r
 \r
@@ -15306,6 +15319,9 @@ $(OBJS)\xrclib_dummy.obj :  .AUTODEPEND ..\..\src\common\dummy.cpp
 $(OBJS)\xrclib_xh_animatctrl.obj :  .AUTODEPEND ..\..\src\xrc\xh_animatctrl.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(XRCLIB_CXXFLAGS) $<\r
 \r
+$(OBJS)\xrclib_xh_bannerwindow.obj :  .AUTODEPEND ..\..\src\xrc\xh_bannerwindow.cpp
+       $(CXX) -bt=nt -zq -fo=$^@ $(XRCLIB_CXXFLAGS) $<
+
 $(OBJS)\xrclib_xh_bmp.obj :  .AUTODEPEND ..\..\src\xrc\xh_bmp.cpp\r
        $(CXX) -bt=nt -zq -fo=$^@ $(XRCLIB_CXXFLAGS) $<\r
 \r
index 995d25ffa7e320035b4c225d5a720540499fe6c0..38ab8b52e0c741da4dbee7ba256b9a7ee223212c 100644 (file)
@@ -6996,6 +6996,10 @@ SOURCE=..\..\include\wx\xrc\xh_animatctrl.h
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\..\include\wx\xrc\xh_bannerwindow.h
+# End Source File
+# Begin Source File
+
 SOURCE=..\..\include\wx\xrc\xh_bmp.h\r
 # End Source File\r
 # Begin Source File\r
index d25e53cc907dcb71c034f9229662fbc0fe2c62a9..3c9f272d858bd90cf8ff798e0cf1e7a2ce7532d0 100644 (file)
                                RelativePath="..\..\include\wx\xrc\xh_animatctrl.h">\r
                        </File>\r
                        <File\r
+                               RelativePath="..\..\include\wx\xrc\xh_bannerwindow.h">
+                       </File>
+                       <File
                                RelativePath="..\..\include\wx\xrc\xh_bmp.h">\r
                        </File>\r
                        <File\r
index 883d3a8e1c909a0377d6905a8d133fce8ade9f66..358faee7fdb716d5d29232924bee188115e09a93 100644 (file)
                                RelativePath="..\..\include\wx\xrc\xh_animatctrl.h">\r
                        </File>\r
                        <File\r
+                               RelativePath="..\..\include\wx\xrc\xh_bannerwindow.h">
+                       </File>
+                       <File
                                RelativePath="..\..\include\wx\xrc\xh_bmp.h">\r
                        </File>\r
                        <File\r
                                RelativePath="..\..\src\xrc\xh_animatctrl.cpp">\r
                        </File>\r
                        <File\r
+                               RelativePath="..\..\src\xrc\xh_bannerwindow.cpp">
+                       </File>
+                       <File
                                RelativePath="..\..\src\xrc\xh_bmp.cpp">\r
                        </File>\r
                        <File\r
index 3be4420e15e603c56cd6472d349fdf3784f5fea9..9c5be2f706de226d0fcf4096a6a48bd60d44a418 100644 (file)
                                >\r
                        </File>\r
                        <File\r
+                               RelativePath="..\..\include\wx\xrc\xh_bannerwindow.h"
+                               >
+                       </File>
+                       <File
                                RelativePath="..\..\include\wx\xrc\xh_bmp.h"\r
                                >\r
                        </File>\r
index 08681c2d25d50f2e186b42c04271d331c1b1a005..a5af2d100281a8d606d059a1245696c9223658be 100644 (file)
                                >\r
                        </File>\r
                        <File\r
+                               RelativePath="..\..\include\wx\xrc\xh_bannerwindow.h"
+                               >
+                       </File>
+                       <File
                                RelativePath="..\..\include\wx\xrc\xh_bmp.h"\r
                                >\r
                        </File>\r
                                >\r
                        </File>\r
                        <File\r
+                               RelativePath="..\..\src\xrc\xh_bannerwindow.cpp"
+                               >
+                       </File>
+                       <File
                                RelativePath="..\..\src\xrc\xh_bmp.cpp"\r
                                >\r
                        </File>\r
index 6b1255c1d2b9241656f49ada8be87d4df9efb521..a2ebc1ddfdcfd1e2abd43a47dd4456fe3a7f2b31 100644 (file)
                                >\r
                        </File>\r
                        <File\r
+                               RelativePath="..\..\include\wx\xrc\xh_bannerwindow.h"
+                               >
+                       </File>
+                       <File
                                RelativePath="..\..\include\wx\xrc\xh_bmp.h"\r
                                >\r
                        </File>\r
index 293c02e2310cbf8cdd9ca5bc16eb384ae61ffe0a..60ae20856089d93a0be19d0a11ac316d1c3d34a0 100644 (file)
                                >\r
                        </File>\r
                        <File\r
+                               RelativePath="..\..\include\wx\xrc\xh_bannerwindow.h"
+                               >
+                       </File>
+                       <File
                                RelativePath="..\..\include\wx\xrc\xh_bmp.h"\r
                                >\r
                        </File>\r
                                >\r
                        </File>\r
                        <File\r
+                               RelativePath="..\..\src\xrc\xh_bannerwindow.cpp"
+                               >
+                       </File>
+                       <File
                                RelativePath="..\..\src\xrc\xh_bmp.cpp"\r
                                >\r
                        </File>\r
index f231d43d1b5dfc7b1ab9fee6a9d6ff8585156fff..7c6585669964a5d0182cfd8d253c40a618033c3a 100644 (file)
@@ -538,6 +538,10 @@ SOURCE=..\..\include\wx\xrc\xh_animatctrl.h
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\..\include\wx\xrc\xh_bannerwindow.h
+# End Source File
+# Begin Source File
+
 SOURCE=..\..\include\wx\xrc\xh_bmp.h\r
 # End Source File\r
 # Begin Source File\r
@@ -786,6 +790,10 @@ SOURCE=..\..\src\xrc\xh_animatctrl.cpp
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\..\src\xrc\xh_bannerwindow.cpp
+# End Source File
+# Begin Source File
+
 SOURCE=..\..\src\xrc\xh_bmp.cpp\r
 # End Source File\r
 # Begin Source File\r
index 88e32f791cf40a978285b00d466f479baf1f5484..72d5405f4acc02a923cc0f2ff2fb8d78f5443a19 100644 (file)
@@ -526,6 +526,27 @@ controls cannot have children.
 @endTable
 
 
+@subsubsection xrc_wxanimationctrl wxBannerWindow
+
+@beginTable
+@hdr3col{property, type, description}
+@row3col{direction, @c wxLEFT|wxRIGHT|wxTOP|wxBOTTOM,
+    The side along which the banner will be positioned.}
+@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
+    Bitmap to use as the banner background.}
+@row3col{title, @ref overview_xrcformat_type_text,
+    Banner title, should be single line.}
+@row3col{message, @ref overview_xrcformat_type_text,
+    Possibly multi-line banner message.}
+@row3col{gradient-start, @ref overview_xrcformat_type_colour,
+    Starting colour of the gradient used as banner background. Can't be used if
+    a valid bitmap is specified.}
+@row3col{gradient-end, @ref overview_xrcformat_type_colour,
+    End colour of the gradient used as banner background. Can't be used if
+    a valid bitmap is specified.}
+@endTable
+
+
 @subsubsection xrc_wxbitmapbutton wxBitmapButton
 
 @beginTable
index 21bd620de8bef7e8b2038e8ba84fe4b8ff64bc29..7825a72b31859b7f2dd46a4bcecc9f6b32ba9eed 100644 (file)
@@ -15,6 +15,7 @@
 // Existing handlers:
 
 #include "wx/xrc/xh_animatctrl.h"
+#include "wx/xrc/xh_bannerwindow.h"
 #include "wx/xrc/xh_bmp.h"
 #include "wx/xrc/xh_bmpbt.h"
 #include "wx/xrc/xh_bmpcbox.h"
diff --git a/include/wx/xrc/xh_bannerwindow.h b/include/wx/xrc/xh_bannerwindow.h
new file mode 100644 (file)
index 0000000..bc4a53d
--- /dev/null
@@ -0,0 +1,31 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name:        wx/xrc/xh_bannerwindow.h
+// Purpose:     Declaration of wxBannerWindow XRC handler.
+// Author:      Vadim Zeitlin
+// Created:     2011-08-16
+// RCS-ID:      $Id$
+// Copyright:   (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
+// Licence:     wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_XH_BANNERWINDOW_H_
+#define _WX_XH_BANNERWINDOW_H_
+
+#include "wx/xrc/xmlres.h"
+
+#if wxUSE_XRC && wxUSE_BANNERWINDOW
+
+class WXDLLIMPEXP_XRC wxBannerWindowXmlHandler : public wxXmlResourceHandler
+{
+public:
+    wxBannerWindowXmlHandler();
+
+    virtual wxObject *DoCreateResource();
+    virtual bool CanHandle(wxXmlNode *node);
+
+    wxDECLARE_DYNAMIC_CLASS(wxBannerWindowXmlHandler);
+};
+
+#endif // wxUSE_XRC && wxUSE_BANNERWINDOW
+
+#endif // _WX_XH_BANNERWINDOW_H_
index b50afb81127b00f1500514dc303c21f4120a7ffc..f0ad8ffac1137ce9f464e1a23e2469c6447f3fb0 100644 (file)
                     </object>
                 </object>
 
+                <object class="choicebookpage">
+                    <label>wxBannerWindow</label>
+                    <object class="wxPanel" name="bannerwindow">
+                        <object class="wxBoxSizer">
+                            <orient>wxHORIZONTAL</orient>
+
+                            <object class="sizeritem">
+                                <flag>wxEXPAND</flag>
+                                <object class="wxBannerWindow">
+                                    <title>Welcome to banner demo page!</title>
+                                    <message>This is a default wxLEFT banner with some text.\nThe banner on the top uses a bitmap.</message>
+                                </object>
+                            </object>
+
+                            <object class="sizeritem">
+                                <flag>wxEXPAND|wxLEFT|wxRIGHT</flag>
+                                <option>1</option>
+                                <border>15</border>
+                                <object class="wxBoxSizer">
+                                    <orient>wxVERTICAL</orient>
+
+                                    <object class="sizeritem">
+                                        <flag>wxEXPAND</flag>
+                                        <object class="wxBannerWindow">
+                                            <direction>wxTOP</direction>
+                                            <bitmap>wxbanner.gif</bitmap>
+                                            <fg>yellow</fg>
+                                            <!-- Using spaces for indentation is ugly but will do for this simple example. -->
+                                            <title>                                                                                               Tip:</title>
+                                            <message>                                                                                                 You can also use text\n                                                                                                 and bitmap together.</message>
+                                        </object>
+                                    </object>
+
+                                    <object class="spacer">
+                                        <option>1</option>
+                                    </object>
+
+                                    <object class="sizeritem">
+                                        <flag>wxEXPAND</flag>
+                                        <object class="wxBannerWindow">
+                                            <direction>wxBOTTOM</direction>
+                                            <title>A word of advice:</title>
+                                            <message>You probably shouldn't use banners\non all four sides at once.</message>
+                                        </object>
+                                    </object>
+                                </object>
+                            </object>
+
+                            <object class="sizeritem">
+                                <flag>wxEXPAND</flag>
+                                <object class="wxBannerWindow">
+                                    <direction>wxRIGHT</direction>
+                                    <title>Custom Banner</title>
+                                    <message>You can change the gradient colours.</message>
+                                    <gradient-start>#7f7f7f</gradient-start>
+                                    <gradient-end>#ffffff</gradient-end>
+                                </object>
+                            </object>
+                        </object>
+                    </object>
+                </object>
+
                 <object class="choicebookpage">
                     <label>wxButton</label>
                     <object class="wxPanel" name="button">
diff --git a/samples/xrc/rc/wxbanner.gif b/samples/xrc/rc/wxbanner.gif
new file mode 100644 (file)
index 0000000..466d970
Binary files /dev/null and b/samples/xrc/rc/wxbanner.gif differ
diff --git a/src/xrc/xh_bannerwindow.cpp b/src/xrc/xh_bannerwindow.cpp
new file mode 100644 (file)
index 0000000..6507c85
--- /dev/null
@@ -0,0 +1,88 @@
+///////////////////////////////////////////////////////////////////////////////
+// Name:        srx/xrc/xh_bannerwindow.h
+// Purpose:     Implementation of wxBannerWindow XRC handler.
+// Author:      Vadim Zeitlin
+// Created:     2011-08-16
+// RCS-ID:      $Id$
+// Copyright:   (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
+// Licence:     wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+    #pragma hdrstop
+#endif
+
+#if wxUSE_XRC && wxUSE_BANNERWINDOW
+
+#include "wx/xrc/xh_bannerwindow.h"
+#include "wx/bannerwindow.h"
+
+wxIMPLEMENT_DYNAMIC_CLASS(wxBannerWindowXmlHandler, wxXmlResourceHandler)
+
+wxBannerWindowXmlHandler::wxBannerWindowXmlHandler()
+    : wxXmlResourceHandler()
+{
+    AddWindowStyles();
+}
+
+wxObject *wxBannerWindowXmlHandler::DoCreateResource()
+{
+    XRC_MAKE_INSTANCE(banner, wxBannerWindow)
+
+    banner->Create(m_parentAsWindow,
+                   GetID(),
+                   GetDirection(wxS("direction")),
+                   GetPosition(),
+                   GetSize(),
+                   GetStyle(wxS("style")),
+                   GetName());
+
+    SetupWindow(banner);
+
+    const wxColour colStart = GetColour(wxS("gradient-start"));
+    const wxColour colEnd = GetColour(wxS("gradient-end"));
+    if ( colStart.IsOk() || colEnd.IsOk() )
+    {
+        if ( !colStart.IsOk() || !colEnd.IsOk() )
+        {
+            ReportError
+            (
+                "Both start and end gradient colours must be "
+                "specified if either one is."
+            );
+        }
+        else
+        {
+            banner->SetGradient(colStart, colEnd);
+        }
+    }
+
+    wxBitmap bitmap = GetBitmap();
+    if ( bitmap.IsOk() )
+    {
+        if ( colStart.IsOk() || colEnd.IsOk() )
+        {
+            ReportError
+            (
+                "Gradient colours are ignored by wxBannerWindow "
+                "if the background bitmap is specified."
+            );
+        }
+
+        banner->SetBitmap(bitmap);
+    }
+
+    banner->SetText(GetText(wxS("title")), GetText(wxS("message")));
+
+    return banner;
+}
+
+bool wxBannerWindowXmlHandler::CanHandle(wxXmlNode *node)
+{
+    return IsOfClass(node, wxS("wxBannerWindow"));
+}
+
+#endif // wxUSE_XRC && wxUSE_BANNERWINDOW
index b116c5d994a2899e8aa1b2329744199d7c461290..993b8de9823747e410518d0c7ce3b588fb831516 100644 (file)
@@ -38,6 +38,9 @@ void wxXmlResource::InitAllHandlers()
 #if wxUSE_ANIMATIONCTRL
     AddHandler(new wxAnimationCtrlXmlHandler);
 #endif
+#if wxUSE_BANNERWINDOW
+    AddHandler(new wxBannerWindowXmlHandler);
+#endif
 #if wxUSE_BITMAPCOMBOBOX
     AddHandler(new wxBitmapComboBoxXmlHandler);
 #endif