wx/msw/control.h \
wx/msw/ctrlsub.h \
wx/msw/cursor.h \
+ wx/msw/custombgwin.h \
wx/msw/dc.h \
wx/msw/dcclient.h \
wx/msw/dcmemory.h \
wx/msw/control.h \
wx/msw/ctrlsub.h \
wx/msw/cursor.h \
+ wx/msw/custombgwin.h \
wx/msw/dc.h \
wx/msw/dcclient.h \
wx/msw/dcmemory.h \
wx/univ/colschem.h \
wx/univ/combobox.h \
wx/univ/control.h \
+ wx/univ/custombgwin.h \
wx/univ/dialog.h \
wx/univ/frame.h \
wx/univ/gauge.h \
wx/control.h \
wx/ctrlsub.h \
wx/cursor.h \
+ wx/custombgwin.h \
wx/dc.h \
wx/dcclient.h \
wx/dcgraph.h \
wx/generic/choicdgg.h \
wx/generic/colrdlgg.h \
wx/generic/combo.h \
+ wx/generic/custombgwin.h \
wx/generic/dcpsg.h \
wx/generic/dirctrlg.h \
wx/generic/dragimgg.h \
monodll_markuptext.o \
monodll_msgdlgg.o \
monodll_numdlgg.o \
- monodll_panelg.o \
monodll_progdlgg.o \
monodll_printps.o \
monodll_renderg.o \
monodll_markuptext.o \
monodll_msgdlgg.o \
monodll_numdlgg.o \
- monodll_panelg.o \
monodll_progdlgg.o \
monodll_printps.o \
monodll_renderg.o \
monolib_markuptext.o \
monolib_msgdlgg.o \
monolib_numdlgg.o \
- monolib_panelg.o \
monolib_progdlgg.o \
monolib_printps.o \
monolib_renderg.o \
monolib_markuptext.o \
monolib_msgdlgg.o \
monolib_numdlgg.o \
- monolib_panelg.o \
monolib_progdlgg.o \
monolib_printps.o \
monolib_renderg.o \
coredll_markuptext.o \
coredll_msgdlgg.o \
coredll_numdlgg.o \
- coredll_panelg.o \
coredll_progdlgg.o \
coredll_printps.o \
coredll_renderg.o \
coredll_markuptext.o \
coredll_msgdlgg.o \
coredll_numdlgg.o \
- coredll_panelg.o \
coredll_progdlgg.o \
coredll_printps.o \
coredll_renderg.o \
corelib_markuptext.o \
corelib_msgdlgg.o \
corelib_numdlgg.o \
- corelib_panelg.o \
corelib_progdlgg.o \
corelib_printps.o \
corelib_renderg.o \
corelib_markuptext.o \
corelib_msgdlgg.o \
corelib_numdlgg.o \
- corelib_panelg.o \
corelib_progdlgg.o \
corelib_printps.o \
corelib_renderg.o \
@COND_USE_GUI_1@monodll_numdlgg.o: $(srcdir)/src/generic/numdlgg.cpp $(MONODLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/generic/numdlgg.cpp
-@COND_USE_GUI_1@monodll_panelg.o: $(srcdir)/src/generic/panelg.cpp $(MONODLL_ODEP)
-@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/generic/panelg.cpp
-
@COND_USE_GUI_1@monodll_progdlgg.o: $(srcdir)/src/generic/progdlgg.cpp $(MONODLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/generic/progdlgg.cpp
@COND_USE_GUI_1@monolib_numdlgg.o: $(srcdir)/src/generic/numdlgg.cpp $(MONOLIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/generic/numdlgg.cpp
-@COND_USE_GUI_1@monolib_panelg.o: $(srcdir)/src/generic/panelg.cpp $(MONOLIB_ODEP)
-@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/generic/panelg.cpp
-
@COND_USE_GUI_1@monolib_progdlgg.o: $(srcdir)/src/generic/progdlgg.cpp $(MONOLIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/generic/progdlgg.cpp
@COND_USE_GUI_1@coredll_numdlgg.o: $(srcdir)/src/generic/numdlgg.cpp $(COREDLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/generic/numdlgg.cpp
-@COND_USE_GUI_1@coredll_panelg.o: $(srcdir)/src/generic/panelg.cpp $(COREDLL_ODEP)
-@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/generic/panelg.cpp
-
@COND_USE_GUI_1@coredll_progdlgg.o: $(srcdir)/src/generic/progdlgg.cpp $(COREDLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/generic/progdlgg.cpp
@COND_USE_GUI_1@corelib_numdlgg.o: $(srcdir)/src/generic/numdlgg.cpp $(CORELIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/generic/numdlgg.cpp
-@COND_USE_GUI_1@corelib_panelg.o: $(srcdir)/src/generic/panelg.cpp $(CORELIB_ODEP)
-@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/generic/panelg.cpp
-
@COND_USE_GUI_1@corelib_progdlgg.o: $(srcdir)/src/generic/progdlgg.cpp $(CORELIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/generic/progdlgg.cpp
src/generic/markuptext.cpp
src/generic/msgdlgg.cpp
src/generic/numdlgg.cpp
- src/generic/panelg.cpp
src/generic/progdlgg.cpp
src/generic/printps.cpp
src/generic/renderg.cpp
wx/control.h
wx/ctrlsub.h
wx/cursor.h
+ wx/custombgwin.h
wx/dc.h
wx/dcclient.h
wx/dcgraph.h
wx/generic/choicdgg.h
wx/generic/colrdlgg.h
wx/generic/combo.h
+ wx/generic/custombgwin.h
wx/generic/dcpsg.h
wx/generic/dirctrlg.h
wx/generic/dragimgg.h
wx/msw/control.h
wx/msw/ctrlsub.h
wx/msw/cursor.h
+ wx/msw/custombgwin.h
wx/msw/dc.h
wx/msw/dcclient.h
wx/msw/dcmemory.h
wx/univ/colschem.h
wx/univ/combobox.h
wx/univ/control.h
+ wx/univ/custombgwin.h
wx/univ/dialog.h
wx/univ/frame.h
wx/univ/gauge.h
$(OBJS)\monodll_markuptext.obj \\r
$(OBJS)\monodll_msgdlgg.obj \\r
$(OBJS)\monodll_numdlgg.obj \\r
- $(OBJS)\monodll_panelg.obj \\r
$(OBJS)\monodll_progdlgg.obj \\r
$(OBJS)\monodll_printps.obj \\r
$(OBJS)\monodll_renderg.obj \\r
$(OBJS)\monodll_markuptext.obj \\r
$(OBJS)\monodll_msgdlgg.obj \\r
$(OBJS)\monodll_numdlgg.obj \\r
- $(OBJS)\monodll_panelg.obj \\r
$(OBJS)\monodll_progdlgg.obj \\r
$(OBJS)\monodll_printps.obj \\r
$(OBJS)\monodll_renderg.obj \\r
$(OBJS)\monolib_markuptext.obj \\r
$(OBJS)\monolib_msgdlgg.obj \\r
$(OBJS)\monolib_numdlgg.obj \\r
- $(OBJS)\monolib_panelg.obj \\r
$(OBJS)\monolib_progdlgg.obj \\r
$(OBJS)\monolib_printps.obj \\r
$(OBJS)\monolib_renderg.obj \\r
$(OBJS)\monolib_markuptext.obj \\r
$(OBJS)\monolib_msgdlgg.obj \\r
$(OBJS)\monolib_numdlgg.obj \\r
- $(OBJS)\monolib_panelg.obj \\r
$(OBJS)\monolib_progdlgg.obj \\r
$(OBJS)\monolib_printps.obj \\r
$(OBJS)\monolib_renderg.obj \\r
$(OBJS)\coredll_markuptext.obj \\r
$(OBJS)\coredll_msgdlgg.obj \\r
$(OBJS)\coredll_numdlgg.obj \\r
- $(OBJS)\coredll_panelg.obj \\r
$(OBJS)\coredll_progdlgg.obj \\r
$(OBJS)\coredll_printps.obj \\r
$(OBJS)\coredll_renderg.obj \\r
$(OBJS)\coredll_markuptext.obj \\r
$(OBJS)\coredll_msgdlgg.obj \\r
$(OBJS)\coredll_numdlgg.obj \\r
- $(OBJS)\coredll_panelg.obj \\r
$(OBJS)\coredll_progdlgg.obj \\r
$(OBJS)\coredll_printps.obj \\r
$(OBJS)\coredll_renderg.obj \\r
$(OBJS)\corelib_markuptext.obj \\r
$(OBJS)\corelib_msgdlgg.obj \\r
$(OBJS)\corelib_numdlgg.obj \\r
- $(OBJS)\corelib_panelg.obj \\r
$(OBJS)\corelib_progdlgg.obj \\r
$(OBJS)\corelib_printps.obj \\r
$(OBJS)\corelib_renderg.obj \\r
$(OBJS)\corelib_markuptext.obj \\r
$(OBJS)\corelib_msgdlgg.obj \\r
$(OBJS)\corelib_numdlgg.obj \\r
- $(OBJS)\corelib_panelg.obj \\r
$(OBJS)\corelib_progdlgg.obj \\r
$(OBJS)\corelib_printps.obj \\r
$(OBJS)\corelib_renderg.obj \\r
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\numdlgg.cpp\r
!endif\r
\r
-!if "$(USE_GUI)" == "1"\r
-$(OBJS)\monodll_panelg.obj: ..\..\src\generic\panelg.cpp\r
- $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\panelg.cpp\r
-!endif\r
-\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\monodll_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\numdlgg.cpp\r
!endif\r
\r
-!if "$(USE_GUI)" == "1"\r
-$(OBJS)\monolib_panelg.obj: ..\..\src\generic\panelg.cpp\r
- $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\panelg.cpp\r
-!endif\r
-\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\monolib_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\numdlgg.cpp\r
!endif\r
\r
-!if "$(USE_GUI)" == "1"\r
-$(OBJS)\coredll_panelg.obj: ..\..\src\generic\panelg.cpp\r
- $(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\panelg.cpp\r
-!endif\r
-\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\coredll_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\numdlgg.cpp\r
!endif\r
\r
-!if "$(USE_GUI)" == "1"\r
-$(OBJS)\corelib_panelg.obj: ..\..\src\generic\panelg.cpp\r
- $(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\panelg.cpp\r
-!endif\r
-\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\corelib_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
$(OBJS)\monodll_markuptext.o \\r
$(OBJS)\monodll_msgdlgg.o \\r
$(OBJS)\monodll_numdlgg.o \\r
- $(OBJS)\monodll_panelg.o \\r
$(OBJS)\monodll_progdlgg.o \\r
$(OBJS)\monodll_printps.o \\r
$(OBJS)\monodll_renderg.o \\r
$(OBJS)\monodll_markuptext.o \\r
$(OBJS)\monodll_msgdlgg.o \\r
$(OBJS)\monodll_numdlgg.o \\r
- $(OBJS)\monodll_panelg.o \\r
$(OBJS)\monodll_progdlgg.o \\r
$(OBJS)\monodll_printps.o \\r
$(OBJS)\monodll_renderg.o \\r
$(OBJS)\monolib_markuptext.o \\r
$(OBJS)\monolib_msgdlgg.o \\r
$(OBJS)\monolib_numdlgg.o \\r
- $(OBJS)\monolib_panelg.o \\r
$(OBJS)\monolib_progdlgg.o \\r
$(OBJS)\monolib_printps.o \\r
$(OBJS)\monolib_renderg.o \\r
$(OBJS)\monolib_markuptext.o \\r
$(OBJS)\monolib_msgdlgg.o \\r
$(OBJS)\monolib_numdlgg.o \\r
- $(OBJS)\monolib_panelg.o \\r
$(OBJS)\monolib_progdlgg.o \\r
$(OBJS)\monolib_printps.o \\r
$(OBJS)\monolib_renderg.o \\r
$(OBJS)\coredll_markuptext.o \\r
$(OBJS)\coredll_msgdlgg.o \\r
$(OBJS)\coredll_numdlgg.o \\r
- $(OBJS)\coredll_panelg.o \\r
$(OBJS)\coredll_progdlgg.o \\r
$(OBJS)\coredll_printps.o \\r
$(OBJS)\coredll_renderg.o \\r
$(OBJS)\coredll_markuptext.o \\r
$(OBJS)\coredll_msgdlgg.o \\r
$(OBJS)\coredll_numdlgg.o \\r
- $(OBJS)\coredll_panelg.o \\r
$(OBJS)\coredll_progdlgg.o \\r
$(OBJS)\coredll_printps.o \\r
$(OBJS)\coredll_renderg.o \\r
$(OBJS)\corelib_markuptext.o \\r
$(OBJS)\corelib_msgdlgg.o \\r
$(OBJS)\corelib_numdlgg.o \\r
- $(OBJS)\corelib_panelg.o \\r
$(OBJS)\corelib_progdlgg.o \\r
$(OBJS)\corelib_printps.o \\r
$(OBJS)\corelib_renderg.o \\r
$(OBJS)\corelib_markuptext.o \\r
$(OBJS)\corelib_msgdlgg.o \\r
$(OBJS)\corelib_numdlgg.o \\r
- $(OBJS)\corelib_panelg.o \\r
$(OBJS)\corelib_progdlgg.o \\r
$(OBJS)\corelib_printps.o \\r
$(OBJS)\corelib_renderg.o \\r
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
\r
-ifeq ($(USE_GUI),1)\r
-$(OBJS)\monodll_panelg.o: ../../src/generic/panelg.cpp\r
- $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
-endif\r
-\r
ifeq ($(USE_GUI),1)\r
$(OBJS)\monodll_progdlgg.o: ../../src/generic/progdlgg.cpp\r
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
\r
-ifeq ($(USE_GUI),1)\r
-$(OBJS)\monolib_panelg.o: ../../src/generic/panelg.cpp\r
- $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
-endif\r
-\r
ifeq ($(USE_GUI),1)\r
$(OBJS)\monolib_progdlgg.o: ../../src/generic/progdlgg.cpp\r
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
$(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
\r
-ifeq ($(USE_GUI),1)\r
-$(OBJS)\coredll_panelg.o: ../../src/generic/panelg.cpp\r
- $(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $(CPPDEPS) $<\r
-endif\r
-\r
ifeq ($(USE_GUI),1)\r
$(OBJS)\coredll_progdlgg.o: ../../src/generic/progdlgg.cpp\r
$(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $(CPPDEPS) $<\r
$(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
\r
-ifeq ($(USE_GUI),1)\r
-$(OBJS)\corelib_panelg.o: ../../src/generic/panelg.cpp\r
- $(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $(CPPDEPS) $<\r
-endif\r
-\r
ifeq ($(USE_GUI),1)\r
$(OBJS)\corelib_progdlgg.o: ../../src/generic/progdlgg.cpp\r
$(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $(CPPDEPS) $<\r
$(OBJS)\monodll_markuptext.obj \\r
$(OBJS)\monodll_msgdlgg.obj \\r
$(OBJS)\monodll_numdlgg.obj \\r
- $(OBJS)\monodll_panelg.obj \\r
$(OBJS)\monodll_progdlgg.obj \\r
$(OBJS)\monodll_printps.obj \\r
$(OBJS)\monodll_renderg.obj \\r
$(OBJS)\monodll_markuptext.obj \\r
$(OBJS)\monodll_msgdlgg.obj \\r
$(OBJS)\monodll_numdlgg.obj \\r
- $(OBJS)\monodll_panelg.obj \\r
$(OBJS)\monodll_progdlgg.obj \\r
$(OBJS)\monodll_printps.obj \\r
$(OBJS)\monodll_renderg.obj \\r
$(OBJS)\monolib_markuptext.obj \\r
$(OBJS)\monolib_msgdlgg.obj \\r
$(OBJS)\monolib_numdlgg.obj \\r
- $(OBJS)\monolib_panelg.obj \\r
$(OBJS)\monolib_progdlgg.obj \\r
$(OBJS)\monolib_printps.obj \\r
$(OBJS)\monolib_renderg.obj \\r
$(OBJS)\monolib_markuptext.obj \\r
$(OBJS)\monolib_msgdlgg.obj \\r
$(OBJS)\monolib_numdlgg.obj \\r
- $(OBJS)\monolib_panelg.obj \\r
$(OBJS)\monolib_progdlgg.obj \\r
$(OBJS)\monolib_printps.obj \\r
$(OBJS)\monolib_renderg.obj \\r
$(OBJS)\coredll_markuptext.obj \\r
$(OBJS)\coredll_msgdlgg.obj \\r
$(OBJS)\coredll_numdlgg.obj \\r
- $(OBJS)\coredll_panelg.obj \\r
$(OBJS)\coredll_progdlgg.obj \\r
$(OBJS)\coredll_printps.obj \\r
$(OBJS)\coredll_renderg.obj \\r
$(OBJS)\coredll_markuptext.obj \\r
$(OBJS)\coredll_msgdlgg.obj \\r
$(OBJS)\coredll_numdlgg.obj \\r
- $(OBJS)\coredll_panelg.obj \\r
$(OBJS)\coredll_progdlgg.obj \\r
$(OBJS)\coredll_printps.obj \\r
$(OBJS)\coredll_renderg.obj \\r
$(OBJS)\corelib_markuptext.obj \\r
$(OBJS)\corelib_msgdlgg.obj \\r
$(OBJS)\corelib_numdlgg.obj \\r
- $(OBJS)\corelib_panelg.obj \\r
$(OBJS)\corelib_progdlgg.obj \\r
$(OBJS)\corelib_printps.obj \\r
$(OBJS)\corelib_renderg.obj \\r
$(OBJS)\corelib_markuptext.obj \\r
$(OBJS)\corelib_msgdlgg.obj \\r
$(OBJS)\corelib_numdlgg.obj \\r
- $(OBJS)\corelib_panelg.obj \\r
$(OBJS)\corelib_progdlgg.obj \\r
$(OBJS)\corelib_printps.obj \\r
$(OBJS)\corelib_renderg.obj \\r
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\numdlgg.cpp\r
!endif\r
\r
-!if "$(USE_GUI)" == "1"\r
-$(OBJS)\monodll_panelg.obj: ..\..\src\generic\panelg.cpp\r
- $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\panelg.cpp\r
-!endif\r
-\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\monodll_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\numdlgg.cpp\r
!endif\r
\r
-!if "$(USE_GUI)" == "1"\r
-$(OBJS)\monolib_panelg.obj: ..\..\src\generic\panelg.cpp\r
- $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\panelg.cpp\r
-!endif\r
-\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\monolib_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\numdlgg.cpp\r
!endif\r
\r
-!if "$(USE_GUI)" == "1"\r
-$(OBJS)\coredll_panelg.obj: ..\..\src\generic\panelg.cpp\r
- $(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\panelg.cpp\r
-!endif\r
-\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\coredll_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\numdlgg.cpp\r
!endif\r
\r
-!if "$(USE_GUI)" == "1"\r
-$(OBJS)\corelib_panelg.obj: ..\..\src\generic\panelg.cpp\r
- $(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\panelg.cpp\r
-!endif\r
-\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\corelib_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
$(OBJS)\monodll_markuptext.obj &\r
$(OBJS)\monodll_msgdlgg.obj &\r
$(OBJS)\monodll_numdlgg.obj &\r
- $(OBJS)\monodll_panelg.obj &\r
$(OBJS)\monodll_progdlgg.obj &\r
$(OBJS)\monodll_printps.obj &\r
$(OBJS)\monodll_renderg.obj &\r
$(OBJS)\monodll_markuptext.obj &\r
$(OBJS)\monodll_msgdlgg.obj &\r
$(OBJS)\monodll_numdlgg.obj &\r
- $(OBJS)\monodll_panelg.obj &\r
$(OBJS)\monodll_progdlgg.obj &\r
$(OBJS)\monodll_printps.obj &\r
$(OBJS)\monodll_renderg.obj &\r
$(OBJS)\monolib_markuptext.obj &\r
$(OBJS)\monolib_msgdlgg.obj &\r
$(OBJS)\monolib_numdlgg.obj &\r
- $(OBJS)\monolib_panelg.obj &\r
$(OBJS)\monolib_progdlgg.obj &\r
$(OBJS)\monolib_printps.obj &\r
$(OBJS)\monolib_renderg.obj &\r
$(OBJS)\monolib_markuptext.obj &\r
$(OBJS)\monolib_msgdlgg.obj &\r
$(OBJS)\monolib_numdlgg.obj &\r
- $(OBJS)\monolib_panelg.obj &\r
$(OBJS)\monolib_progdlgg.obj &\r
$(OBJS)\monolib_printps.obj &\r
$(OBJS)\monolib_renderg.obj &\r
$(OBJS)\coredll_markuptext.obj &\r
$(OBJS)\coredll_msgdlgg.obj &\r
$(OBJS)\coredll_numdlgg.obj &\r
- $(OBJS)\coredll_panelg.obj &\r
$(OBJS)\coredll_progdlgg.obj &\r
$(OBJS)\coredll_printps.obj &\r
$(OBJS)\coredll_renderg.obj &\r
$(OBJS)\coredll_markuptext.obj &\r
$(OBJS)\coredll_msgdlgg.obj &\r
$(OBJS)\coredll_numdlgg.obj &\r
- $(OBJS)\coredll_panelg.obj &\r
$(OBJS)\coredll_progdlgg.obj &\r
$(OBJS)\coredll_printps.obj &\r
$(OBJS)\coredll_renderg.obj &\r
$(OBJS)\corelib_markuptext.obj &\r
$(OBJS)\corelib_msgdlgg.obj &\r
$(OBJS)\corelib_numdlgg.obj &\r
- $(OBJS)\corelib_panelg.obj &\r
$(OBJS)\corelib_progdlgg.obj &\r
$(OBJS)\corelib_printps.obj &\r
$(OBJS)\corelib_renderg.obj &\r
$(OBJS)\corelib_markuptext.obj &\r
$(OBJS)\corelib_msgdlgg.obj &\r
$(OBJS)\corelib_numdlgg.obj &\r
- $(OBJS)\corelib_panelg.obj &\r
$(OBJS)\corelib_progdlgg.obj &\r
$(OBJS)\corelib_printps.obj &\r
$(OBJS)\corelib_renderg.obj &\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
!endif\r
\r
-!ifeq USE_GUI 1\r
-$(OBJS)\monodll_panelg.obj : .AUTODEPEND ..\..\src\generic\panelg.cpp\r
- $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
-!endif\r
-\r
!ifeq USE_GUI 1\r
$(OBJS)\monodll_progdlgg.obj : .AUTODEPEND ..\..\src\generic\progdlgg.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
!endif\r
\r
-!ifeq USE_GUI 1\r
-$(OBJS)\monolib_panelg.obj : .AUTODEPEND ..\..\src\generic\panelg.cpp\r
- $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
-!endif\r
-\r
!ifeq USE_GUI 1\r
$(OBJS)\monolib_progdlgg.obj : .AUTODEPEND ..\..\src\generic\progdlgg.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
$(CXX) -bt=nt -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<\r
!endif\r
\r
-!ifeq USE_GUI 1\r
-$(OBJS)\coredll_panelg.obj : .AUTODEPEND ..\..\src\generic\panelg.cpp\r
- $(CXX) -bt=nt -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<\r
-!endif\r
-\r
!ifeq USE_GUI 1\r
$(OBJS)\coredll_progdlgg.obj : .AUTODEPEND ..\..\src\generic\progdlgg.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<\r
$(CXX) -bt=nt -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<\r
!endif\r
\r
-!ifeq USE_GUI 1\r
-$(OBJS)\corelib_panelg.obj : .AUTODEPEND ..\..\src\generic\panelg.cpp\r
- $(CXX) -bt=nt -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<\r
-!endif\r
-\r
!ifeq USE_GUI 1\r
$(OBJS)\corelib_progdlgg.obj : .AUTODEPEND ..\..\src\generic\progdlgg.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<\r
# End Source File\r
# Begin Source File\r
\r
-SOURCE=..\..\src\generic\panelg.cpp\r
-# End Source File\r
-# Begin Source File\r
-\r
SOURCE=..\..\src\generic\printps.cpp\r
# End Source File\r
# Begin Source File\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\include\wx\msw\custombgwin.h
+# End Source File
+# Begin Source File
+
SOURCE=..\..\include\wx\msw\ole\dataform.h\r
# End Source File\r
# Begin Source File\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\include\wx\generic\custombgwin.h
+# End Source File
+# Begin Source File
+
SOURCE=..\..\include\wx\generic\dataview.h\r
# End Source File\r
# Begin Source File\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\include\wx\univ\custombgwin.h
+# End Source File
+# Begin Source File
+
SOURCE=..\..\include\wx\univ\dialog.h\r
# End Source File\r
# Begin Source File\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\include\wx\custombgwin.h
+# End Source File
+# Begin Source File
+
SOURCE=..\..\include\wx\dataobj.h\r
# End Source File\r
# Begin Source File\r
<File\r
RelativePath="..\..\src\generic\numdlgg.cpp">\r
</File>\r
- <File\r
- RelativePath="..\..\src\generic\panelg.cpp">\r
- </File>\r
<File\r
RelativePath="..\..\src\generic\printps.cpp">\r
</File>\r
RelativePath="..\..\include\wx\msw\cursor.h">\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\msw\custombgwin.h">
+ </File>
+ <File
RelativePath="..\..\include\wx\msw\ole\dataform.h">\r
</File>\r
<File\r
RelativePath="..\..\include\wx\generic\ctrlsub.h">\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\generic\custombgwin.h">
+ </File>
+ <File
RelativePath="..\..\include\wx\generic\dataview.h">\r
</File>\r
<File\r
RelativePath="..\..\include\wx\univ\control.h">\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\univ\custombgwin.h">
+ </File>
+ <File
RelativePath="..\..\include\wx\univ\dialog.h">\r
</File>\r
<File\r
RelativePath="..\..\include\wx\cursor.h">\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\custombgwin.h">
+ </File>
+ <File
RelativePath="..\..\include\wx\dataobj.h">\r
</File>\r
<File\r
RelativePath="..\..\src\generic\numdlgg.cpp"\r
>\r
</File>\r
- <File\r
- RelativePath="..\..\src\generic\panelg.cpp"\r
- >\r
- </File>\r
<File\r
RelativePath="..\..\src\generic\printps.cpp"\r
>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\msw\custombgwin.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\msw\ole\dataform.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\generic\custombgwin.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\generic\dataview.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\univ\custombgwin.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\univ\dialog.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\custombgwin.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\dataobj.h"\r
>\r
</File>\r
RelativePath="..\..\src\generic\numdlgg.cpp"\r
>\r
</File>\r
- <File\r
- RelativePath="..\..\src\generic\panelg.cpp"\r
- >\r
- </File>\r
<File\r
RelativePath="..\..\src\generic\printps.cpp"\r
>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\msw\custombgwin.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\msw\ole\dataform.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\generic\custombgwin.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\generic\dataview.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\univ\custombgwin.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\univ\dialog.h"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\include\wx\custombgwin.h"
+ >
+ </File>
+ <File
RelativePath="..\..\include\wx\dataobj.h"\r
>\r
</File>\r
2.9.3:
------
+INCOMPATIBLE CHANGES SINCE 2.9.2
+
+- wxPanel::SetBackgroundBitmap() was removed, derive your class from
+ wxCustomBackgroundWindow and use its method with the same name instead.
+
All:
- Fix parsing of negated long options in wxCmdLineParser (roed_bis).
arrangement
@li wxWizardPage: A base class for the page in wizard dialog.
@li wxWizardPageSimple: A page in wizard dialog.
-
+@li wxCustomBackgroundWindow: A window allowing to set a custom bitmap.
@section page_class_cat_aui Window Docking (wxAUI)
--- /dev/null
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/custombgwin.h
+// Purpose: Class adding support for custom window backgrounds.
+// Author: Vadim Zeitlin
+// Created: 2011-10-10
+// RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
+// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_CUSTOMBGWIN_H_
+#define _WX_CUSTOMBGWIN_H_
+
+// ----------------------------------------------------------------------------
+// wxCustomBackgroundWindow: Adds support for custom backgrounds to any
+// wxWindow-derived class.
+// ----------------------------------------------------------------------------
+
+class wxCustomBackgroundWindowBase
+{
+public:
+ // Trivial default ctor.
+ wxCustomBackgroundWindowBase() { }
+
+ // Use the given bitmap to tile the background of this window. This bitmap
+ // will show through any transparent children.
+ //
+ // Notice that you must not prevent the base class EVT_ERASE_BACKGROUND
+ // handler from running (i.e. not to handle this event yourself) for this
+ // to work.
+ void SetBackgroundBitmap(const wxBitmap& bmp)
+ {
+ DoSetBackgroundBitmap(bmp);
+ }
+
+protected:
+ virtual void DoSetBackgroundBitmap(const wxBitmap& bmp) = 0;
+
+ wxDECLARE_NO_COPY_CLASS(wxCustomBackgroundWindowBase);
+};
+
+#if defined(__WXUNIVERSAL__)
+ #include "wx/univ/custombgwin.h"
+#elif defined(__WXMSW__)
+ #include "wx/msw/custombgwin.h"
+#else
+ #include "wx/generic/custombgwin.h"
+#endif
+
+#endif // _WX_CUSTOMBGWIN_H_
--- /dev/null
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/generic/custombgwin.h
+// Purpose: Generic implementation of wxCustomBackgroundWindow.
+// Author: Vadim Zeitlin
+// Created: 2011-10-10
+// RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
+// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_GENERIC_CUSTOMBGWIN_H_
+#define _WX_GENERIC_CUSTOMBGWIN_H_
+
+#include "wx/bitmap.h"
+
+// A helper to avoid template bloat: this class contains all type-independent
+// code of wxCustomBackgroundWindow<> below.
+class wxCustomBackgroundWindowGenericBase : public wxCustomBackgroundWindowBase
+{
+public:
+ wxCustomBackgroundWindowGenericBase() { }
+
+protected:
+ void DoEraseBackground(wxEraseEvent& event, wxWindow* win)
+ {
+ wxDC& dc = *event.GetDC();
+
+ const wxSize clientSize = win->GetClientSize();
+ const wxSize bitmapSize = m_bitmapBg.GetSize();
+
+ for ( int x = 0; x < clientSize.x; x += bitmapSize.x )
+ {
+ for ( int y = 0; y < clientSize.y; y += bitmapSize.y )
+ {
+ dc.DrawBitmap(m_bitmapBg, x, y);
+ }
+ }
+ }
+
+
+ // The bitmap used for painting the background if valid.
+ wxBitmap m_bitmapBg;
+
+
+ wxDECLARE_NO_COPY_CLASS(wxCustomBackgroundWindowGenericBase);
+};
+
+// ----------------------------------------------------------------------------
+// wxCustomBackgroundWindow
+// ----------------------------------------------------------------------------
+
+template <class W>
+class wxCustomBackgroundWindow : public W,
+ public wxCustomBackgroundWindowGenericBase
+{
+public:
+ typedef W BaseWindowClass;
+
+ wxCustomBackgroundWindow() { }
+
+protected:
+ virtual void DoSetBackgroundBitmap(const wxBitmap& bmp)
+ {
+ m_bitmapBg = bmp;
+
+ if ( m_bitmapBg.IsOk() )
+ {
+ BaseWindowClass::Connect
+ (
+ wxEVT_ERASE_BACKGROUND,
+ wxEraseEventHandler(wxCustomBackgroundWindow::OnEraseBackground)
+ );
+ }
+ else
+ {
+ BaseWindowClass::Disconnect
+ (
+ wxEVT_ERASE_BACKGROUND,
+ wxEraseEventHandler(wxCustomBackgroundWindow::OnEraseBackground)
+ );
+ }
+ }
+
+private:
+ // Event handler for erasing the background which is only used when we have
+ // a valid background bitmap.
+ void OnEraseBackground(wxEraseEvent& event)
+ {
+ DoEraseBackground(event, this);
+ }
+
+
+ wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxCustomBackgroundWindow, W);
+};
+
+#endif // _WX_GENERIC_CUSTOMBGWIN_H_
)
#endif // WXWIN_COMPATIBILITY_2_8
-protected:
- virtual void DoSetBackgroundBitmap(const wxBitmap& bmp);
-
private:
- // Event handler for erasing the background which is only used when we have
- // a valid background bitmap.
- void OnEraseBackground(wxEraseEvent& event);
-
-
- // The bitmap used for painting the background if valid.
- wxBitmap m_bitmapBg;
-
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
};
--- /dev/null
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/msw/custombgwin.h
+// Purpose: wxMSW implementation of wxCustomBackgroundWindow
+// Author: Vadim Zeitlin
+// Created: 2011-10-10
+// RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
+// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_MSW_CUSTOMBGWIN_H_
+#define _WX_MSW_CUSTOMBGWIN_H_
+
+#include "wx/bitmap.h"
+#include "wx/brush.h"
+
+// ----------------------------------------------------------------------------
+// wxCustomBackgroundWindow
+// ----------------------------------------------------------------------------
+
+template <class W>
+class wxCustomBackgroundWindow : public W,
+ public wxCustomBackgroundWindowBase
+{
+public:
+ typedef W BaseWindowClass;
+
+ wxCustomBackgroundWindow() { m_backgroundBrush = NULL; }
+
+ virtual ~wxCustomBackgroundWindow() { delete m_backgroundBrush; }
+
+protected:
+ virtual void DoSetBackgroundBitmap(const wxBitmap& bmp)
+ {
+ delete m_backgroundBrush;
+ m_backgroundBrush = bmp.IsOk() ? new wxBrush(bmp) : NULL;
+
+ // Our transparent children should use our background if we have it,
+ // otherwise try to restore m_inheritBgCol to some reasonable value: true
+ // if we also have non-default background colour or false otherwise.
+ BaseWindowClass::m_inheritBgCol = bmp.IsOk()
+ || BaseWindowClass::UseBgCol();
+ }
+
+ virtual WXHBRUSH MSWGetCustomBgBrush()
+ {
+ if ( m_backgroundBrush )
+ return (WXHBRUSH)m_backgroundBrush->GetResourceHandle();
+
+ return BaseWindowClass::MSWGetCustomBgBrush();
+ }
+
+ wxBrush *m_backgroundBrush;
+
+ wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxCustomBackgroundWindow, W);
+};
+
+#endif // _WX_MSW_CUSTOMBGWIN_H_
class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
{
public:
- wxPanel() { Init(); }
+ wxPanel() { }
wxPanel(wxWindow *parent,
wxWindowID winid = wxID_ANY,
long style = wxTAB_TRAVERSAL | wxNO_BORDER,
const wxString& name = wxPanelNameStr)
{
- Init();
-
Create(parent, winid, pos, size, style, name);
}
- virtual ~wxPanel();
-
// This is overridden for MSW to return true for all panels that are child
// of a window with themed background (such as wxNotebook) which should
// show through the child panels.
)
#endif // WXWIN_COMPATIBILITY_2_8
-protected:
- void Init()
- {
- m_backgroundBrush = NULL;
- }
-
- virtual void DoSetBackgroundBitmap(const wxBitmap& bmp);
- virtual WXHBRUSH MSWGetCustomBgBrush();
-
private:
- wxBrush *m_backgroundBrush;
-
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
};
const wxString& name = wxPanelNameStr);
- // Use the given bitmap to tile the background of this panel. This bitmap
- // will show through any transparent children.
- //
- // Notice that you must not prevent the base class EVT_ERASE_BACKGROUND
- // handler from running (i.e. not to handle this event yourself) for this
- // to work.
- void SetBackgroundBitmap(const wxBitmap& bmp)
- {
- DoSetBackgroundBitmap(bmp);
- }
-
-
// implementation from now on
// --------------------------
virtual void InitDialog();
-protected:
- virtual void DoSetBackgroundBitmap(const wxBitmap& bmp) = 0;
-
private:
wxDECLARE_NO_COPY_CLASS(wxPanelBase);
};
--- /dev/null
+///////////////////////////////////////////////////////////////////////////////
+// Name: wx/univ/custombgwin.h
+// Purpose: wxUniv implementation of wxCustomBackgroundWindow.
+// Author: Vadim Zeitlin
+// Created: 2011-10-10
+// RCS-ID: $Id: wxhead.h,v 1.12 2010-04-22 12:44:51 zeitlin Exp $
+// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
+// Licence: wxWindows licence
+///////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_UNIV_CUSTOMBGWIN_H_
+#define _WX_UNIV_CUSTOMBGWIN_H_
+
+// ----------------------------------------------------------------------------
+// wxCustomBackgroundWindow
+// ----------------------------------------------------------------------------
+
+template <class W>
+class wxCustomBackgroundWindow : public W,
+ public wxCustomBackgroundWindowBase
+{
+public:
+ typedef W BaseWindowClass;
+
+ wxCustomBackgroundWindow() { }
+
+protected:
+ virtual void DoSetBackgroundBitmap(const wxBitmap& bmp)
+ {
+ // We have support for background bitmap even at the base class level.
+ BaseWindowClass::SetBackground(bmp, wxALIGN_NOT, wxTILE);
+ }
+
+ wxDECLARE_NO_COPY_TEMPLATE_CLASS(wxCustomBackgroundWindow, W);
+};
+
+#endif // _WX_UNIV_CUSTOMBGWIN_H_
)
#endif // WXWIN_COMPATIBILITY_2_8
-protected:
- virtual void DoSetBackgroundBitmap(const wxBitmap& bmp)
- {
- // We have support for background bitmap even at the base class level.
- SetBackground(bmp, wxALIGN_NOT, wxTILE);
- }
-
private:
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel);
};
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: wx/custombgwin.h
+// Purpose: Documentation of wxCustomBackgroundWindow.
+// Author: Vadim Zeitlin
+// Created: 2011-10-10
+// RCS-ID: $Id$
+// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+/**
+ A helper class making it possible to use custom background for any window.
+
+ wxWindow itself only provides SetBackgroundColour() method taking a (solid)
+ wxColour. This class extends it by allowing to use custom bitmap
+ backgrounds with any window, provided that you inherit from it. Notice that
+ the usual rule of not interfering with event handling or painting of native
+ controls still applies, so you shouldn't try to use custom backgrounds with
+ classes such as wxButton (even if this might work on some platforms, it's
+ not guaranteed to work in general). But you can use this class in
+ conjunction with wxWindow, wxPanel, wxFrame and other similar classes, e.g.
+ the erase sample shows how to use it with wxScrolledWindow:
+
+ @code
+ #include "wx/custombgwin.h"
+
+ class MyCanvas : public wxCustomBackgroundWindow<wxScrolledWindow>
+ {
+ public:
+ MyCanvas(wxWindow* parent)
+ {
+ // Notice that we must explicitly call base class Create()
+ // instead of using its ctor as wxCustomBackgroundWindow
+ // doesn't define any non-default ctors.
+ Create(parent, wxID_ANY);
+
+ ...
+
+ SetBackgroundBitmap(bitmap);
+ }
+ };
+ @endcode
+
+ @category{miscwnd}
+
+ @since 2.9.3
+ */
+template <class W>
+class wxCustomBackgroundWindow : public W
+{
+public:
+ /// Trivial default constructor.
+ wxCustomBackgroundWindow();
+
+ /**
+ Set the background bitmap for this window.
+
+ If @a bmp is a valid bitmap, this bitmap will be tiled over the panel
+ background and show through any of its transparent children. Passing an
+ invalid bitmap reverts to the default background appearance.
+
+ Notice that you must not prevent the base class EVT_ERASE_BACKGROUND
+ handler from running (i.e. not to handle this event yourself) for this
+ to work.
+ */
+ void SetBackgroundBitmap(const wxBitmap& bmp);
+};
*/
void OnSysColourChanged(wxSysColourChangedEvent& event);
- /**
- Set the background bitmap for this panel.
-
- If @a bmp is a valid bitmap, this bitmap will be tiled over the panel
- background and show through any of its transparent children. Passing an
- invalid bitmap reverts to the default background appearance.
-
- Notice that you must not prevent the base class EVT_ERASE_BACKGROUND
- handler from running (i.e. not to handle this event yourself) for this
- to work.
-
- @since 2.9.2
- */
- void SetBackgroundBitmap(const wxBitmap& bmp);
-
/**
Overrides wxWindow::SetFocus().
#include "wx/wx.h"
#endif
+#include "wx/custombgwin.h"
#include "wx/dcbuffer.h"
// ----------------------------------------------------------------------------
};
-class MyCanvas : public wxScrolledWindow
+class MyCanvas : public wxCustomBackgroundWindow<wxScrolledWindow>
{
public:
MyCanvas(wxFrame *parent);
END_EVENT_TABLE()
MyCanvas::MyCanvas(wxFrame *parent)
- : wxScrolledWindow(parent, wxID_ANY)
{
+ Create(parent, wxID_ANY);
+
m_useBuffer = false;
m_useBgBmp = false;
m_eraseBgInPaint = false;
+++ /dev/null
-///////////////////////////////////////////////////////////////////////////////
-// Name: src/generic/panelg.cpp
-// Purpose: Generic wxPanel implementation.
-// Author: Vadim Zeitlin
-// Created: 2011-03-20
-// RCS-ID: $Id: wxhead.cpp,v 1.11 2010-04-22 12:44:51 zeitlin Exp $
-// Copyright: (c) 2011 Vadim Zeitlin <vadim@wxwidgets.org>
-// Licence: wxWindows licence
-///////////////////////////////////////////////////////////////////////////////
-
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
-// for compilers that support precompilation, includes "wx.h".
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
- #pragma hdrstop
-#endif
-
-#ifndef WX_PRECOMP
- #include "wx/dc.h"
- #include "wx/panel.h"
-#endif // WX_PRECOMP
-
-#ifdef wxHAS_GENERIC_PANEL
-
-// ============================================================================
-// implementation
-// ============================================================================
-
-void wxPanel::DoSetBackgroundBitmap(const wxBitmap& bmp)
-{
- m_bitmapBg = bmp;
-
- if ( m_bitmapBg.IsOk() )
- {
- Connect(wxEVT_ERASE_BACKGROUND,
- wxEraseEventHandler(wxPanel::OnEraseBackground));
- }
- else
- {
- Disconnect(wxEVT_ERASE_BACKGROUND,
- wxEraseEventHandler(wxPanel::OnEraseBackground));
- }
-}
-
-void wxPanel::OnEraseBackground(wxEraseEvent& event)
-{
- wxDC& dc = *event.GetDC();
-
- const wxSize clientSize = GetClientSize();
- const wxSize bitmapSize = m_bitmapBg.GetSize();
-
- for ( int x = 0; x < clientSize.x; x += bitmapSize.x )
- {
- for ( int y = 0; y < clientSize.y; y += bitmapSize.y )
- {
- dc.DrawBitmap(m_bitmapBg, x, y);
- }
- }
-}
-
-#endif // wxHAS_GENERIC_PANEL
#endif
#ifndef WX_PRECOMP
- #include "wx/bitmap.h"
- #include "wx/brush.h"
#include "wx/panel.h"
#endif // WX_PRECOMP
// implementation
// ============================================================================
-wxPanel::~wxPanel()
-{
- delete m_backgroundBrush;
-}
-
bool wxPanel::HasTransparentBackground()
{
for ( wxWindow *win = GetParent(); win; win = win->GetParent() )
return false;
}
-void wxPanel::DoSetBackgroundBitmap(const wxBitmap& bmp)
-{
- delete m_backgroundBrush;
- m_backgroundBrush = bmp.IsOk() ? new wxBrush(bmp) : NULL;
-
- // Our transparent children should use our background if we have it,
- // otherwise try to restore m_inheritBgCol to some reasonable value: true
- // if we also have non-default background colour or false otherwise.
- m_inheritBgCol = bmp.IsOk() || UseBgCol();
-}
-
-WXHBRUSH wxPanel::MSWGetCustomBgBrush()
-{
- if ( m_backgroundBrush )
- return (WXHBRUSH)m_backgroundBrush->GetResourceHandle();
-
- return wxPanelBase::MSWGetCustomBgBrush();
-}