(void) new wxDocTemplate(m_docManager, "Diagram", "*.dia", "", "dia", "Diagram Doc", "Diagram View",
CLASSINFO(csDiagramDocument), CLASSINFO(csDiagramView));
- // Create the main frame window
+ // Create the main frame window.
+ // Note that we use a frame style that doesn't have wxCLIP_CHILDREN in it
+ // (the default frame style contains wxCLIP_CHILDREN), otherwise the client
+ // area doesn't refresh properly when we change its position, under Windows.
+
+#define wxDEFAULT_FRAME_STYLE_NO_CLIP \
+ (wxSYSTEM_MENU | wxRESIZE_BORDER | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxTHICK_FRAME | wxSYSTEM_MENU | wxCAPTION)
csFrame* frame = new csFrame(m_docManager, NULL, -1, "OGL Studio", m_mainFramePos, m_mainFrameSize,
- wxDEFAULT_FRAME_STYLE | wxHSCROLL | wxVSCROLL);
+ wxDEFAULT_FRAME_STYLE_NO_CLIP | wxHSCROLL | wxVSCROLL);
// Give it an icon
frame->SetIcon(wxICON(studio));
contrib/samples/stc/Makefile.in
descrip.mms
+lib\vms.opt
+lib\vms_gtk.opt
contrib\samples\mmedia\descrip.mms
deliver\wx\src\common\descrip.mms
deliver\wx\src\png\scripts\descrip.mms
default: wx
-wx: $(CFG) $(LNKCFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
+#wx: $(CFG) $(LNKCFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
+wx: $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
all: all_libs all_execs
$(WIN95FLAG)
! $(CFG)
-$(LNKCFG): makefile.b32
- copy &&!
--L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
-! $(LNKCFG)
-
-#-I$(WXDIR)\src\common\wxxpm\libxpm.34b\lib
-# -Oxt
+#$(LNKCFG): makefile.b32
+# copy &&!
+#-L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
+#! $(LNKCFG)
clean: $(PERIPH_CLEAN_TARGET)
-erase $(LIBTARGET)
# Please set these according to the settings in wx_setup.h, so we can include
# the appropriate libraries in wx.lib
USE_CTL3D=1
-USE_XPM_IN_MSW=0
+USE_XPM_IN_MSW=1
PERIPH_LIBS=
PERIPH_TARGET=
make -f makefile.bcc all_execs
cd $(WXDIR)\src\msw
-all_libs:
- cd $(WXDIR)\src\msw
- make -f makefile.bcc dib fafa gauge hytext itsy prologio rcparser wx wxgraph\
- wxstring wxtree mfutils # wxxpm
-
-all_contribs:
- cd $(WXDIR)\src\msw
- make -f makefile.bcc fafa wxstring itsy gauge # wxxpm
-
# CONTRIB
-wxxpm: $(CFG)
+xpm: $(CFG)
cd $(WXDIR)\src\xpm
make -f makefile.bcc -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG)
cd $(WXDIR)\src\msw
+clean_xpm: $(CFG)
+ cd $(WXDIR)\src\xpm
+ make -f makefile.bcc clean
+ cd $(WXDIR)\src\msw
+
png: $(CFG)
cd $(WXDIR)\src\png
make -f makefile.bcc
\index{wxDragResult}wxDragResult is defined as follows:
-begin{verbatim}
+\begin{verbatim}
enum wxDragResult
{
wxDragError, // error prevented the d&d operation from completing
\func{size\_t}{Strlen}{\param{const char *}{ p}}
This is a safe version of standard function {\it strlen()}: it does exactly the
-same thing (i.e. returns the length of the string) except that it returns 0 if
+same thing (i.e. returns the length of the string) except that it returns 0 if
{\it p} is the NULL pointer.
\membersection{::wxGetTranslation}\label{wxgettranslation}
This function returns the translation of string {\it str} in the current
\helpref{locale}{wxlocale}. If the string is not found in any of the loaded
-message catalogs (see \helpref{i18n overview}{internationalization}), the
+message catalogs (see \helpref{internationalization overview}{internationalization}), the
original string is returned. In debug build, an error message is logged - this
should help to find the strings which were not yet translated. As this function
is used very often, an alternative syntax is provided: the \_() macro is
Called by the server application to advise the client of a change in
the data associated with the given item. Causes the client
-connection's \helpref{wxTCPConnection::OnAdvise}{wxtcpconnectiononadvise}
+connection's \helpref{wxTCPConnection::OnAdvise}{wxtcpconnectiononadvise}
member to be called. Returns TRUE if successful.
\membersection{wxTCPConnection::Execute}
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxTempFile::wxTempFile}\label{wxtempfilewxtempfilector}
+
\func{}{wxTempFile}{\void}
Default constructor - \helpref{Open}{wxtempfileopen} must be used to open the
file.
\membersection{wxTempFile::wxTempFile}\label{wxtempfilewxtempfile}
+
\func{}{wxTempFile}{\param{const wxString\& }{strName}}
-Associates wxTempFile with the file to be replaced and opens it. You should use
+Associates wxTempFile with the file to be replaced and opens it. You should use
\helpref{IsOpened}{wxtempfileisopened} to verify if the constructor succeeded.
\membersection{wxTempFile::Open}\label{wxtempfileopen}
+
\func{bool}{Open}{\param{const wxString\& }{strName}}
Open the temporary file (strName is the name of file to be replaced), returns
Returns TRUE if the file was successfully opened.
\membersection{wxTempFile::Write}\label{wxtempfilewrite}
+
\func{bool}{Write}{\param{const void }{*p}, \param{size\_t }{n}}
Write to the file, return TRUE on success, FALSE on failure.
\membersection{wxTempFile::Write}\label{wxtempfilewrites}
+
\func{bool}{Write}{\param{const wxString\& }{str}}
Write to the file, return TRUE on success, FALSE on failure.
\membersection{wxTempFile::Commit}\label{wxtempfilecommit}
+
\func{bool}{Commit}{\void}
Validate changes: deletes the old file of name m\_strName and renames the new
to the old name.
\membersection{wxTempFile::Discard}\label{wxtempfilediscard}
+
\func{void}{Discard}{\void}
Discard changes: the old file contents is not changed, temporary file is
deleted.
\membersection{wxTempFile::\destruct{wxTempFile}}\label{wxtempfiledtor}
+
\func{}{\destruct{wxTempFile}}{\void}
Destructor calls \helpref{Discard()}{wxtempfilediscard} if temporary file
\twocolitem{\windowstyle{wxHSCROLL}}{A horizontal scrollbar will be created. No effect under GTK+.}
\end{twocollist}
-See also \helpref{window styles overview}{windowstyles} and
+See also \helpref{window styles overview}{windowstyles} and
\helpref{wxTextCtrl::wxTextCtrl}{wxtextctrlconstr}.
\wxheading{Remarks}
\constfunc{wxString}{GetValue}{\void}
Gets the contents of the control. Notice that for a multiline text control,
-the lines will be separated by (Unix-style) '\\n' characters, even under
-Windows where they are separated by "\\r\\n" sequence in the native control.
+the lines will be separated by (Unix-style) $\backslash$n characters, even under
+Windows where they are separated by a $\backslash$r$\backslash$n sequence in the native control.
\membersection{wxTextCtrl::IsModified}\label{wxtextctrlismodified}
\wxheading{Remarks}
-This is not yet implemented for the GTK.
+This is not implemented on non-Windows platforms.
\wxheading{See also}
\func{virtual void}{SetEditable}{\param{const bool}{ editable}}
-Makes the text item editable or read-only, overriding the {\bf wxTE\_READONLY}
-flag.
+Makes the text item editable or read-only, overriding the {\bf wxTE\_READONLY} flag.
\wxheading{Parameters}
\wxheading{Data structures}
The following constants identify the line termination type:
+
\begin{verbatim}
enum wxTextFileType
{
called from inside it!
Delete() may be called for thread in any state: running, paused or even not yet
-created. Moreover, it must be called if \helpref{Create}{wxthreadcreate} or
+created. Moreover, it must be called if \helpref{Create}{wxthreadcreate} or
\helpref{Run}{wxthreadrun} failed for a detached thread to free the memory
occupied by the thread object (it will be done in the destructor for joinable
threads).
\wxheading{Data structures}
-{\small \begin{verbatim}
+\begin{verbatim}
typedef unsigned short hourTy;
typedef unsigned short minuteTy;
typedef unsigned short secondTy;
enum tFormat { wx12h, wx24h };
enum tPrecision { wxStdMinSec, wxStdMin };
\end{verbatim}
-}
\wxheading{See also}
\constfunc{int}{GetItemSelectedImage}{\param{const wxTreeItemId\& }{item}}
Gets the selected item image (this function is obsolete, use
-{\tt GetItemImage(item, wxTreeItemIcon\_Selected} instead).
+{\tt GetItemImage(item, wxTreeItemIcon\_Selected}) instead).
\membersection{wxTreeCtrl::GetSelection}\label{wxtreectrlgetselection}
\constfunc{wxTreeItemId}{GetSelection}{\void}
Returns the selection, or an invalid item if there is no selection.
-This function only works with the controls without wxTR\_MULTIPLE style, use
+This function only works with the controls without wxTR\_MULTIPLE style, use
\helpref{GetSelections}{wxtreectrlgetselections} for the controls which do have
this style.
\func{void}{SetItemImage}{\param{const wxTreeItemId\&}{ item},
\param{int }{image}, \param{wxTreeItemIcon }{which = wxTreeItemIcon\_Normal}}
-Sets the specified item image. See \helpref{GetItemImage}{wxtreectrlgetitemimage}
-for the description of {\it which} parameter.
+Sets the specified item image. See \helpref{GetItemImage}{wxtreectrlgetitemimage}
+for the description of the {\it which} parameter.
\membersection{wxTreeCtrl::SetItemSelectedImage}\label{wxtreectrlsetitemselectedimage}
\func{void}{SetItemSelectedImage}{\param{const wxTreeItemId\&}{ item}, \param{int }{selImage}}
-Sets the selected item image (this function is obsolete, use {\tt SetItemImage(item, wxTreeItemIcon\_Selected} instead).
+Sets the selected item image (this function is obsolete, use {\tt SetItemImage(item, wxTreeItemIcon\_Selected}) instead).
\membersection{wxTreeCtrl::SetItemText}\label{wxtreectrlsetitemtext}
\func{void}{SortChildren}{\param{const wxTreeItemId\&}{ item}}
-Sorts the children of the given item using
+Sorts the children of the given item using
\helpref{OnCompareItems}{wxtreectrloncompareitems} method of wxTreeCtrl. You
-should override that method to change the sort order (default is ascending
+should override that method to change the sort order (the default is ascending
alphabetical order).
\wxheading{See also}
\func{void}{UnselectAll}{\void}
-This function either behaves the same as \helpref{Unselect}{wxtreectrlunselect}
+This function either behaves the same as \helpref{Unselect}{wxtreectrlunselect}
if the control doesn't have wxTR\_MULTIPLE style, or removes the selection from
all items if it does have this style.
\section{\class{wxTextDataObject}}\label{wxtextdataobject}
wxTextDataObject is a specialization of wxDataObject for text data. It can be
-used without change to paste data into the \helpref{wxClipboard}{wxclipboard}
+used without change to paste data into the \helpref{wxClipboard}{wxclipboard}
or a \helpref{wxDropSource}{wxdropsource}. A user may wish to derive a new
class from this class for providing text on-demand in order to minimize memory
consumption when offering data in several formats, such as plain text and RTF
because by default the text is stored in a string in this class, but it might
-as well be generated when requested. For this,
-\helpref{GetTextLength}{wxtextdataobjectgettextlength} and
+as well be generated when requested. For this,
+\helpref{GetTextLength}{wxtextdataobjectgettextlength} and
\helpref{GetText}{wxtextdataobjectgettext} will have to be overridden.
Note that if you already have the text inside a string, you will not achieve
\wxheading{Virtual functions to override}
-This class may be used as is, but all of data transfer functions may be
+This class may be used as is, but all of the data transfer functions may be
overridden to increase efficiency.
\wxheading{Derived from}
\wxheading{See also}
-\helpref{Clipboard and drag and drop overview}{wxdndoverview},
-\helpref{wxDataObject}{wxdataobject},
-\helpref{wxDataObjectSimple}{wxdataobjectsimple},
-\helpref{wxFileDataObject}{wxfiledataobject},
+\helpref{Clipboard and drag and drop overview}{wxdndoverview},
+\helpref{wxDataObject}{wxdataobject},
+\helpref{wxDataObjectSimple}{wxdataobjectsimple},
+\helpref{wxFileDataObject}{wxfiledataobject},
\helpref{wxBitmapDataObject}{wxbitmapdataobject}
\latexignore{\rtfignore{\wxheading{Members}}}
\func{}{wxTextDataObject}{\param{const wxString\& }{text = wxEmptyString}}
-Constructor, may be used to initialise the text (otherwise
+Constructor, may be used to initialise the text (otherwise
\helpref{SetText}{wxtextdataobjectsettext} should be used later).
\membersection{wxTextDataObject::GetTextLength}\label{wxtextdataobjectgettextlength}
Note, however, that the arguments are the fixed size types wxUint32, wxInt32 etc
and on a typical 32-bit computer, none of these match to the "long" type (wxInt32
is defined as int on 32-bit architectures) so that you cannot use long. To avoid
-problems (here and elsewhere), make use of the wxInt32, wxUint32, etc types.
+problems (here and elsewhere), make use of wxInt32, wxUint32 and similar types.
For example:
+
\begin{verbatim}
wxFileInputStream input( "mytext.txt" );
wxTextInputStream text( input );
\func{wxString}{wxTextInputStream::ReadString}{\void}
-Reads a line from the stream. A line is a string which ends with
+Reads a line from the stream. A line is a string which ends with
$\backslash$n or $\backslash$r$\backslash$n or $\backslash$r.
% ----------------------------------------------------------------------------
So, you can write {\it text} floats, integers.
You can also simulate the C++ cout class:
+
\begin{verbatim}
wxFFileOutputStream output( stderr );
wxTextOutputStream cout( output );
\docparam{stream}{The output stream.}
-\docparam{mode}{The end-of-line mode. One of {\bf wxEOL\_NATIVE}, {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} or {\bf wxEOL\_UNIX}.}
+\docparam{mode}{The end-of-line mode. One of {\bf wxEOL\_NATIVE}, {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} and {\bf wxEOL\_UNIX}.}
\membersection{wxTextOutputStream::\destruct{wxTextOutputStream}}
\func{wxEOL}{wxTextOutputStream::GetMode}{\void}
-Returns the end-of-line mode. One of {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} or {\bf wxEOL\_UNIX}.
+Returns the end-of-line mode. One of {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} and {\bf wxEOL\_UNIX}.
\membersection{wxTextOutputStream::SetMode}
\func{void}{wxTextOutputStream::SetMode}{{\param wxEOL}{ mode = wxEOL\_NATIVE}}
-Set the end-of-line mode. One of {\bf wxEOL\_NATIVE}, {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} or {\bf wxEOL\_UNIX}.
+Set the end-of-line mode. One of {\bf wxEOL\_NATIVE}, {\bf wxEOL\_DOS}, {\bf wxEOL\_MAC} and {\bf wxEOL\_UNIX}.
\membersection{wxTextOutputStream::Write8}
\func{virtual void}{wxTextOutputStream::WriteString}{{\param const wxString\& }{string}}
-Writes {\it string} as a line. Depending on the end-of-line mode, it adds
+Writes {\it string} as a line. Depending on the end-of-line mode, it adds
$\backslash$n, $\backslash$r or $\backslash$r$\backslash$n.
\wxheading{See also}
-%\helpref{wxInputStream}{wxinputstream}
-wxInputStream
+\helpref{wxInputStream}{wxinputstream}
%
% SetDefaultProxy
\wxheading{See also}
-\helpref{Validator overview}{validatoroverview},
-\helpref{wxTextValidator}{wxtextvalidator},
+\helpref{Validator overview}{validatoroverview},
+\helpref{wxTextValidator}{wxtextvalidator},
\helpref{wxGenericValidator}{wxgenericvalidator},
-
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxValidator::wxValidator}\label{wxvalidatorconstr}
This overridable function is called when the value in the associated window must be validated.
Return FALSE if the value in the window is not valid; you may pop up an error dialog.
-
\section{\class{wxWave}}\label{wxwave}
This class represents a short wave file, in Windows WAV format, that
-can be stored in memory and played. Currently this class is for Windows
-only.
+can be stored in memory and played. Currently this class is implemented
+on Windows and GTK (Linux) only.
\wxheading{Derived from}
This methods provides for a way to center top level windows over their
parents instead of the entire screen. If there is no parent or if the
-window is not a top level window, then behaviour is the same as
+window is not a top level window, then behaviour is the same as
\helpref{wxWindow::Centre}{wxwindowcentre}.
\wxheading{See also}
\wxheading{See also}
-\helpref{wxWindow::SetDropTarget}{wxwindowsetdroptarget},
+\helpref{wxWindow::SetDropTarget}{wxwindowsetdroptarget},
\helpref{Drag and drop overview}{wxdndoverview}
\membersection{wxWindow::GetEventHandler}\label{wxwindowgeteventhandler}
\wxheading{See also}
-\helpref{wxWindow::SetId}{wxwindowsetid}\rtfsp
+\helpref{wxWindow::SetId}{wxwindowsetid},\rtfsp
\helpref{Window identifiers}{windowids}
\membersection{wxWindow::GetLabel}
values.
Note that not all keypresses can be intercepted this way. If you wish to intercept modifier
-keypresses, then you will need to use \helpref{wxWindow::OnKeyDown}{wxwindowonkeydown} or
+keypresses, then you will need to use \helpref{wxWindow::OnKeyDown}{wxwindowonkeydown} or
\helpref{wxWindow::OnKeyUp}{wxwindowonkeyup}.
Most, but not all, windows allow keypresses to be intercepted.
This function is only relevant to top-level windows (frames and dialogs), and under
Windows only. Under GTK the normal EVT\_CHAR\_ event has the functionality, i.e.
-you can intercepts it and if you don't call \helpref{wxEvent::Skip}{wxeventskip}
+you can intercepts it and if you don't call \helpref{wxEvent::Skip}{wxeventskip}
the window won't get the event.
\wxheading{See also}
\wxheading{Remarks}
-This event is only generated under Windows. It is therefore recommended that
+Under non-Windows platforms, this event is simulated (simply generated just before the
+paint event) and may cause flicker. It is therefore recommended that
you set the text background colour explicitly in order to prevent flicker.
The default background colour under GTK is grey.
default function to achieve default keypress functionality.
Note that not all keypresses can be intercepted this way. If you wish to intercept special
-keys, such as shift, control, and function keys, then you will need to use \helpref{wxWindow::OnKeyDown}{wxwindowonkeydown} or
+keys, such as shift, control, and function keys, then you will need to use \helpref{wxWindow::OnKeyDown}{wxwindowonkeydown} or
\helpref{wxWindow::OnKeyUp}{wxwindowonkeyup}.
Most, but not all, windows allow keypresses to be intercepted.
default function to achieve default keypress functionality.
Note that not all keypresses can be intercepted this way. If you wish to intercept special
-keys, such as shift, control, and function keys, then you will need to use \helpref{wxWindow::OnKeyDown}{wxwindowonkeydown} or
+keys, such as shift, control, and function keys, then you will need to use \helpref{wxWindow::OnKeyDown}{wxwindowonkeydown} or
\helpref{wxWindow::OnKeyUp}{wxwindowonkeyup}.
Most, but not all, windows allow key up events to be intercepted.
\func{void}{SetAutoLayout}{\param{bool}{ autoLayout}}
Determines whether the \helpref{wxWindow::Layout}{wxwindowlayout} function will
-be called automatically when the window is resized. Use in connection with
-\helpref{wxWindow::SetSizer}{wxwindowsetsizer} and
+be called automatically when the window is resized. Use in connection with
+\helpref{wxWindow::SetSizer}{wxwindowsetsizer} and
\helpref{wxWindow::SetConstraints}{wxwindowsetconstraints} for layouting subwindows.
\wxheading{Parameters}
\wxheading{See also}
-\helpref{wxWindow::GetDropTarget}{wxwindowgetdroptarget},
+\helpref{wxWindow::GetDropTarget}{wxwindowgetdroptarget},
\helpref{Drag and drop overview}{wxdndoverview}
\membersection{wxWindow::SetExtraStyle}\label{wxwindowsetextrastyle}
after the window creation and that \helpref{Refresh()}{wxwindowrefresh} might
be called after changing the others for the change to take place immediately.
-See \helpref{Windowstyles}{windowstyles} for more information about flags.
+See \helpref{Window styles}{windowstyles} for more information about flags.
\wxheading{See also}
Note (5): BC++ 4.5 (not 5.0) trips up over jdmerge.c in the JPEG folder;
you will therefore need to set wxUSE_LIBJPEG to 0 in setup.h and remove
-the jpeg target from src\msw\makefile.b32.
+the jpeg target from src\msw\makefile.b32, and remove jpeg from
+src\makeprog.b32.
Note (6): If using C++Builder 4 and above (BC++ 5.4 and above), change LINK=tlink32 to
LINK=ilink32 in src\makeb32.env. You may also need to disable
Cygwin b19/b20/Mingw32 compilation
----------------------------------
-wxWindows 2 supports Cygwin (formerly GnuWin32) b19, b20, Mingw32, and Mingw32/EGCS.
+wxWindows 2 supports Cygwin (formerly GnuWin32) b19, b20, Mingw32,
+and Mingw32/EGCS.
Thanks are due to Keith Garry Boyce (garp@opustel.com) and Cygnus for making
it all possible.
If using Mingw32 2.8.1, see also see mingw32.txt in this directory
(docs/msw) about a fix that has to be applied to a Mingw32 header file.
- If using Mingw32 2.95 with wxWindows 2.1 or above, and wish to use OLE, you
- should hand-patch in Mingw32-gcc295.patches (located in the top-level of the
- wxWindows 2 installation).
+ If using Mingw32 2.95 and below with wxWindows 2.1 or above, you
+ must hand-patch in Mingw32-gcc295.patches (located in the top-level of the
+ wxWindows 2 installation). Mingw32 2.95.2 and above contain the
+ fixes already.
- Modify the file wx/src/cygnus.bat (or mingw32.bat or mingegcs.bat)
to set up appropriate variables, if necessary mounting drives.
Run it before compiling.
- For Cygwin, make sure there's a \tmp directory on your
- Windows drive or bison will crash.
+ Windows drive or bison will crash (actually you don't need this
+ for ordinary wxWindows compilation: a pre-generated .c file is
+ supplied).
- Edit wx/src/makeg95.env and set the MINGW32 variable at the top of
the file to either 1 (you have Mingw32) or 0 (you have Cygwin32).
#undef wxUSE_DEBUG_NEW_ALWAYS
#define wxUSE_DEBUG_NEW_ALWAYS 0
+
+#undef wxUSE_GLCANVAS
+#define wxUSE_GLCANVAS 0
#endif
// MFC duplicates these operators
#define wxUSE_NEW_GRID 0
#endif
+#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
+// BC++ 4.0 can't compile JPEG library
+#undef wxUSE_LIBJPEG
+#define wxUSE_LIBJPEG 0
+#endif
+
#if defined(__WXMSW__) && defined(__WATCOMC__)
#undef wxUSE_LIBJPEG
#define wxUSE_LIBJPEG 0
#undef wxUSE_LIBTIFF
#define wxUSE_LIBTIFF 0
+
+#undef wxUSE_GLCANVAS
+#define wxUSE_GLCANVAS 0
#endif
#if defined(__WXMSW__) && !defined(__WIN32__)
#undef wxUSE_PCX
#define wxUSE_PCX 0
+#undef wxUSE_GLCANVAS
+#define wxUSE_GLCANVAS 0
+
#endif
#endif
WXDIR = $(WXWIN)
CFG = $(WXDIR)\src\msw\wxwin32.cfg
-LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
+# Using a config file isn't compatible across all BC++ versions
+# LNKCFG=$(WXDIR)\src\msw\bclnk32.cfg
WXLIBDIR = $(WXDIR)\lib
WXLIBDIR2 = $(WXDIR)\contrib\lib
WXINC = $(WXDIR)\include;$(WXDIR)\contrib\include;$(WXDIR)\src\iodbc
# versions of C++ Builder.
!ifndef LINK
LINK=ilink32
+#LINK=tlink32
!endif
!ifndef FINAL
# If using Cygwin, set this to 0.
# If using Mingw32, set this to 1.
-MINGW32=1
+MINGW32=0
# Set to the version you have
MINGW32VERSION=2.95
LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib jpeg xpm tiff odbc32
+# Note: you may need to remove some libraries for earlier versions of BC++, as below
+#LIBS=$(WXLIB) $(EXTRALIBS) cw32mt import32 ole2w32 winpng zlib xpm tiff
+
!if "$(FINAL)" == "0"
-LINKFLAGS=/v /c /Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
+#LINKFLAGS=/v /c /Tpe $(LNKCFG) $(EXTRALINKFLAGS)
+LINKFLAGS=/v /c /Tpe -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
OPT = -Od
DEBUG_FLAGS= -v
!else
-LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
+#LINKFLAGS=/Tpe +$(LNKCFG) $(EXTRALINKFLAGS)
+LINKFLAGS=/Tpe -L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk $(EXTRALINKFLAGS)
OPT = -Od
DEBUG_FLAGS =
!endif
default: wx
-wx: $(CFG) $(LNKCFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
+wx: $(CFG) $(DUMMY).obj $(OBJECTS) $(PERIPH_TARGET) $(LIBTARGET)
all: all_libs all_execs
$(WIN95FLAG)
! $(CFG)
-$(LNKCFG): makefile.b32
- copy &&!
--L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
-! $(LNKCFG)
-
-#-I$(WXDIR)\src\common\wxxpm\libxpm.34b\lib
-# -Oxt
+#$(LNKCFG): makefile.b32
+# copy &&!
+#-L$(WXLIBDIR);$(WXLIBDIR2);$(BCCDIR)\lib;$(BCCDIR)\lib\psdk
+#! $(LNKCFG)
clean: $(PERIPH_CLEAN_TARGET)
-erase $(LIBTARGET)
make -f makefile.bcc -DCFG=$(CFG) -DFINAL=$(FINAL) -DWXWIN=$(WXDIR) -DDEBUG=$(DEBUG)
cd $(WXDIR)\src\msw
+clean_xpm: $(CFG)
+ cd $(WXDIR)\src\xpm
+ make -f makefile.bcc clean
+ cd $(WXDIR)\src\msw
+
png: $(CFG)
cd $(WXDIR)\src\png
make -f makefile.bcc