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
$(OBJS)\monodll_listbkg.obj \\r
$(OBJS)\monodll_logg.obj \\r
$(OBJS)\monodll_markuptext.obj \
- $(OBJS)\monodll_msgdlgg.obj \\r
- $(OBJS)\monodll_numdlgg.obj \\r
- $(OBJS)\monodll_progdlgg.obj \\r
- $(OBJS)\monodll_printps.obj \\r
- $(OBJS)\monodll_renderg.obj \\r
+ $(OBJS)\monodll_msgdlgg.obj \
+ $(OBJS)\monodll_numdlgg.obj \
+ $(OBJS)\monodll_panelg.obj \
+ $(OBJS)\monodll_progdlgg.obj \
+ $(OBJS)\monodll_printps.obj \
+ $(OBJS)\monodll_renderg.obj \
$(OBJS)\monodll_richmsgdlgg.obj \\r
$(OBJS)\monodll_scrlwing.obj \\r
$(OBJS)\monodll_selstore.obj \\r
$(OBJS)\monodll_listbkg.obj \\r
$(OBJS)\monodll_logg.obj \\r
$(OBJS)\monodll_markuptext.obj \
- $(OBJS)\monodll_msgdlgg.obj \\r
- $(OBJS)\monodll_numdlgg.obj \\r
- $(OBJS)\monodll_progdlgg.obj \\r
- $(OBJS)\monodll_printps.obj \\r
- $(OBJS)\monodll_renderg.obj \\r
+ $(OBJS)\monodll_msgdlgg.obj \
+ $(OBJS)\monodll_numdlgg.obj \
+ $(OBJS)\monodll_panelg.obj \
+ $(OBJS)\monodll_progdlgg.obj \
+ $(OBJS)\monodll_printps.obj \
+ $(OBJS)\monodll_renderg.obj \
$(OBJS)\monodll_richmsgdlgg.obj \\r
$(OBJS)\monodll_scrlwing.obj \\r
$(OBJS)\monodll_selstore.obj \\r
$(OBJS)\monolib_listbkg.obj \\r
$(OBJS)\monolib_logg.obj \\r
$(OBJS)\monolib_markuptext.obj \
- $(OBJS)\monolib_msgdlgg.obj \\r
- $(OBJS)\monolib_numdlgg.obj \\r
- $(OBJS)\monolib_progdlgg.obj \\r
- $(OBJS)\monolib_printps.obj \\r
- $(OBJS)\monolib_renderg.obj \\r
+ $(OBJS)\monolib_msgdlgg.obj \
+ $(OBJS)\monolib_numdlgg.obj \
+ $(OBJS)\monolib_panelg.obj \
+ $(OBJS)\monolib_progdlgg.obj \
+ $(OBJS)\monolib_printps.obj \
+ $(OBJS)\monolib_renderg.obj \
$(OBJS)\monolib_richmsgdlgg.obj \\r
$(OBJS)\monolib_scrlwing.obj \\r
$(OBJS)\monolib_selstore.obj \\r
$(OBJS)\monolib_listbkg.obj \\r
$(OBJS)\monolib_logg.obj \\r
$(OBJS)\monolib_markuptext.obj \
- $(OBJS)\monolib_msgdlgg.obj \\r
- $(OBJS)\monolib_numdlgg.obj \\r
- $(OBJS)\monolib_progdlgg.obj \\r
- $(OBJS)\monolib_printps.obj \\r
- $(OBJS)\monolib_renderg.obj \\r
+ $(OBJS)\monolib_msgdlgg.obj \
+ $(OBJS)\monolib_numdlgg.obj \
+ $(OBJS)\monolib_panelg.obj \
+ $(OBJS)\monolib_progdlgg.obj \
+ $(OBJS)\monolib_printps.obj \
+ $(OBJS)\monolib_renderg.obj \
$(OBJS)\monolib_richmsgdlgg.obj \\r
$(OBJS)\monolib_scrlwing.obj \\r
$(OBJS)\monolib_selstore.obj \\r
$(OBJS)\coredll_listbkg.obj \\r
$(OBJS)\coredll_logg.obj \\r
$(OBJS)\coredll_markuptext.obj \
- $(OBJS)\coredll_msgdlgg.obj \\r
- $(OBJS)\coredll_numdlgg.obj \\r
- $(OBJS)\coredll_progdlgg.obj \\r
- $(OBJS)\coredll_printps.obj \\r
- $(OBJS)\coredll_renderg.obj \\r
+ $(OBJS)\coredll_msgdlgg.obj \
+ $(OBJS)\coredll_numdlgg.obj \
+ $(OBJS)\coredll_panelg.obj \
+ $(OBJS)\coredll_progdlgg.obj \
+ $(OBJS)\coredll_printps.obj \
+ $(OBJS)\coredll_renderg.obj \
$(OBJS)\coredll_richmsgdlgg.obj \\r
$(OBJS)\coredll_scrlwing.obj \\r
$(OBJS)\coredll_selstore.obj \\r
$(OBJS)\coredll_listbkg.obj \\r
$(OBJS)\coredll_logg.obj \\r
$(OBJS)\coredll_markuptext.obj \
- $(OBJS)\coredll_msgdlgg.obj \\r
- $(OBJS)\coredll_numdlgg.obj \\r
- $(OBJS)\coredll_progdlgg.obj \\r
- $(OBJS)\coredll_printps.obj \\r
- $(OBJS)\coredll_renderg.obj \\r
+ $(OBJS)\coredll_msgdlgg.obj \
+ $(OBJS)\coredll_numdlgg.obj \
+ $(OBJS)\coredll_panelg.obj \
+ $(OBJS)\coredll_progdlgg.obj \
+ $(OBJS)\coredll_printps.obj \
+ $(OBJS)\coredll_renderg.obj \
$(OBJS)\coredll_richmsgdlgg.obj \\r
$(OBJS)\coredll_scrlwing.obj \\r
$(OBJS)\coredll_selstore.obj \\r
$(OBJS)\corelib_listbkg.obj \\r
$(OBJS)\corelib_logg.obj \\r
$(OBJS)\corelib_markuptext.obj \
- $(OBJS)\corelib_msgdlgg.obj \\r
- $(OBJS)\corelib_numdlgg.obj \\r
- $(OBJS)\corelib_progdlgg.obj \\r
- $(OBJS)\corelib_printps.obj \\r
- $(OBJS)\corelib_renderg.obj \\r
+ $(OBJS)\corelib_msgdlgg.obj \
+ $(OBJS)\corelib_numdlgg.obj \
+ $(OBJS)\corelib_panelg.obj \
+ $(OBJS)\corelib_progdlgg.obj \
+ $(OBJS)\corelib_printps.obj \
+ $(OBJS)\corelib_renderg.obj \
$(OBJS)\corelib_richmsgdlgg.obj \\r
$(OBJS)\corelib_scrlwing.obj \\r
$(OBJS)\corelib_selstore.obj \\r
$(OBJS)\corelib_listbkg.obj \\r
$(OBJS)\corelib_logg.obj \\r
$(OBJS)\corelib_markuptext.obj \
- $(OBJS)\corelib_msgdlgg.obj \\r
- $(OBJS)\corelib_numdlgg.obj \\r
- $(OBJS)\corelib_progdlgg.obj \\r
- $(OBJS)\corelib_printps.obj \\r
- $(OBJS)\corelib_renderg.obj \\r
+ $(OBJS)\corelib_msgdlgg.obj \
+ $(OBJS)\corelib_numdlgg.obj \
+ $(OBJS)\corelib_panelg.obj \
+ $(OBJS)\corelib_progdlgg.obj \
+ $(OBJS)\corelib_printps.obj \
+ $(OBJS)\corelib_renderg.obj \
$(OBJS)\corelib_richmsgdlgg.obj \\r
$(OBJS)\corelib_scrlwing.obj \\r
$(OBJS)\corelib_selstore.obj \\r
!endif\r
\r
!if "$(USE_GUI)" == "1"\r
+$(OBJS)\monodll_panelg.obj: ..\..\src\generic\panelg.cpp
+ $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\panelg.cpp
+!endif
+
+!if "$(USE_GUI)" == "1"
$(OBJS)\monodll_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
!endif\r
!endif\r
\r
!if "$(USE_GUI)" == "1"\r
+$(OBJS)\monolib_panelg.obj: ..\..\src\generic\panelg.cpp
+ $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\panelg.cpp
+!endif
+
+!if "$(USE_GUI)" == "1"
$(OBJS)\monolib_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
!endif\r
!endif\r
\r
!if "$(USE_GUI)" == "1"\r
+$(OBJS)\coredll_panelg.obj: ..\..\src\generic\panelg.cpp
+ $(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\panelg.cpp
+!endif
+
+!if "$(USE_GUI)" == "1"
$(OBJS)\coredll_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
!endif\r
!endif\r
\r
!if "$(USE_GUI)" == "1"\r
+$(OBJS)\corelib_panelg.obj: ..\..\src\generic\panelg.cpp
+ $(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\panelg.cpp
+!endif
+
+!if "$(USE_GUI)" == "1"
$(OBJS)\corelib_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
!endif\r
$(OBJS)\monodll_listbkg.o \\r
$(OBJS)\monodll_logg.o \\r
$(OBJS)\monodll_markuptext.o \
- $(OBJS)\monodll_msgdlgg.o \\r
- $(OBJS)\monodll_numdlgg.o \\r
- $(OBJS)\monodll_progdlgg.o \\r
- $(OBJS)\monodll_printps.o \\r
- $(OBJS)\monodll_renderg.o \\r
+ $(OBJS)\monodll_msgdlgg.o \
+ $(OBJS)\monodll_numdlgg.o \
+ $(OBJS)\monodll_panelg.o \
+ $(OBJS)\monodll_progdlgg.o \
+ $(OBJS)\monodll_printps.o \
+ $(OBJS)\monodll_renderg.o \
$(OBJS)\monodll_richmsgdlgg.o \\r
$(OBJS)\monodll_scrlwing.o \\r
$(OBJS)\monodll_selstore.o \\r
$(OBJS)\monodll_listbkg.o \\r
$(OBJS)\monodll_logg.o \\r
$(OBJS)\monodll_markuptext.o \
- $(OBJS)\monodll_msgdlgg.o \\r
- $(OBJS)\monodll_numdlgg.o \\r
- $(OBJS)\monodll_progdlgg.o \\r
- $(OBJS)\monodll_printps.o \\r
- $(OBJS)\monodll_renderg.o \\r
+ $(OBJS)\monodll_msgdlgg.o \
+ $(OBJS)\monodll_numdlgg.o \
+ $(OBJS)\monodll_panelg.o \
+ $(OBJS)\monodll_progdlgg.o \
+ $(OBJS)\monodll_printps.o \
+ $(OBJS)\monodll_renderg.o \
$(OBJS)\monodll_richmsgdlgg.o \\r
$(OBJS)\monodll_scrlwing.o \\r
$(OBJS)\monodll_selstore.o \\r
$(OBJS)\monolib_listbkg.o \\r
$(OBJS)\monolib_logg.o \\r
$(OBJS)\monolib_markuptext.o \
- $(OBJS)\monolib_msgdlgg.o \\r
- $(OBJS)\monolib_numdlgg.o \\r
- $(OBJS)\monolib_progdlgg.o \\r
- $(OBJS)\monolib_printps.o \\r
- $(OBJS)\monolib_renderg.o \\r
+ $(OBJS)\monolib_msgdlgg.o \
+ $(OBJS)\monolib_numdlgg.o \
+ $(OBJS)\monolib_panelg.o \
+ $(OBJS)\monolib_progdlgg.o \
+ $(OBJS)\monolib_printps.o \
+ $(OBJS)\monolib_renderg.o \
$(OBJS)\monolib_richmsgdlgg.o \\r
$(OBJS)\monolib_scrlwing.o \\r
$(OBJS)\monolib_selstore.o \\r
$(OBJS)\monolib_listbkg.o \\r
$(OBJS)\monolib_logg.o \\r
$(OBJS)\monolib_markuptext.o \
- $(OBJS)\monolib_msgdlgg.o \\r
- $(OBJS)\monolib_numdlgg.o \\r
- $(OBJS)\monolib_progdlgg.o \\r
- $(OBJS)\monolib_printps.o \\r
- $(OBJS)\monolib_renderg.o \\r
+ $(OBJS)\monolib_msgdlgg.o \
+ $(OBJS)\monolib_numdlgg.o \
+ $(OBJS)\monolib_panelg.o \
+ $(OBJS)\monolib_progdlgg.o \
+ $(OBJS)\monolib_printps.o \
+ $(OBJS)\monolib_renderg.o \
$(OBJS)\monolib_richmsgdlgg.o \\r
$(OBJS)\monolib_scrlwing.o \\r
$(OBJS)\monolib_selstore.o \\r
$(OBJS)\coredll_listbkg.o \\r
$(OBJS)\coredll_logg.o \\r
$(OBJS)\coredll_markuptext.o \
- $(OBJS)\coredll_msgdlgg.o \\r
- $(OBJS)\coredll_numdlgg.o \\r
- $(OBJS)\coredll_progdlgg.o \\r
- $(OBJS)\coredll_printps.o \\r
- $(OBJS)\coredll_renderg.o \\r
+ $(OBJS)\coredll_msgdlgg.o \
+ $(OBJS)\coredll_numdlgg.o \
+ $(OBJS)\coredll_panelg.o \
+ $(OBJS)\coredll_progdlgg.o \
+ $(OBJS)\coredll_printps.o \
+ $(OBJS)\coredll_renderg.o \
$(OBJS)\coredll_richmsgdlgg.o \\r
$(OBJS)\coredll_scrlwing.o \\r
$(OBJS)\coredll_selstore.o \\r
$(OBJS)\coredll_listbkg.o \\r
$(OBJS)\coredll_logg.o \\r
$(OBJS)\coredll_markuptext.o \
- $(OBJS)\coredll_msgdlgg.o \\r
- $(OBJS)\coredll_numdlgg.o \\r
- $(OBJS)\coredll_progdlgg.o \\r
- $(OBJS)\coredll_printps.o \\r
- $(OBJS)\coredll_renderg.o \\r
+ $(OBJS)\coredll_msgdlgg.o \
+ $(OBJS)\coredll_numdlgg.o \
+ $(OBJS)\coredll_panelg.o \
+ $(OBJS)\coredll_progdlgg.o \
+ $(OBJS)\coredll_printps.o \
+ $(OBJS)\coredll_renderg.o \
$(OBJS)\coredll_richmsgdlgg.o \\r
$(OBJS)\coredll_scrlwing.o \\r
$(OBJS)\coredll_selstore.o \\r
$(OBJS)\corelib_listbkg.o \\r
$(OBJS)\corelib_logg.o \\r
$(OBJS)\corelib_markuptext.o \
- $(OBJS)\corelib_msgdlgg.o \\r
- $(OBJS)\corelib_numdlgg.o \\r
- $(OBJS)\corelib_progdlgg.o \\r
- $(OBJS)\corelib_printps.o \\r
- $(OBJS)\corelib_renderg.o \\r
+ $(OBJS)\corelib_msgdlgg.o \
+ $(OBJS)\corelib_numdlgg.o \
+ $(OBJS)\corelib_panelg.o \
+ $(OBJS)\corelib_progdlgg.o \
+ $(OBJS)\corelib_printps.o \
+ $(OBJS)\corelib_renderg.o \
$(OBJS)\corelib_richmsgdlgg.o \\r
$(OBJS)\corelib_scrlwing.o \\r
$(OBJS)\corelib_selstore.o \\r
$(OBJS)\corelib_listbkg.o \\r
$(OBJS)\corelib_logg.o \\r
$(OBJS)\corelib_markuptext.o \
- $(OBJS)\corelib_msgdlgg.o \\r
- $(OBJS)\corelib_numdlgg.o \\r
- $(OBJS)\corelib_progdlgg.o \\r
- $(OBJS)\corelib_printps.o \\r
- $(OBJS)\corelib_renderg.o \\r
+ $(OBJS)\corelib_msgdlgg.o \
+ $(OBJS)\corelib_numdlgg.o \
+ $(OBJS)\corelib_panelg.o \
+ $(OBJS)\corelib_progdlgg.o \
+ $(OBJS)\corelib_printps.o \
+ $(OBJS)\corelib_renderg.o \
$(OBJS)\corelib_richmsgdlgg.o \\r
$(OBJS)\corelib_scrlwing.o \\r
$(OBJS)\corelib_selstore.o \\r
endif\r
\r
ifeq ($(USE_GUI),1)\r
+$(OBJS)\monodll_panelg.o: ../../src/generic/panelg.cpp
+ $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<
+endif
+
+ifeq ($(USE_GUI),1)
$(OBJS)\monodll_progdlgg.o: ../../src/generic/progdlgg.cpp\r
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
endif\r
\r
ifeq ($(USE_GUI),1)\r
+$(OBJS)\monolib_panelg.o: ../../src/generic/panelg.cpp
+ $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<
+endif
+
+ifeq ($(USE_GUI),1)
$(OBJS)\monolib_progdlgg.o: ../../src/generic/progdlgg.cpp\r
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
endif\r
\r
ifeq ($(USE_GUI),1)\r
+$(OBJS)\coredll_panelg.o: ../../src/generic/panelg.cpp
+ $(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $(CPPDEPS) $<
+endif
+
+ifeq ($(USE_GUI),1)
$(OBJS)\coredll_progdlgg.o: ../../src/generic/progdlgg.cpp\r
$(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
endif\r
\r
ifeq ($(USE_GUI),1)\r
+$(OBJS)\corelib_panelg.o: ../../src/generic/panelg.cpp
+ $(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $(CPPDEPS) $<
+endif
+
+ifeq ($(USE_GUI),1)
$(OBJS)\corelib_progdlgg.o: ../../src/generic/progdlgg.cpp\r
$(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
$(OBJS)\monodll_listbkg.obj \\r
$(OBJS)\monodll_logg.obj \\r
$(OBJS)\monodll_markuptext.obj \
- $(OBJS)\monodll_msgdlgg.obj \\r
- $(OBJS)\monodll_numdlgg.obj \\r
- $(OBJS)\monodll_progdlgg.obj \\r
- $(OBJS)\monodll_printps.obj \\r
- $(OBJS)\monodll_renderg.obj \\r
+ $(OBJS)\monodll_msgdlgg.obj \
+ $(OBJS)\monodll_numdlgg.obj \
+ $(OBJS)\monodll_panelg.obj \
+ $(OBJS)\monodll_progdlgg.obj \
+ $(OBJS)\monodll_printps.obj \
+ $(OBJS)\monodll_renderg.obj \
$(OBJS)\monodll_richmsgdlgg.obj \\r
$(OBJS)\monodll_scrlwing.obj \\r
$(OBJS)\monodll_selstore.obj \\r
$(OBJS)\monodll_listbkg.obj \\r
$(OBJS)\monodll_logg.obj \\r
$(OBJS)\monodll_markuptext.obj \
- $(OBJS)\monodll_msgdlgg.obj \\r
- $(OBJS)\monodll_numdlgg.obj \\r
- $(OBJS)\monodll_progdlgg.obj \\r
- $(OBJS)\monodll_printps.obj \\r
- $(OBJS)\monodll_renderg.obj \\r
+ $(OBJS)\monodll_msgdlgg.obj \
+ $(OBJS)\monodll_numdlgg.obj \
+ $(OBJS)\monodll_panelg.obj \
+ $(OBJS)\monodll_progdlgg.obj \
+ $(OBJS)\monodll_printps.obj \
+ $(OBJS)\monodll_renderg.obj \
$(OBJS)\monodll_richmsgdlgg.obj \\r
$(OBJS)\monodll_scrlwing.obj \\r
$(OBJS)\monodll_selstore.obj \\r
$(OBJS)\monolib_listbkg.obj \\r
$(OBJS)\monolib_logg.obj \\r
$(OBJS)\monolib_markuptext.obj \
- $(OBJS)\monolib_msgdlgg.obj \\r
- $(OBJS)\monolib_numdlgg.obj \\r
- $(OBJS)\monolib_progdlgg.obj \\r
- $(OBJS)\monolib_printps.obj \\r
- $(OBJS)\monolib_renderg.obj \\r
+ $(OBJS)\monolib_msgdlgg.obj \
+ $(OBJS)\monolib_numdlgg.obj \
+ $(OBJS)\monolib_panelg.obj \
+ $(OBJS)\monolib_progdlgg.obj \
+ $(OBJS)\monolib_printps.obj \
+ $(OBJS)\monolib_renderg.obj \
$(OBJS)\monolib_richmsgdlgg.obj \\r
$(OBJS)\monolib_scrlwing.obj \\r
$(OBJS)\monolib_selstore.obj \\r
$(OBJS)\monolib_listbkg.obj \\r
$(OBJS)\monolib_logg.obj \\r
$(OBJS)\monolib_markuptext.obj \
- $(OBJS)\monolib_msgdlgg.obj \\r
- $(OBJS)\monolib_numdlgg.obj \\r
- $(OBJS)\monolib_progdlgg.obj \\r
- $(OBJS)\monolib_printps.obj \\r
- $(OBJS)\monolib_renderg.obj \\r
+ $(OBJS)\monolib_msgdlgg.obj \
+ $(OBJS)\monolib_numdlgg.obj \
+ $(OBJS)\monolib_panelg.obj \
+ $(OBJS)\monolib_progdlgg.obj \
+ $(OBJS)\monolib_printps.obj \
+ $(OBJS)\monolib_renderg.obj \
$(OBJS)\monolib_richmsgdlgg.obj \\r
$(OBJS)\monolib_scrlwing.obj \\r
$(OBJS)\monolib_selstore.obj \\r
$(OBJS)\coredll_listbkg.obj \\r
$(OBJS)\coredll_logg.obj \\r
$(OBJS)\coredll_markuptext.obj \
- $(OBJS)\coredll_msgdlgg.obj \\r
- $(OBJS)\coredll_numdlgg.obj \\r
- $(OBJS)\coredll_progdlgg.obj \\r
- $(OBJS)\coredll_printps.obj \\r
- $(OBJS)\coredll_renderg.obj \\r
+ $(OBJS)\coredll_msgdlgg.obj \
+ $(OBJS)\coredll_numdlgg.obj \
+ $(OBJS)\coredll_panelg.obj \
+ $(OBJS)\coredll_progdlgg.obj \
+ $(OBJS)\coredll_printps.obj \
+ $(OBJS)\coredll_renderg.obj \
$(OBJS)\coredll_richmsgdlgg.obj \\r
$(OBJS)\coredll_scrlwing.obj \\r
$(OBJS)\coredll_selstore.obj \\r
$(OBJS)\coredll_listbkg.obj \\r
$(OBJS)\coredll_logg.obj \\r
$(OBJS)\coredll_markuptext.obj \
- $(OBJS)\coredll_msgdlgg.obj \\r
- $(OBJS)\coredll_numdlgg.obj \\r
- $(OBJS)\coredll_progdlgg.obj \\r
- $(OBJS)\coredll_printps.obj \\r
- $(OBJS)\coredll_renderg.obj \\r
+ $(OBJS)\coredll_msgdlgg.obj \
+ $(OBJS)\coredll_numdlgg.obj \
+ $(OBJS)\coredll_panelg.obj \
+ $(OBJS)\coredll_progdlgg.obj \
+ $(OBJS)\coredll_printps.obj \
+ $(OBJS)\coredll_renderg.obj \
$(OBJS)\coredll_richmsgdlgg.obj \\r
$(OBJS)\coredll_scrlwing.obj \\r
$(OBJS)\coredll_selstore.obj \\r
$(OBJS)\corelib_listbkg.obj \\r
$(OBJS)\corelib_logg.obj \\r
$(OBJS)\corelib_markuptext.obj \
- $(OBJS)\corelib_msgdlgg.obj \\r
- $(OBJS)\corelib_numdlgg.obj \\r
- $(OBJS)\corelib_progdlgg.obj \\r
- $(OBJS)\corelib_printps.obj \\r
- $(OBJS)\corelib_renderg.obj \\r
+ $(OBJS)\corelib_msgdlgg.obj \
+ $(OBJS)\corelib_numdlgg.obj \
+ $(OBJS)\corelib_panelg.obj \
+ $(OBJS)\corelib_progdlgg.obj \
+ $(OBJS)\corelib_printps.obj \
+ $(OBJS)\corelib_renderg.obj \
$(OBJS)\corelib_richmsgdlgg.obj \\r
$(OBJS)\corelib_scrlwing.obj \\r
$(OBJS)\corelib_selstore.obj \\r
$(OBJS)\corelib_listbkg.obj \\r
$(OBJS)\corelib_logg.obj \\r
$(OBJS)\corelib_markuptext.obj \
- $(OBJS)\corelib_msgdlgg.obj \\r
- $(OBJS)\corelib_numdlgg.obj \\r
- $(OBJS)\corelib_progdlgg.obj \\r
- $(OBJS)\corelib_printps.obj \\r
- $(OBJS)\corelib_renderg.obj \\r
+ $(OBJS)\corelib_msgdlgg.obj \
+ $(OBJS)\corelib_numdlgg.obj \
+ $(OBJS)\corelib_panelg.obj \
+ $(OBJS)\corelib_progdlgg.obj \
+ $(OBJS)\corelib_printps.obj \
+ $(OBJS)\corelib_renderg.obj \
$(OBJS)\corelib_richmsgdlgg.obj \\r
$(OBJS)\corelib_scrlwing.obj \\r
$(OBJS)\corelib_selstore.obj \\r
!endif\r
\r
!if "$(USE_GUI)" == "1"\r
+$(OBJS)\monodll_panelg.obj: ..\..\src\generic\panelg.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\panelg.cpp
+!endif
+
+!if "$(USE_GUI)" == "1"
$(OBJS)\monodll_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
!endif\r
!endif\r
\r
!if "$(USE_GUI)" == "1"\r
+$(OBJS)\monolib_panelg.obj: ..\..\src\generic\panelg.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\panelg.cpp
+!endif
+
+!if "$(USE_GUI)" == "1"
$(OBJS)\monolib_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
!endif\r
!endif\r
\r
!if "$(USE_GUI)" == "1"\r
+$(OBJS)\coredll_panelg.obj: ..\..\src\generic\panelg.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\panelg.cpp
+!endif
+
+!if "$(USE_GUI)" == "1"
$(OBJS)\coredll_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
!endif\r
!endif\r
\r
!if "$(USE_GUI)" == "1"\r
+$(OBJS)\corelib_panelg.obj: ..\..\src\generic\panelg.cpp
+ $(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\panelg.cpp
+!endif
+
+!if "$(USE_GUI)" == "1"
$(OBJS)\corelib_progdlgg.obj: ..\..\src\generic\progdlgg.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) ..\..\src\generic\progdlgg.cpp\r
!endif\r
$(OBJS)\monodll_listbkg.obj &\r
$(OBJS)\monodll_logg.obj &\r
$(OBJS)\monodll_markuptext.obj &
- $(OBJS)\monodll_msgdlgg.obj &\r
- $(OBJS)\monodll_numdlgg.obj &\r
- $(OBJS)\monodll_progdlgg.obj &\r
- $(OBJS)\monodll_printps.obj &\r
- $(OBJS)\monodll_renderg.obj &\r
+ $(OBJS)\monodll_msgdlgg.obj &
+ $(OBJS)\monodll_numdlgg.obj &
+ $(OBJS)\monodll_panelg.obj &
+ $(OBJS)\monodll_progdlgg.obj &
+ $(OBJS)\monodll_printps.obj &
+ $(OBJS)\monodll_renderg.obj &
$(OBJS)\monodll_richmsgdlgg.obj &\r
$(OBJS)\monodll_scrlwing.obj &\r
$(OBJS)\monodll_selstore.obj &\r
$(OBJS)\monodll_listbkg.obj &\r
$(OBJS)\monodll_logg.obj &\r
$(OBJS)\monodll_markuptext.obj &
- $(OBJS)\monodll_msgdlgg.obj &\r
- $(OBJS)\monodll_numdlgg.obj &\r
- $(OBJS)\monodll_progdlgg.obj &\r
- $(OBJS)\monodll_printps.obj &\r
- $(OBJS)\monodll_renderg.obj &\r
+ $(OBJS)\monodll_msgdlgg.obj &
+ $(OBJS)\monodll_numdlgg.obj &
+ $(OBJS)\monodll_panelg.obj &
+ $(OBJS)\monodll_progdlgg.obj &
+ $(OBJS)\monodll_printps.obj &
+ $(OBJS)\monodll_renderg.obj &
$(OBJS)\monodll_richmsgdlgg.obj &\r
$(OBJS)\monodll_scrlwing.obj &\r
$(OBJS)\monodll_selstore.obj &\r
$(OBJS)\monolib_listbkg.obj &\r
$(OBJS)\monolib_logg.obj &\r
$(OBJS)\monolib_markuptext.obj &
- $(OBJS)\monolib_msgdlgg.obj &\r
- $(OBJS)\monolib_numdlgg.obj &\r
- $(OBJS)\monolib_progdlgg.obj &\r
- $(OBJS)\monolib_printps.obj &\r
- $(OBJS)\monolib_renderg.obj &\r
+ $(OBJS)\monolib_msgdlgg.obj &
+ $(OBJS)\monolib_numdlgg.obj &
+ $(OBJS)\monolib_panelg.obj &
+ $(OBJS)\monolib_progdlgg.obj &
+ $(OBJS)\monolib_printps.obj &
+ $(OBJS)\monolib_renderg.obj &
$(OBJS)\monolib_richmsgdlgg.obj &\r
$(OBJS)\monolib_scrlwing.obj &\r
$(OBJS)\monolib_selstore.obj &\r
$(OBJS)\monolib_listbkg.obj &\r
$(OBJS)\monolib_logg.obj &\r
$(OBJS)\monolib_markuptext.obj &
- $(OBJS)\monolib_msgdlgg.obj &\r
- $(OBJS)\monolib_numdlgg.obj &\r
- $(OBJS)\monolib_progdlgg.obj &\r
- $(OBJS)\monolib_printps.obj &\r
- $(OBJS)\monolib_renderg.obj &\r
+ $(OBJS)\monolib_msgdlgg.obj &
+ $(OBJS)\monolib_numdlgg.obj &
+ $(OBJS)\monolib_panelg.obj &
+ $(OBJS)\monolib_progdlgg.obj &
+ $(OBJS)\monolib_printps.obj &
+ $(OBJS)\monolib_renderg.obj &
$(OBJS)\monolib_richmsgdlgg.obj &\r
$(OBJS)\monolib_scrlwing.obj &\r
$(OBJS)\monolib_selstore.obj &\r
$(OBJS)\coredll_listbkg.obj &\r
$(OBJS)\coredll_logg.obj &\r
$(OBJS)\coredll_markuptext.obj &
- $(OBJS)\coredll_msgdlgg.obj &\r
- $(OBJS)\coredll_numdlgg.obj &\r
- $(OBJS)\coredll_progdlgg.obj &\r
- $(OBJS)\coredll_printps.obj &\r
- $(OBJS)\coredll_renderg.obj &\r
+ $(OBJS)\coredll_msgdlgg.obj &
+ $(OBJS)\coredll_numdlgg.obj &
+ $(OBJS)\coredll_panelg.obj &
+ $(OBJS)\coredll_progdlgg.obj &
+ $(OBJS)\coredll_printps.obj &
+ $(OBJS)\coredll_renderg.obj &
$(OBJS)\coredll_richmsgdlgg.obj &\r
$(OBJS)\coredll_scrlwing.obj &\r
$(OBJS)\coredll_selstore.obj &\r
$(OBJS)\coredll_listbkg.obj &\r
$(OBJS)\coredll_logg.obj &\r
$(OBJS)\coredll_markuptext.obj &
- $(OBJS)\coredll_msgdlgg.obj &\r
- $(OBJS)\coredll_numdlgg.obj &\r
- $(OBJS)\coredll_progdlgg.obj &\r
- $(OBJS)\coredll_printps.obj &\r
- $(OBJS)\coredll_renderg.obj &\r
+ $(OBJS)\coredll_msgdlgg.obj &
+ $(OBJS)\coredll_numdlgg.obj &
+ $(OBJS)\coredll_panelg.obj &
+ $(OBJS)\coredll_progdlgg.obj &
+ $(OBJS)\coredll_printps.obj &
+ $(OBJS)\coredll_renderg.obj &
$(OBJS)\coredll_richmsgdlgg.obj &\r
$(OBJS)\coredll_scrlwing.obj &\r
$(OBJS)\coredll_selstore.obj &\r
$(OBJS)\corelib_listbkg.obj &\r
$(OBJS)\corelib_logg.obj &\r
$(OBJS)\corelib_markuptext.obj &
- $(OBJS)\corelib_msgdlgg.obj &\r
- $(OBJS)\corelib_numdlgg.obj &\r
- $(OBJS)\corelib_progdlgg.obj &\r
- $(OBJS)\corelib_printps.obj &\r
- $(OBJS)\corelib_renderg.obj &\r
+ $(OBJS)\corelib_msgdlgg.obj &
+ $(OBJS)\corelib_numdlgg.obj &
+ $(OBJS)\corelib_panelg.obj &
+ $(OBJS)\corelib_progdlgg.obj &
+ $(OBJS)\corelib_printps.obj &
+ $(OBJS)\corelib_renderg.obj &
$(OBJS)\corelib_richmsgdlgg.obj &\r
$(OBJS)\corelib_scrlwing.obj &\r
$(OBJS)\corelib_selstore.obj &\r
$(OBJS)\corelib_listbkg.obj &\r
$(OBJS)\corelib_logg.obj &\r
$(OBJS)\corelib_markuptext.obj &
- $(OBJS)\corelib_msgdlgg.obj &\r
- $(OBJS)\corelib_numdlgg.obj &\r
- $(OBJS)\corelib_progdlgg.obj &\r
- $(OBJS)\corelib_printps.obj &\r
- $(OBJS)\corelib_renderg.obj &\r
+ $(OBJS)\corelib_msgdlgg.obj &
+ $(OBJS)\corelib_numdlgg.obj &
+ $(OBJS)\corelib_panelg.obj &
+ $(OBJS)\corelib_progdlgg.obj &
+ $(OBJS)\corelib_printps.obj &
+ $(OBJS)\corelib_renderg.obj &
$(OBJS)\corelib_richmsgdlgg.obj &\r
$(OBJS)\corelib_scrlwing.obj &\r
$(OBJS)\corelib_selstore.obj &\r
!endif\r
\r
!ifeq USE_GUI 1\r
+$(OBJS)\monodll_panelg.obj : .AUTODEPEND ..\..\src\generic\panelg.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<
+!endif
+
+!ifeq USE_GUI 1
$(OBJS)\monodll_progdlgg.obj : .AUTODEPEND ..\..\src\generic\progdlgg.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
!endif\r
!endif\r
\r
!ifeq USE_GUI 1\r
+$(OBJS)\monolib_panelg.obj : .AUTODEPEND ..\..\src\generic\panelg.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<
+!endif
+
+!ifeq USE_GUI 1
$(OBJS)\monolib_progdlgg.obj : .AUTODEPEND ..\..\src\generic\progdlgg.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
!endif\r
!endif\r
\r
!ifeq USE_GUI 1\r
+$(OBJS)\coredll_panelg.obj : .AUTODEPEND ..\..\src\generic\panelg.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<
+!endif
+
+!ifeq USE_GUI 1
$(OBJS)\coredll_progdlgg.obj : .AUTODEPEND ..\..\src\generic\progdlgg.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<\r
!endif\r
!endif\r
\r
!ifeq USE_GUI 1\r
+$(OBJS)\corelib_panelg.obj : .AUTODEPEND ..\..\src\generic\panelg.cpp
+ $(CXX) -bt=nt -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<
+!endif
+
+!ifeq USE_GUI 1
$(OBJS)\corelib_progdlgg.obj : .AUTODEPEND ..\..\src\generic\progdlgg.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<\r
!endif\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\src\generic\panelg.cpp
+# End Source File
+# Begin Source File
+
SOURCE=..\..\src\generic\printps.cpp\r
# End Source File\r
# Begin Source File\r
RelativePath="..\..\src\generic\numdlgg.cpp">\r
</File>\r
<File\r
+ RelativePath="..\..\src\generic\panelg.cpp">
+ </File>
+ <File
RelativePath="..\..\src\generic\printps.cpp">\r
</File>\r
<File\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\src\generic\panelg.cpp"
+ >
+ </File>
+ <File
RelativePath="..\..\src\generic\printps.cpp"\r
>\r
</File>\r
>\r
</File>\r
<File\r
+ RelativePath="..\..\src\generic\panelg.cpp"
+ >
+ </File>
+ <File
RelativePath="..\..\src\generic\printps.cpp"\r
>\r
</File>\r
- Added wxUIActionSimulator (Steven Lamerton, GSoC 2010 project).
- wxAUI: support auto-orientable toolbars (wsu).
- wxAUI: add support for icons in pane title bars (triton).
+- Added wxPanel::SetBackgroundBitmap().
- Added wxDataViewCtrl::Set/GetCurrentItem().
- Added possibility to disable individual wxDataViewCtrl items (Neno Ganchev).
- wxHTML: render in RTL order inside RTL window (Richard Bullington-McGuire).
#ifndef _WX_GENERIC_PANELG_H_
#define _WX_GENERIC_PANELG_H_
+#include "wx/bitmap.h"
+
class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
{
public:
)
#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);
};
#ifndef _WX_MSW_PANEL_H_
#define _WX_MSW_PANEL_H_
+class WXDLLIMPEXP_FWD_CORE wxBrush;
+
// ----------------------------------------------------------------------------
// wxPanel
// ----------------------------------------------------------------------------
class WXDLLIMPEXP_CORE wxPanel : public wxPanelBase
{
public:
- wxPanel() { }
+ wxPanel() { Init(); }
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);
}
)
#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
// --------------------------
WX_DECLARE_CONTROL_CONTAINER();
+protected:
+ virtual void DoSetBackgroundBitmap(const wxBitmap& bmp) = 0;
+
private:
wxDECLARE_EVENT_TABLE();
#elif defined(__WXMSW__)
#include "wx/msw/panel.h"
#else
+ #define wxHAS_GENERIC_PANEL
#include "wx/generic/panelg.h"
#endif
)
#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);
};
*/
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().
void UseBuffer(bool useBuffer) { m_useBuffer = useBuffer; Refresh(); }
bool UsesBuffer() const { return m_useBuffer; }
+ void UseBgBitmap(bool useBgBmp)
+ {
+ m_useBgBmp = useBgBmp;
+ SetBackgroundBitmap(m_useBgBmp ? GetBgBitmap() : wxBitmap());
+
+ Refresh();
+ }
+
void EraseBgInPaint(bool erase) { m_eraseBgInPaint = erase; Refresh(); }
private:
void DoPaint(wxDC& dc);
+ // Create an easily recognizable background bitmap.
+ static wxBitmap GetBgBitmap()
+ {
+ static const int BMP_SIZE = 40;
+
+ wxBitmap bmp(BMP_SIZE, BMP_SIZE);
+ wxMemoryDC dc(bmp);
+ dc.SetBackground(*wxCYAN);
+ dc.Clear();
+
+ dc.SetPen(*wxBLUE_PEN);
+ dc.DrawLine(0, BMP_SIZE/2, BMP_SIZE/2, 0);
+ dc.DrawLine(BMP_SIZE/2, 0, BMP_SIZE, BMP_SIZE/2);
+ dc.DrawLine(BMP_SIZE, BMP_SIZE/2, BMP_SIZE/2, BMP_SIZE);
+ dc.DrawLine(BMP_SIZE/2, BMP_SIZE, 0, BMP_SIZE/2);
+
+ return bmp;
+ }
wxBitmap m_bitmap;
wxString m_text;
// use wxMemoryDC in OnPaint()?
bool m_useBuffer;
+ // use background bitmap?
+ bool m_useBgBmp;
+
// erase background in OnPaint()?
bool m_eraseBgInPaint;
private:
void OnUseBuffer(wxCommandEvent& event);
+ void OnUseBgBitmap(wxCommandEvent& event);
void OnEraseBgInPaint(wxCommandEvent& event);
void OnChangeBgStyle(wxCommandEvent& event);
void OnQuit(wxCommandEvent& event);
{
// menu items
Erase_Menu_UseBuffer = 100,
+ Erase_Menu_UseBgBitmap,
Erase_Menu_EraseBgInPaint,
Erase_Menu_BgStyleErase,
Erase_Menu_BgStyleSystem,
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(Erase_Menu_UseBuffer, MyFrame::OnUseBuffer)
+ EVT_MENU(Erase_Menu_UseBgBitmap, MyFrame::OnUseBgBitmap)
EVT_MENU(Erase_Menu_EraseBgInPaint, MyFrame::OnEraseBgInPaint)
EVT_MENU_RANGE(Erase_Menu_BgStyleErase, Erase_Menu_BgStylePaint,
MyFrame::OnChangeBgStyle)
wxMenu *menuFile = new wxMenu("", wxMENU_TEAROFF);
menuFile->AppendCheckItem(Erase_Menu_UseBuffer, "&Use memory DC\tCtrl-M");
+ menuFile->AppendCheckItem(Erase_Menu_UseBgBitmap,
+ "Use background &bitmap\tCtrl-B");
menuFile->AppendCheckItem(Erase_Menu_EraseBgInPaint,
"&Erase background in EVT_PAINT\tCtrl-R");
menuFile->AppendSeparator();
m_canvas->UseBuffer(event.IsChecked());
}
+void MyFrame::OnUseBgBitmap(wxCommandEvent& event)
+{
+ m_canvas->UseBgBitmap(event.IsChecked());
+}
+
void MyFrame::OnEraseBgInPaint(wxCommandEvent& event)
{
m_canvas->EraseBgInPaint(event.IsChecked());
: wxScrolledWindow(parent, wxID_ANY)
{
m_useBuffer = false;
+ m_useBgBmp = false;
m_eraseBgInPaint = false;
SetScrollbars( 10, 10, 40, 100, 0, 0 );
dc.DrawBitmap( m_bitmap, 20, 20, true );
- dc.SetTextForeground(*wxWHITE);
+ dc.SetTextForeground(*wxRED);
dc.DrawText("This text is drawn from OnPaint", 65, 65);
wxString tmp;
void MyCanvas::OnEraseBackground( wxEraseEvent& event )
{
+ // We must not erase the background ourselves if we asked wxPanel to erase
+ // it using a background bitmap.
+ if ( m_useBgBmp )
+ {
+ event.Skip();
+ return;
+ }
+
wxASSERT_MSG
(
GetBackgroundStyle() == wxBG_STYLE_ERASE,
--- /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
+
+#ifdef wxHAS_GENERIC_PANEL
+
+#ifndef WX_PRECOMP
+ #include "wx/dc.h"
+ #include "wx/panel.h"
+#endif // WX_PRECOMP
+
+// ============================================================================
+// 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/brush.h"
#include "wx/panel.h"
#endif // WX_PRECOMP
return false;
}
+
+void wxPanel::DoSetBackgroundBitmap(const wxBitmap& bmp)
+{
+ delete m_backgroundBrush;
+ m_backgroundBrush = bmp.IsOk() ? new wxBrush(bmp) : NULL;
+}
+
+WXHBRUSH wxPanel::MSWGetCustomBgBrush()
+{
+ if ( m_backgroundBrush )
+ return (WXHBRUSH)m_backgroundBrush->GetResourceHandle();
+
+ return wxPanelBase::MSWGetCustomBgBrush();
+}