]> git.saurik.com Git - wxWidgets.git/commitdiff
Corrected grey scrolling windows; added C++Builder 3.0 fixes
authorJulian Smart <julian@anthemion.co.uk>
Fri, 8 Jan 1999 14:30:22 +0000 (14:30 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 8 Jan 1999 14:30:22 +0000 (14:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

16 files changed:
docs/motif/todo.txt
docs/msw/install.txt
docs/msw/todo.txt
include/wx/msw/checklst.h
include/wx/msw/dc.h
include/wx/msw/setup.h
include/wx/msw/textctrl.h
include/wx/msw/window.h
include/wx/object.h
include/wx/ownerdrw.h
include/wx/version.h
src/makesc.env
src/msw/makefile.sc
src/msw/textctrl.cpp
utils/ogl/samples/ogledit/view.cpp
utils/wxtree/src/test.cpp

index 63254e2da605c920b976e5e21ecb3860d6a5bff6..c319bc30dbd223c0f626dd1d825d9ab1f751c749 100644 (file)
@@ -13,8 +13,8 @@ Also, grep for TODO comments in source.
 High Priority
 -------------
 
-- Work out why XFreeFont in font.cpp produces a segv. This is
-  currently commented out, which presumably causes a memory leak.
+- Have a central/per app file for colour settings, with a wxWin
+  app to allow changing settings interactively.
 
 - Colour setting in widgets (almost done). Should scrollbars take
   on the background colour? Not right for e.g. wxScrolledWindows,
@@ -42,15 +42,12 @@ High Priority
 
 - Miscellaneous events.
 
-- Thread classes (copy wxGTK's).
-
-- Write makefiles for all samples and utilities.
-
-- Create some samples for testing.
-
 Low Priority
 ------------
 
+- Work out why XFreeFont in font.cpp produces a segv. This is
+  currently commented out, which presumably causes a memory leak.
+
 - Better makefile system that can put objects in different dirs.
 
 - Extra wxBitmap formats: PNG, BMP. Could use old wxWin 1.68
index 0cfdf3e55654f179cb411e13f74d84416733b1d0..b73681831ba16bd87fd940e4d0b539a2c9b13cad 100644 (file)
@@ -53,11 +53,15 @@ Using makefiles:
 3. Change directory to wx\samples and type 'nmake -f makefile.nt'
    to make all the samples. You can also make them individually.
 
-Notes: if you wish to use templates, please edit
+Note (1): if you wish to use templates, please edit
 include\wx\msw\setup.h and set wxUSE_DEBUG_NEW_ALWAYS to 0.
 Without this, the redefinition of 'new' will cause problems in
 the headers. Alternatively, #undef new before including template headers.
 
+Note (2): libraries and applications generated with makefiles and
+project files are unlikely to be compatible, so use one method or
+the other.
+
 Visual C++ 1.5 compilation
 --------------------------
 
@@ -91,8 +95,9 @@ Borland C++Builder compilation
 ------------------------------
 
 C++Builder compilation is the same as for Borland C++ above.
-It has only been tested with C++Builder 1.0 so far, and no
-project files are currently supplied.
+
+Tested with C++Builder 1.0 and 3.0. Only makefiles are currently
+supplied.
 
 Watcom C++ 10.6 compilation
 ---------------------------
@@ -113,6 +118,24 @@ Metrowerks CodeWarrior compilation
    Further project files for samples will be available in due
    course.
 
+Symantec C++ compilation
+------------------------
+
+1. Make sure your WXWIN variable is set, and uses the FAT (short
+   name) form.
+2. Edit setup.h and set wxUSE_DRAG_AND_DROP to 0.
+3. Change directory to wx\src\msw. Type 'make -f makefile.sc' to
+   make the wxWindows core library.
+4. Change directory to wx\samples\minimal and type 'make -f makefile.sc'
+   to make this sample.
+
+Note: the minimal sample doesn't link properly ('Error: no
+start address').
+32-bit compilation only (partially) supported at present, using SC++ 6.1.
+Some functionality is missing using this compiler (see makefile).
+Add -D__WIN95__ if your SC++ has Windows 95 support, and ignore
+Step (2). 16-bit compilation is left as an excercise for the user!
+
 Gnu-Win32 b19/b20/Mingw32 compilation
 -------------------------------------
 
index 85f37b2ec271dd8e1c92c26b2ff9db6ea9e424e9..6e19165510340983a0b5ee8ade1a87c10ad5da7a 100644 (file)
@@ -35,6 +35,12 @@ e.g. ',' instead of '.' for decimal points.
 
 Supply correct ctl3d/odbc lib files for BC++, Watcom (corrupt?)
 
+16-bit compilation: replace small icons in treectrl/listctrl
+samples that also have a 32x32 icon, with icons with only one
+image, using Borland Image Editor. WIN16 doesn't have a function
+for specifying which image to use, so the larger one gets used
+erroneously.
+
 LOW PRIORITY (MEDIUM TERM)
 --------------------------
 
index 53f68e1e7a5358dc0998b656bfdca2ee6f414733..8c1d964c082e67ce4eb334c7976c01077618456c 100644 (file)
@@ -16,7 +16,9 @@
 #pragma interface "checklst.h"
 #endif
 
-typedef   unsigned int  size_t;
+// No!
+// typedef   unsigned int  size_t;
+#include <stddef.h>
 
 #if !wxUSE_OWNER_DRAWN
   #error  "wxCheckListBox class requires owner-drawn functionality."
index 7e3133f0c8d88b53cb619d297a9cc3f4de790234..bba7bd5f81dd9e4e848dc5b1ec4e81c9fbaa2303 100644 (file)
 #include "wx/gdicmn.h"
 #include "wx/window.h"
 
+// Clash with Windows header files
+#ifdef StartDoc
+#undef StartDoc
+#endif
+
+#ifdef DrawText
+#undef DrawText
+#endif
+
+#ifdef GetCharWidth
+#undef GetCharWidth
+#endif
+
 class WXDLLEXPORT wxDC: public wxObject
 {
   DECLARE_ABSTRACT_CLASS(wxDC)
index 2648217d19e9a31cf0199cf20d5df7b895673f66..1087b17903fedbecb503d9062d1393eac311701f 100644 (file)
                                   // Set this to 0 if your compiler can't cope
                                   // with omission of prototype parameters.
 
-#define wxUSE_C_MAIN 0
-                                  // Set to 1 to use main.c instead of main.cpp (UNIX only)
-
 #define wxUSE_ODBC                   1
                                     // Define 1 to use ODBC classes
 
index 5a3c475644e6cec5fb31fca9beb917617271184c..699980592213343c4b20127cda8b4906fef41d88 100644 (file)
@@ -34,7 +34,7 @@ class WXDLLEXPORT wxTextCtrl: public wxControl
 // it complains about deriving a huge class from the huge class streambuf. !!
 // Also, can't use streambuf if making or using a DLL :-(
 
-#if (defined(__BORLANDC__) && !defined(__WIN32__)) || defined(__MWERKS__) || defined(_WINDLL) || defined(WXUSINGDLL) || defined(WXMAKINGDLL)
+#if (defined(__BORLANDC__)) || defined(__MWERKS__) || defined(_WINDLL) || defined(WXUSINGDLL) || defined(WXMAKINGDLL)
 #define NO_TEXT_WINDOW_STREAM
 #endif
 
index 8f151883fba6f4c713ad1c1479b9770055c066a8..21d27e908bc09a179fe91b40b07eb93e1773851b 100644 (file)
@@ -108,6 +108,15 @@ private:
     wxString  m_data;
 };
 
+// Clash with Windows headers
+#ifdef GetCharWidth
+#undef GetCharWidth
+#endif
+
+#ifdef FindWindow
+#undef FindWindow
+#endif
+
 class WXDLLEXPORT wxWindow : public wxEvtHandler
 {
   DECLARE_ABSTRACT_CLASS(wxWindow)
index ca3ade770ab82e32a00c012a8e43eaabb1ccd322..b16265669a6797c85f538cd204d81f36dcf76355 100644 (file)
@@ -23,11 +23,14 @@ class WXDLLEXPORT wxObject;
 
 #if wxUSE_DYNAMIC_CLASSES
 
-#ifdef __GNUWIN32__
+// #ifdef __GNUWIN32__
 #ifdef GetClassName
 #undef GetClassName
 #endif
+#ifdef GetClassInfo
+#undef GetClassInfo
 #endif
+// #endif
 
 class WXDLLEXPORT wxClassInfo;
 class WXDLLEXPORT wxInputStream;
index 7726a31f1ea0d58a1778badf57a361b282521240..ee4c4650304cb939bda10e8cb6b3fd426f8ccf49 100644 (file)
 #endif
 
 typedef   wxColour      wxColor;
-typedef   unsigned int  size_t;
+
+// No, don't do this: BC++ 5 complains that size_t already been defined.
+// typedef   unsigned int  size_t;
+#include <stddef.h>
 
 // ----------------------------------------------------------------------------
 // wxOwnerDrawn - a mix-in base class, derive from it to implement owner-drawn
index 5426016a32f995810ad0aa147789686428f4a819..deafa618a14900959200e6c1bf62d7514703abc0 100644 (file)
@@ -19,7 +19,7 @@
 #define wxVERSION_STRING "wxWindows 2.0"
 #define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
 #define wxBETA_NUMBER      17
-#define wxVERSION_FLOAT float(wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0))
+#define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
 
 #endif
        // _WX_VERSIONH__
index 538c0c6f40dd6e1f809bfa3c6c93490db4e44cea..2237f97a556a4e96b53528949996079f429dbeb2 100644 (file)
@@ -3,6 +3,7 @@
 WXDIR = $(WXWIN)
 INCDIR = $(WXDIR)\include
 LIBDIR = $(WXDIR)\lib
+WXLIB = $(LIBDIR)\wx.lib
 
 SRCSUFF = cpp
 OBJSUFF = obj
@@ -14,8 +15,18 @@ INCLUDE=$(INCDIR)
 CC=sc
 RC=rc
 
+# WIN16 settings
+#CFLAGS = -Jm -ml -W -D__WXMSW__ -D__WXDEBUG__ -D__WINDOWS__ -D__WIN16__ $(EXTRACPPFLAGS)
+#LDFLAGS = -ml -W
+#LINKER = link
+#LIBS=$(WXLIB) $(EXTRALIBS) libw.lib commdlg.lib ddeml.lib shell.lib
+#DEFFILE=sc16.def
+
+# WIN32 settings
 CFLAGS = -o -mn -W -D__NT__ -DWIN32 -D__WIN32__ -D__WINDOWS__ -D__WXMSW__ -D__SC__ -D__WXDEBUG__ $(EXTRACPPFLAGS)
-LDFLAGS = $(EXTRALDFLAGS)
+LDFLAGS = -Llink386.exe $(EXTRALDFLAGS)
+LINKER = link386
+LIBS=$(WXLIB) $(EXTRALIBS) ctl3d32.lib shell32.lib comdlg32.lib user32.lib gdi32.lib kernel32.lib winmm.lib
 
 .$(SRCSUFF).obj:
        *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $< -o$@
@@ -24,3 +35,6 @@ LDFLAGS = $(EXTRALDFLAGS)
 .c.obj:
        *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) -DUSE_DEFINE -Jm $< -o$@
 
+.rc.res:
+       *$(RC) -r -I$(INCLUDE) $<
+
index 36b83329463c43ab98bd38c4b066c63cd6476a9e..3bb6b74e3ecccaede492b73e0b3be08f523250a3 100644 (file)
@@ -246,3 +246,4 @@ $(COMMDIR)\lex_yy.c:    $(COMMDIR)\doslex.c
 
 #$(COMMDIR)\cmndata.obj:     $(COMMDIR)\cmndata.cpp
 #      *$(CC) -c $(CFLAGS) -I$(INCLUDE) $(OPTIONS) $(COMMDIR)\cmndata.cpp -o$(COMMDIR)\cmndata.obj
+
index abf6eaf5f6816cc26a423ec7c817e1c3e08b9713..45a17a442381f06b05f554c1e78402e3db064889 100644 (file)
@@ -747,7 +747,7 @@ void wxTextCtrl::OnDropFiles(wxDropFilesEvent& event)
 // or when "endl" is output (Borland 4.5)
 //=========================================================================
 // Class declaration using multiple inheritance doesn't work properly for
-// Borland. See note in wb_text.h.
+// Borland. See note in textctrl.h.
 #ifndef NO_TEXT_WINDOW_STREAM
 int wxTextCtrl::overflow(int c)
 {
index 9690182a27259782862754866e4d3c580014e4a4..0d8e58232b9c552d26da423005c13ce388c2d440 100644 (file)
@@ -253,6 +253,7 @@ MyCanvas::MyCanvas(wxView *v, wxWindow *parent, wxWindowID id, const wxPoint& po
     const wxSize& size, long style):
  wxShapeCanvas(parent, id, pos, size, style)
 {
+  SetBackgroundColour(*wxWHITE);
   view = v;
 }
 
index 7fa625668fcd0a93c91cb4cf7f14194eec1c28f2..65198f308beb5172016077875fd94057a6e093f7 100644 (file)
@@ -183,6 +183,7 @@ END_EVENT_TABLE()
 MyCanvas::MyCanvas(wxWindow *parent):
  wxScrolledWindow(parent, -1)
 {
+    SetBackgroundColour(*wxWHITE);
 }
 
 // Define the repainting behaviour