- added docview sample, doesn't work :-(
   - changed wxBmpButton callback name


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-06-04 16:08:47 +00:00
parent 948041079c
commit 112892b918
9 changed files with 108 additions and 23 deletions

1
samples/docview/Makefile Normal file
View File

@@ -0,0 +1 @@
include ../../src/gtk/setup/general/makeapp

View File

@@ -0,0 +1,26 @@
# WXXT base directory
WXBASEDIR=@WXBASEDIR@
# set the OS type for compilation
OS=@OS@
# compile a library only
RULE=bin
# define library name
BIN_TARGET=test
# define library sources
BIN_SRC=\
doc.cpp view.cpp docview.cpp
#define library objects
BIN_OBJ=\
doc.o view.o docview.o
# additional things needed to link
BIN_LINK=
# additional things needed to compile
ADD_COMPILE=
# include the definitions now
include ../../../template.mak

View File

@@ -258,7 +258,7 @@ bool TextEditDocument::IsModified(void) const
TextEditView *view = (TextEditView *)GetFirstView();
if (view)
{
return (wxDocument::IsModified() || view->textsw->Modified());
return (wxDocument::IsModified() || view->textsw->IsModified());
}
else
return wxDocument::IsModified();