Added some makefiles, fixed a BC++ problem in controls.cpp; changed some class
ordering for VC++ 1.5 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1012,3 +1012,15 @@ samples/scrollsub/*.png
|
|||||||
samples/scrollsub/*.ico
|
samples/scrollsub/*.ico
|
||||||
samples/scrollsub/*.txt
|
samples/scrollsub/*.txt
|
||||||
|
|
||||||
|
samples/menu/*.cpp
|
||||||
|
samples/menu/*.h
|
||||||
|
samples/menu/makefile*
|
||||||
|
samples/menu/*.rc
|
||||||
|
samples/menu/*.def
|
||||||
|
samples/menu/*.bmp
|
||||||
|
samples/menu/*.xpm
|
||||||
|
samples/menu/*.xbm
|
||||||
|
samples/menu/*.png
|
||||||
|
samples/menu/*.ico
|
||||||
|
samples/menu/*.txt
|
||||||
|
|
||||||
|
@@ -32,7 +32,9 @@
|
|||||||
$isCFile = $file =~ /\.c$/;
|
$isCFile = $file =~ /\.c$/;
|
||||||
$file =~ s/cp?p?$/obj/;
|
$file =~ s/cp?p?$/obj/;
|
||||||
$obj = "\$(COMMDIR)\\" . $file . " ";
|
$obj = "\$(COMMDIR)\\" . $file . " ";
|
||||||
$project{"WXCOMMONOBJS"} .= $obj;
|
#! $project{"WXCOMMONOBJS"} .= $obj;
|
||||||
|
#! have to split lib in 2 halves because otherwise it's too big
|
||||||
|
$project{$file =~ "^[a-o]" ? "WXCOMMONOBJS1" : "WXCOMMONOBJS2"} .= $obj;
|
||||||
$project{"WXCOBJS"} .= $obj if $isCFile;
|
$project{"WXCOBJS"} .= $obj if $isCFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,9 +111,13 @@ MSWDIR=.
|
|||||||
|
|
||||||
GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
|
GENERICOBJS= #$ ExpandList("WXGENERICOBJS");
|
||||||
|
|
||||||
COMMONOBJS = \
|
# we can't have all objects in one list because the library becomes too big
|
||||||
|
COMMONOBJS1 = \
|
||||||
$(COMMDIR)\y_tab.obj \
|
$(COMMDIR)\y_tab.obj \
|
||||||
#$ ExpandList("WXCOMMONOBJS");
|
#$ ExpandList("WXCOMMONOBJS1");
|
||||||
|
|
||||||
|
COMMONOBJS2 = \
|
||||||
|
#$ ExpandList("WXCOMMONOBJS2");
|
||||||
|
|
||||||
# we can't have all objects in one list because the library becomes too big
|
# we can't have all objects in one list because the library becomes too big
|
||||||
MSWOBJS1 = #$ ExpandList("WXMSWOBJS1");
|
MSWOBJS1 = #$ ExpandList("WXMSWOBJS1");
|
||||||
@@ -122,45 +128,55 @@ MSWOBJS2 = #$ ExpandList("WXMSWOBJS2");
|
|||||||
# $(OLEDIR)\xpmhand \
|
# $(OLEDIR)\xpmhand \
|
||||||
# $(OLEDIR)\pnghand \
|
# $(OLEDIR)\pnghand \
|
||||||
|
|
||||||
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
|
OBJECTS = $(COMMONOBJS1) $(COMMONOBJS2) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
|
||||||
|
|
||||||
# Normal, static library
|
# Normal, static library
|
||||||
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
|
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib $(WXDIR)\lib\wx5.lib
|
||||||
|
|
||||||
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
|
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS1) $(PERIPH_LIBS)
|
||||||
-erase $(WXDIR)\lib\wx1.lib
|
-erase $(WXDIR)\lib\wx1.lib
|
||||||
lib /PAGESIZE:128 @<<
|
lib /PAGESIZE:128 @<<
|
||||||
$(WXDIR)\lib\wx1.lib
|
$(WXDIR)\lib\wx1.lib
|
||||||
y
|
y
|
||||||
$(COMMONOBJS) $(PERIPH_LIBS)
|
$(COMMONOBJS1) $(PERIPH_LIBS)
|
||||||
nul
|
nul
|
||||||
;
|
;
|
||||||
<<
|
<<
|
||||||
|
|
||||||
$(WXDIR)\lib\wx2.lib: $(GENERICOBJS)
|
$(WXDIR)\lib\wx2.lib: $(COMMONOBJS2)
|
||||||
-erase $(WXDIR)\lib\wx2.lib
|
-erase $(WXDIR)\lib\wx2.lib
|
||||||
lib /PAGESIZE:128 @<<
|
lib /PAGESIZE:128 @<<
|
||||||
$(WXDIR)\lib\wx2.lib
|
$(WXDIR)\lib\wx2.lib
|
||||||
y
|
y
|
||||||
|
$(COMMONOBJS2)
|
||||||
|
nul
|
||||||
|
;
|
||||||
|
<<
|
||||||
|
|
||||||
|
$(WXDIR)\lib\wx3.lib: $(GENERICOBJS)
|
||||||
|
-erase $(WXDIR)\lib\wx3.lib
|
||||||
|
lib /PAGESIZE:128 @<<
|
||||||
|
$(WXDIR)\lib\wx3.lib
|
||||||
|
y
|
||||||
$(GENERICOBJS)
|
$(GENERICOBJS)
|
||||||
nul
|
nul
|
||||||
;
|
;
|
||||||
<<
|
<<
|
||||||
|
|
||||||
$(WXDIR)\lib\wx3.lib: $(MSWOBJS1)
|
$(WXDIR)\lib\wx4.lib: $(MSWOBJS1)
|
||||||
-erase $(WXDIR)\lib\wx3.lib
|
-erase $(WXDIR)\lib\wx4.lib
|
||||||
lib /PAGESIZE:128 @<<
|
lib /PAGESIZE:128 @<<
|
||||||
$(WXDIR)\lib\wx3.lib
|
$(WXDIR)\lib\wx4.lib
|
||||||
y
|
y
|
||||||
$(MSWOBJS1)
|
$(MSWOBJS1)
|
||||||
nul
|
nul
|
||||||
;
|
;
|
||||||
<<
|
<<
|
||||||
|
|
||||||
$(WXDIR)\lib\wx4.lib: $(MSWOBJS2)
|
$(WXDIR)\lib\wx5.lib: $(MSWOBJS2)
|
||||||
-erase $(WXDIR)\lib\wx4.lib
|
-erase $(WXDIR)\lib\wx5.lib
|
||||||
lib /PAGESIZE:128 @<<
|
lib /PAGESIZE:128 @<<
|
||||||
$(WXDIR)\lib\wx4.lib
|
$(WXDIR)\lib\wx5.lib
|
||||||
y
|
y
|
||||||
$(MSWOBJS2)
|
$(MSWOBJS2)
|
||||||
nul
|
nul
|
||||||
@@ -184,7 +200,7 @@ $(CPPFLAGS) /YcWX/WXPREC.H /c /Tp $*.$(SRCSUFF)
|
|||||||
<<
|
<<
|
||||||
|
|
||||||
#${
|
#${
|
||||||
$_ = $project{"WXMSWOBJS1"} . $project{"WXMSWOBJS2"} . $project{"WXCOMMONOBJS"} . $project{"WXGENERICOBJS"};
|
$_ = $project{"WXMSWOBJS1"} . $project{"WXMSWOBJS2"} . $project{"WXCOMMONOBJS1"} . $project{"WXCOMMONOBJS2"} . $project{"WXGENERICOBJS"};
|
||||||
my @objs = split;
|
my @objs = split;
|
||||||
foreach (@objs) {
|
foreach (@objs) {
|
||||||
if ( $project{"WXCOBJS"} =~ / \Q$_\E / ) {
|
if ( $project{"WXCOBJS"} =~ / \Q$_\E / ) {
|
||||||
|
@@ -420,16 +420,15 @@ the front when the dialog box is popped up.
|
|||||||
|
|
||||||
\membersection{::wxCreateFileTipProvider}\label{wxcreatefiletipprovider}
|
\membersection{::wxCreateFileTipProvider}\label{wxcreatefiletipprovider}
|
||||||
|
|
||||||
\func{wxTipProvider *}{wxCreateFileTipProvider}{
|
\func{wxTipProvider *}{wxCreateFileTipProvider}{\param{const wxString\& }{filename},
|
||||||
\param{const wxString\& }{filename},
|
\param{size\_t }{currentTip}}
|
||||||
\param{size\_t }{currentTip}}
|
|
||||||
|
|
||||||
This function creates a \helpref{wxTipProvider}{wxtipprovider} which may be
|
This function creates a \helpref{wxTipProvider}{wxtipprovider} which may be
|
||||||
used with \helpref{wxShowTip}{wxshowtip}.
|
used with \helpref{wxShowTip}{wxshowtip}.
|
||||||
|
|
||||||
\docparam{filename}{The name of the file containing the tips, one per line}
|
\docparam{filename}{The name of the file containing the tips, one per line}
|
||||||
\docparam{currentTip}{The index of the first tip to show - normally this index
|
\docparam{currentTip}{The index of the first tip to show - normally this index
|
||||||
is remembered between the 2 program runs.}
|
is remembered between the 2 program runs.}
|
||||||
|
|
||||||
\wxheading{See also:}
|
\wxheading{See also:}
|
||||||
|
|
||||||
@@ -442,9 +441,9 @@ used with \helpref{wxShowTip}{wxshowtip}.
|
|||||||
\membersection{::wxFileSelector}\label{wxfileselector}
|
\membersection{::wxFileSelector}\label{wxfileselector}
|
||||||
|
|
||||||
\func{wxString}{wxFileSelector}{\param{const wxString\& }{message}, \param{const wxString\& }{default\_path = ""},\\
|
\func{wxString}{wxFileSelector}{\param{const wxString\& }{message}, \param{const wxString\& }{default\_path = ""},\\
|
||||||
\param{const wxString\& }{default\_filename = ""}, \param{const wxString\& }{default\_extension = ""},\\
|
\param{const wxString\& }{default\_filename = ""}, \param{const wxString\& }{default\_extension = ""},\\
|
||||||
\param{const wxString\& }{wildcard = ``*.*''}, \param{int }{flags = 0}, \param{wxWindow *}{parent = ""},\\
|
\param{const wxString\& }{wildcard = ``*.*''}, \param{int }{flags = 0}, \param{wxWindow *}{parent = ""},\\
|
||||||
\param{int}{ x = -1}, \param{int}{ y = -1}}
|
\param{int}{ x = -1}, \param{int}{ y = -1}}
|
||||||
|
|
||||||
Pops up a file selector box. In Windows, this is the common file selector
|
Pops up a file selector box. In Windows, this is the common file selector
|
||||||
dialog. In X, this is a file selector box with somewhat less functionality.
|
dialog. In X, this is a file selector box with somewhat less functionality.
|
||||||
@@ -485,14 +484,14 @@ if (s)
|
|||||||
\membersection{::wxGetNumberFromUser}\label{wxgetnumberfromuser}
|
\membersection{::wxGetNumberFromUser}\label{wxgetnumberfromuser}
|
||||||
|
|
||||||
\func{long}{wxGetNumberFromUser}{
|
\func{long}{wxGetNumberFromUser}{
|
||||||
\param{const wxString\& }{message},
|
\param{const wxString\& }{message},
|
||||||
\param{const wxString\& }{prompt},
|
\param{const wxString\& }{prompt},
|
||||||
\param{const wxString\& }{caption},
|
\param{const wxString\& }{caption},
|
||||||
\param{long }{value},
|
\param{long }{value},
|
||||||
\param{long }{min = 0},
|
\param{long }{min = 0},
|
||||||
\param{long }{max = 100},
|
\param{long }{max = 100},
|
||||||
\param{wxWindow *}{parent = NULL},
|
\param{wxWindow *}{parent = NULL},
|
||||||
\param{const wxPoint\& }{pos = wxDefaultPosition}}
|
\param{const wxPoint\& }{pos = wxDefaultPosition}}
|
||||||
|
|
||||||
Shows a dialog asking the user for numeric input. The dialogs title is set to
|
Shows a dialog asking the user for numeric input. The dialogs title is set to
|
||||||
{\it caption}, it contains a (possibly) multiline {\it message} above the
|
{\it caption}, it contains a (possibly) multiline {\it message} above the
|
||||||
@@ -512,8 +511,8 @@ Dialog is centered on its {\it parent} unless an explicit position is given in
|
|||||||
\membersection{::wxGetTextFromUser}\label{wxgettextfromuser}
|
\membersection{::wxGetTextFromUser}\label{wxgettextfromuser}
|
||||||
|
|
||||||
\func{wxString}{wxGetTextFromUser}{\param{const wxString\& }{message}, \param{const wxString\& }{caption = ``Input text"},\\
|
\func{wxString}{wxGetTextFromUser}{\param{const wxString\& }{message}, \param{const wxString\& }{caption = ``Input text"},\\
|
||||||
\param{const wxString\& }{default\_value = ``"}, \param{wxWindow *}{parent = NULL},\\
|
\param{const wxString\& }{default\_value = ``"}, \param{wxWindow *}{parent = NULL},\\
|
||||||
\param{int}{ x = -1}, \param{int}{ y = -1}, \param{bool}{ centre = TRUE}}
|
\param{int}{ x = -1}, \param{int}{ y = -1}, \param{bool}{ centre = TRUE}}
|
||||||
|
|
||||||
Pop up a dialog box with title set to {\it caption}, message {\it message}, and a
|
Pop up a dialog box with title set to {\it caption}, message {\it message}, and a
|
||||||
\rtfsp{\it default\_value}. The user may type in text and press OK to return this text,
|
\rtfsp{\it default\_value}. The user may type in text and press OK to return this text,
|
||||||
@@ -529,9 +528,9 @@ is centred; if FALSE, the message is left-justified.
|
|||||||
\membersection{::wxGetMultipleChoice}\label{wxgetmultiplechoice}
|
\membersection{::wxGetMultipleChoice}\label{wxgetmultiplechoice}
|
||||||
|
|
||||||
\func{int}{wxGetMultipleChoice}{\param{const wxString\& }{message}, \param{const wxString\& }{caption}, \param{int}{ n}, \param{const wxString\& }{choices[]},\\
|
\func{int}{wxGetMultipleChoice}{\param{const wxString\& }{message}, \param{const wxString\& }{caption}, \param{int}{ n}, \param{const wxString\& }{choices[]},\\
|
||||||
\param{int }{nsel}, \param{int *}{selection},
|
\param{int }{nsel}, \param{int *}{selection},
|
||||||
\param{wxWindow *}{parent = NULL}, \param{int}{ x = -1}, \param{int}{ y = -1},\\
|
\param{wxWindow *}{parent = NULL}, \param{int}{ x = -1}, \param{int}{ y = -1},\\
|
||||||
\param{bool}{ centre = TRUE}, \param{int }{width=150}, \param{int }{height=200}}
|
\param{bool}{ centre = TRUE}, \param{int }{width=150}, \param{int }{height=200}}
|
||||||
|
|
||||||
Pops up a dialog box containing a message, OK/Cancel buttons and a multiple-selection
|
Pops up a dialog box containing a message, OK/Cancel buttons and a multiple-selection
|
||||||
listbox. The user may choose one or more item(s) and press OK or Cancel.
|
listbox. The user may choose one or more item(s) and press OK or Cancel.
|
||||||
@@ -555,8 +554,8 @@ is centred; if FALSE, the message is left-justified.
|
|||||||
\membersection{::wxGetSingleChoice}\label{wxgetsinglechoice}
|
\membersection{::wxGetSingleChoice}\label{wxgetsinglechoice}
|
||||||
|
|
||||||
\func{wxString}{wxGetSingleChoice}{\param{const wxString\& }{message}, \param{const wxString\& }{caption}, \param{int}{ n}, \param{const wxString\& }{choices[]},\\
|
\func{wxString}{wxGetSingleChoice}{\param{const wxString\& }{message}, \param{const wxString\& }{caption}, \param{int}{ n}, \param{const wxString\& }{choices[]},\\
|
||||||
\param{wxWindow *}{parent = NULL}, \param{int}{ x = -1}, \param{int}{ y = -1},\\
|
\param{wxWindow *}{parent = NULL}, \param{int}{ x = -1}, \param{int}{ y = -1},\\
|
||||||
\param{bool}{ centre = TRUE}, \param{int }{width=150}, \param{int }{height=200}}
|
\param{bool}{ centre = TRUE}, \param{int }{width=150}, \param{int }{height=200}}
|
||||||
|
|
||||||
Pops up a dialog box containing a message, OK/Cancel buttons and a single-selection
|
Pops up a dialog box containing a message, OK/Cancel buttons and a single-selection
|
||||||
listbox. The user may choose an item and press OK to return a string or
|
listbox. The user may choose an item and press OK to return a string or
|
||||||
@@ -574,8 +573,8 @@ is centred; if FALSE, the message is left-justified.
|
|||||||
\membersection{::wxGetSingleChoiceIndex}\label{wxgetsinglechoiceindex}
|
\membersection{::wxGetSingleChoiceIndex}\label{wxgetsinglechoiceindex}
|
||||||
|
|
||||||
\func{int}{wxGetSingleChoiceIndex}{\param{const wxString\& }{message}, \param{const wxString\& }{caption}, \param{int}{ n}, \param{const wxString\& }{choices[]},\\
|
\func{int}{wxGetSingleChoiceIndex}{\param{const wxString\& }{message}, \param{const wxString\& }{caption}, \param{int}{ n}, \param{const wxString\& }{choices[]},\\
|
||||||
\param{wxWindow *}{parent = NULL}, \param{int}{ x = -1}, \param{int}{ y = -1},\\
|
\param{wxWindow *}{parent = NULL}, \param{int}{ x = -1}, \param{int}{ y = -1},\\
|
||||||
\param{bool}{ centre = TRUE}, \param{int }{width=150}, \param{int }{height=200}}
|
\param{bool}{ centre = TRUE}, \param{int }{width=150}, \param{int }{height=200}}
|
||||||
|
|
||||||
As {\bf wxGetSingleChoice} but returns the index representing the selected string.
|
As {\bf wxGetSingleChoice} but returns the index representing the selected string.
|
||||||
If the user pressed cancel, -1 is returned.
|
If the user pressed cancel, -1 is returned.
|
||||||
@@ -587,8 +586,8 @@ If the user pressed cancel, -1 is returned.
|
|||||||
\membersection{::wxGetSingleChoiceData}\label{wxgetsinglechoicedata}
|
\membersection{::wxGetSingleChoiceData}\label{wxgetsinglechoicedata}
|
||||||
|
|
||||||
\func{wxString}{wxGetSingleChoiceData}{\param{const wxString\& }{message}, \param{const wxString\& }{caption}, \param{int}{ n}, \param{const wxString\& }{choices[]},\\
|
\func{wxString}{wxGetSingleChoiceData}{\param{const wxString\& }{message}, \param{const wxString\& }{caption}, \param{int}{ n}, \param{const wxString\& }{choices[]},\\
|
||||||
\param{const wxString\& }{client\_data[]}, \param{wxWindow *}{parent = NULL}, \param{int}{ x = -1},\\
|
\param{const wxString\& }{client\_data[]}, \param{wxWindow *}{parent = NULL}, \param{int}{ x = -1},\\
|
||||||
\param{int}{ y = -1}, \param{bool}{ centre = TRUE}, \param{int }{width=150}, \param{int }{height=200}}
|
\param{int}{ y = -1}, \param{bool}{ centre = TRUE}, \param{int }{width=150}, \param{int }{height=200}}
|
||||||
|
|
||||||
As {\bf wxGetSingleChoice} but takes an array of client data pointers
|
As {\bf wxGetSingleChoice} but takes an array of client data pointers
|
||||||
corresponding to the strings, and returns one of these pointers.
|
corresponding to the strings, and returns one of these pointers.
|
||||||
@@ -600,7 +599,7 @@ corresponding to the strings, and returns one of these pointers.
|
|||||||
\membersection{::wxMessageBox}\label{wxmessagebox}
|
\membersection{::wxMessageBox}\label{wxmessagebox}
|
||||||
|
|
||||||
\func{int}{wxMessageBox}{\param{const wxString\& }{message}, \param{const wxString\& }{caption = ``Message"}, \param{int}{ style = wxOK \pipe wxCENTRE},\\
|
\func{int}{wxMessageBox}{\param{const wxString\& }{message}, \param{const wxString\& }{caption = ``Message"}, \param{int}{ style = wxOK \pipe wxCENTRE},\\
|
||||||
\param{wxWindow *}{parent = NULL}, \param{int}{ x = -1}, \param{int}{ y = -1}}
|
\param{wxWindow *}{parent = NULL}, \param{int}{ x = -1}, \param{int}{ y = -1}}
|
||||||
|
|
||||||
General purpose message dialog. {\it style} may be a bit list of the
|
General purpose message dialog. {\it style} may be a bit list of the
|
||||||
following identifiers:
|
following identifiers:
|
||||||
@@ -645,22 +644,20 @@ The symbols are not shown when the generic function is used.
|
|||||||
|
|
||||||
\membersection{::wxShowTip}\label{wxshowtip}
|
\membersection{::wxShowTip}\label{wxshowtip}
|
||||||
|
|
||||||
\func{bool}{wxShowTip}{
|
\func{bool}{wxShowTip}{\param{wxWindow *}{parent},
|
||||||
\param{wxWindow *}{parent},
|
\param{wxTipProvider *}{tipProvider},
|
||||||
\param{wxTipProvider *}{tipProvider},
|
\param{bool }{showAtStartup = TRUE}}
|
||||||
\param{bool }{showAtStartup = TRUE}}
|
|
||||||
|
|
||||||
This function shows a "startup tip" to the user.
|
This function shows a "startup tip" to the user.
|
||||||
|
|
||||||
\docparam{parent}{The parent window for the modal dialog}
|
\docparam{parent}{The parent window for the modal dialog}
|
||||||
|
|
||||||
\docparam{tipProvider}{An object which is used to get the text of the tips.
|
\docparam{tipProvider}{An object which is used to get the text of the tips.
|
||||||
It may be created with
|
It may be created with the \helpref{wxCreateFileTipProvider}{wxcreatefiletipprovider} function.}
|
||||||
\helpref{wxCreateFileTipProvider}{wxcreatefiletipprovider} function.}
|
|
||||||
|
|
||||||
\docparam{showAtStartup}{Should be TRUE if startup tips are shown, FALSE
|
\docparam{showAtStartup}{Should be TRUE if startup tips are shown, FALSE
|
||||||
otherwise. This is used as the initial value for "Show tips at startup"
|
otherwise. This is used as the initial value for "Show tips at startup"
|
||||||
checkbox which is shown in the tips dialog.}
|
checkbox which is shown in the tips dialog.}
|
||||||
|
|
||||||
\wxheading{See also:}
|
\wxheading{See also:}
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
wxWindows 2.1.10
|
wxWindows 2.1.11
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
Welcome to wxWindows 2, a sophisticated cross-platform C++
|
Welcome to wxWindows 2, a sophisticated cross-platform C++
|
||||||
@@ -21,20 +21,30 @@ important documents and samples.
|
|||||||
Changes in this release
|
Changes in this release
|
||||||
-----------------------
|
-----------------------
|
||||||
|
|
||||||
These are the major improvements:
|
These are some of the major improvements:
|
||||||
|
|
||||||
wxWindows 2.1.10
|
wxWindows 2.1.11
|
||||||
================
|
================
|
||||||
|
|
||||||
- Numerous bug fixes and consistency improvements.
|
- Numerous bug fixes and consistency improvements.
|
||||||
- Further samples.
|
- Further samples.
|
||||||
- Factoring out of some code into base classes, for easier
|
- Factoring out of some code into base classes, for easier
|
||||||
maintenance.
|
maintenance.
|
||||||
|
- Ability to compile library in console (non-GUI) mode.
|
||||||
- Integration of wxHTML widget and help controller into
|
- Integration of wxHTML widget and help controller into
|
||||||
wxWindows. wxHTML allows HTML viewing and printing.
|
wxWindows. wxHTML allows HTML viewing and printing.
|
||||||
- New classes wxChrono, wxDialUpManager, wxFontEnumerator,
|
- New classes wxChrono, wxDialUpManager, wxFontEnumerator,
|
||||||
wxWizard, etc.
|
wxWizard, wxStaticLine, etc.
|
||||||
|
- wxShowTip for showing 'startup tips' to the user.
|
||||||
- wxSocket and wxThread classes rewritten.
|
- wxSocket and wxThread classes rewritten.
|
||||||
|
- New, consistent drag and drop API (not wxMotif).
|
||||||
|
- Better-looking dialogs in wxGTK.
|
||||||
|
- wxSizers reimplemented and used to specify window layout
|
||||||
|
for some generic dialogs.
|
||||||
|
- New, more sophisticated wxGrid class (in beta). The old grid
|
||||||
|
class can still be used.
|
||||||
|
- Text alignment options in wxStaticText.
|
||||||
|
- wxImage class extended to read PCX and GIF files.
|
||||||
- Documentation improvements.
|
- Documentation improvements.
|
||||||
|
|
||||||
Platforms supported
|
Platforms supported
|
||||||
|
@@ -613,6 +613,7 @@ public:
|
|||||||
*ypos = m_y;
|
*ypos = m_y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __WIN16__
|
||||||
void GetPosition(long *xpos, long *ypos) const
|
void GetPosition(long *xpos, long *ypos) const
|
||||||
{
|
{
|
||||||
if (xpos)
|
if (xpos)
|
||||||
@@ -620,6 +621,7 @@ public:
|
|||||||
if (ypos)
|
if (ypos)
|
||||||
*ypos = (long)m_y;
|
*ypos = (long)m_y;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Find the position of the event
|
// Find the position of the event
|
||||||
wxPoint GetPosition() const { return wxPoint(m_x, m_y); }
|
wxPoint GetPosition() const { return wxPoint(m_x, m_y); }
|
||||||
@@ -694,11 +696,13 @@ public:
|
|||||||
if (ypos) *ypos = m_y;
|
if (ypos) *ypos = m_y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __WIN16__
|
||||||
void GetPosition(long *xpos, long *ypos) const
|
void GetPosition(long *xpos, long *ypos) const
|
||||||
{
|
{
|
||||||
if (xpos) *xpos = (long)m_x;
|
if (xpos) *xpos = (long)m_x;
|
||||||
if (ypos) *ypos = (long)m_y;
|
if (ypos) *ypos = (long)m_y;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
wxPoint GetPosition() const
|
wxPoint GetPosition() const
|
||||||
{ return wxPoint(m_x, m_y); }
|
{ return wxPoint(m_x, m_y); }
|
||||||
|
@@ -57,9 +57,6 @@ public:
|
|||||||
// menu construction
|
// menu construction
|
||||||
// -----------------
|
// -----------------
|
||||||
|
|
||||||
// append a separator to the menu
|
|
||||||
void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
|
|
||||||
|
|
||||||
// append a normal item to the menu
|
// append a normal item to the menu
|
||||||
void Append(int id,
|
void Append(int id,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
@@ -69,6 +66,9 @@ public:
|
|||||||
DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, isCheckable));
|
DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, isCheckable));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// append a separator to the menu
|
||||||
|
void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); }
|
||||||
|
|
||||||
// append a submenu
|
// append a submenu
|
||||||
void Append(int id,
|
void Append(int id,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
|
@@ -215,7 +215,11 @@ extern LONG APIENTRY _EXPORT
|
|||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
// a wrapper macro for ZeroMemory()
|
// a wrapper macro for ZeroMemory()
|
||||||
|
#ifdef __WIN32__
|
||||||
#define wxZeroMemory(obj) ::ZeroMemory(&obj, sizeof(obj))
|
#define wxZeroMemory(obj) ::ZeroMemory(&obj, sizeof(obj))
|
||||||
|
#else
|
||||||
|
#define wxZeroMemory(obj) memset((void*) & obj, 0, sizeof(obj))
|
||||||
|
#endif
|
||||||
|
|
||||||
// make conversion from wxColour and COLORREF a bit less painful
|
// make conversion from wxColour and COLORREF a bit less painful
|
||||||
inline COLORREF wxColourToRGB(const wxColour& c)
|
inline COLORREF wxColourToRGB(const wxColour& c)
|
||||||
|
@@ -420,6 +420,12 @@
|
|||||||
#undef wxUSE_TOOLTIPS
|
#undef wxUSE_TOOLTIPS
|
||||||
#define wxUSE_TOOLTIPS 0
|
#define wxUSE_TOOLTIPS 0
|
||||||
|
|
||||||
|
#undef wxUSE_SPINCTRL
|
||||||
|
#define wxUSE_SPINCTRL 0
|
||||||
|
|
||||||
|
#undef wxUSE_SPINBTN
|
||||||
|
#define wxUSE_SPINBTN 0
|
||||||
|
|
||||||
#undef wxUSE_LIBPNG
|
#undef wxUSE_LIBPNG
|
||||||
#define wxUSE_LIBPNG 0
|
#define wxUSE_LIBPNG 0
|
||||||
|
|
||||||
|
@@ -49,18 +49,21 @@
|
|||||||
|
|
||||||
#ifdef __WIN16__
|
#ifdef __WIN16__
|
||||||
// Win16 doesn't have them
|
// Win16 doesn't have them
|
||||||
#undef wxUSE_SPINBUTTON
|
#ifndef wxUSE_SPINBTN
|
||||||
#define wxUSE_SPINBUTTON 0
|
#undef wxUSE_SPINBTN
|
||||||
|
#define wxUSE_SPINBTN 0
|
||||||
#else
|
#else
|
||||||
#if !defined(wxUSE_SPINBUTTON)
|
#if !defined(wxUSE_SPINBTN)
|
||||||
#define wxUSE_SPINBUTTON 1
|
#define wxUSE_SPINBTN 1
|
||||||
#endif
|
#endif
|
||||||
#endif // __WIN16__
|
#endif // __WIN16__
|
||||||
|
|
||||||
#include "wx/progdlg.h"
|
#include "wx/progdlg.h"
|
||||||
|
|
||||||
// VZ: this is a temp. hack, will remove soon
|
// VZ: this is a temp. hack, will remove soon
|
||||||
|
#ifndef wxUSE_SPINCTRL
|
||||||
#define wxUSE_SPINCTRL 1
|
#define wxUSE_SPINCTRL 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#if wxUSE_SPINCTRL
|
#if wxUSE_SPINCTRL
|
||||||
#include "wx/spinctrl.h"
|
#include "wx/spinctrl.h"
|
||||||
@@ -97,13 +100,13 @@ public:
|
|||||||
void OnPageChanging( wxNotebookEvent &event );
|
void OnPageChanging( wxNotebookEvent &event );
|
||||||
void OnSliderUpdate( wxCommandEvent &event );
|
void OnSliderUpdate( wxCommandEvent &event );
|
||||||
void OnUpdateLabel( wxCommandEvent &event );
|
void OnUpdateLabel( wxCommandEvent &event );
|
||||||
#if wxUSE_SPINBUTTON
|
#if wxUSE_SPINBTN
|
||||||
void OnSpinUp( wxSpinEvent &event );
|
void OnSpinUp( wxSpinEvent &event );
|
||||||
void OnSpinDown( wxSpinEvent &event );
|
void OnSpinDown( wxSpinEvent &event );
|
||||||
void OnSpinUpdate( wxSpinEvent &event );
|
void OnSpinUpdate( wxSpinEvent &event );
|
||||||
void OnUpdateShowProgress( wxUpdateUIEvent& event );
|
void OnUpdateShowProgress( wxUpdateUIEvent& event );
|
||||||
void OnShowProgress( wxCommandEvent &event );
|
void OnShowProgress( wxCommandEvent &event );
|
||||||
#endif // wxUSE_SPINBUTTON
|
#endif // wxUSE_SPINBTN
|
||||||
|
|
||||||
#if wxUSE_SPINCTRL
|
#if wxUSE_SPINCTRL
|
||||||
void OnSpinCtrl(wxSpinEvent& event);
|
void OnSpinCtrl(wxSpinEvent& event);
|
||||||
@@ -123,10 +126,10 @@ public:
|
|||||||
wxButton *m_fontButton;
|
wxButton *m_fontButton;
|
||||||
wxButton *m_lbSelectNum;
|
wxButton *m_lbSelectNum;
|
||||||
wxButton *m_lbSelectThis;
|
wxButton *m_lbSelectThis;
|
||||||
#if wxUSE_SPINBUTTON
|
#if wxUSE_SPINBTN
|
||||||
wxSpinButton *m_spinbutton;
|
wxSpinButton *m_spinbutton;
|
||||||
wxButton *m_btnProgress;
|
wxButton *m_btnProgress;
|
||||||
#endif // wxUSE_SPINBUTTON
|
#endif // wxUSE_SPINBTN
|
||||||
|
|
||||||
#if wxUSE_SPINCTRL
|
#if wxUSE_SPINCTRL
|
||||||
wxSpinCtrl *m_spinctrl;
|
wxSpinCtrl *m_spinctrl;
|
||||||
@@ -344,13 +347,13 @@ EVT_BUTTON (ID_RADIOBOX_FONT, MyPanel::OnRadioButtons)
|
|||||||
EVT_CHECKBOX (ID_RADIOBOX_ENABLE, MyPanel::OnRadioButtons)
|
EVT_CHECKBOX (ID_RADIOBOX_ENABLE, MyPanel::OnRadioButtons)
|
||||||
EVT_BUTTON (ID_SET_FONT, MyPanel::OnSetFont)
|
EVT_BUTTON (ID_SET_FONT, MyPanel::OnSetFont)
|
||||||
EVT_SLIDER (ID_SLIDER, MyPanel::OnSliderUpdate)
|
EVT_SLIDER (ID_SLIDER, MyPanel::OnSliderUpdate)
|
||||||
#if wxUSE_SPINBUTTON
|
#if wxUSE_SPINBTN
|
||||||
EVT_SPIN (ID_SPIN, MyPanel::OnSpinUpdate)
|
EVT_SPIN (ID_SPIN, MyPanel::OnSpinUpdate)
|
||||||
EVT_SPIN_UP (ID_SPIN, MyPanel::OnSpinUp)
|
EVT_SPIN_UP (ID_SPIN, MyPanel::OnSpinUp)
|
||||||
EVT_SPIN_DOWN (ID_SPIN, MyPanel::OnSpinDown)
|
EVT_SPIN_DOWN (ID_SPIN, MyPanel::OnSpinDown)
|
||||||
EVT_UPDATE_UI (ID_BTNPROGRESS, MyPanel::OnUpdateShowProgress)
|
EVT_UPDATE_UI (ID_BTNPROGRESS, MyPanel::OnUpdateShowProgress)
|
||||||
EVT_BUTTON (ID_BTNPROGRESS, MyPanel::OnShowProgress)
|
EVT_BUTTON (ID_BTNPROGRESS, MyPanel::OnShowProgress)
|
||||||
#endif // wxUSE_SPINBUTTON
|
#endif // wxUSE_SPINBTN
|
||||||
#if wxUSE_SPINCTRL
|
#if wxUSE_SPINCTRL
|
||||||
EVT_SPIN (ID_SPINCTRL, MyPanel::OnSpinCtrl)
|
EVT_SPIN (ID_SPINCTRL, MyPanel::OnSpinCtrl)
|
||||||
#endif // wxUSE_SPINCTRL
|
#endif // wxUSE_SPINCTRL
|
||||||
@@ -547,14 +550,14 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h )
|
|||||||
wxString s;
|
wxString s;
|
||||||
s << initialSpinValue;
|
s << initialSpinValue;
|
||||||
m_spintext = new wxTextCtrl( panel, -1, s, wxPoint(20,160), wxSize(80,-1) );
|
m_spintext = new wxTextCtrl( panel, -1, s, wxPoint(20,160), wxSize(80,-1) );
|
||||||
#if wxUSE_SPINBUTTON
|
#if wxUSE_SPINBTN
|
||||||
m_spinbutton = new wxSpinButton( panel, ID_SPIN, wxPoint(103,160), wxSize(80, -1) );
|
m_spinbutton = new wxSpinButton( panel, ID_SPIN, wxPoint(103,160), wxSize(80, -1) );
|
||||||
m_spinbutton->SetRange(-10,30);
|
m_spinbutton->SetRange(-10,30);
|
||||||
m_spinbutton->SetValue(initialSpinValue);
|
m_spinbutton->SetValue(initialSpinValue);
|
||||||
|
|
||||||
m_btnProgress = new wxButton( panel, ID_BTNPROGRESS, "Show progress dialog",
|
m_btnProgress = new wxButton( panel, ID_BTNPROGRESS, "Show progress dialog",
|
||||||
wxPoint(300, 160) );
|
wxPoint(300, 160) );
|
||||||
#endif // wxUSE_SPINBUTTON
|
#endif // wxUSE_SPINBTN
|
||||||
|
|
||||||
#if wxUSE_SPINCTRL
|
#if wxUSE_SPINCTRL
|
||||||
m_spinctrl = new wxSpinCtrl( panel, ID_SPINCTRL, "", wxPoint(200, 160), wxSize(80, -1) );
|
m_spinctrl = new wxSpinCtrl( panel, ID_SPINCTRL, "", wxPoint(200, 160), wxSize(80, -1) );
|
||||||
@@ -994,7 +997,7 @@ void MyPanel::OnSpinCtrl(wxSpinEvent& event)
|
|||||||
|
|
||||||
#endif // wxUSE_SPINCTRL
|
#endif // wxUSE_SPINCTRL
|
||||||
|
|
||||||
#if wxUSE_SPINBUTTON
|
#if wxUSE_SPINBTN
|
||||||
void MyPanel::OnSpinUp( wxSpinEvent &event )
|
void MyPanel::OnSpinUp( wxSpinEvent &event )
|
||||||
{
|
{
|
||||||
wxString value;
|
wxString value;
|
||||||
@@ -1087,7 +1090,7 @@ void MyPanel::OnShowProgress( wxCommandEvent& WXUNUSED(event) )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_SPINBUTTON
|
#endif // wxUSE_SPINBTN
|
||||||
|
|
||||||
MyPanel::~MyPanel()
|
MyPanel::~MyPanel()
|
||||||
{
|
{
|
||||||
|
7
samples/font/font.def
Normal file
7
samples/font/font.def
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
NAME Font
|
||||||
|
DESCRIPTION 'wxWindows font sample'
|
||||||
|
EXETYPE WINDOWS
|
||||||
|
CODE PRELOAD MOVEABLE DISCARDABLE
|
||||||
|
DATA PRELOAD MOVEABLE MULTIPLE
|
||||||
|
HEAPSIZE 4048
|
||||||
|
STACKSIZE 16000
|
16
samples/font/makefile.b32
Normal file
16
samples/font/makefile.b32
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.b32
|
||||||
|
# Author: Julian Smart
|
||||||
|
# Created: 1999
|
||||||
|
# Updated:
|
||||||
|
# Copyright:
|
||||||
|
#
|
||||||
|
# Makefile : Builds sample for 32-bit BC++
|
||||||
|
|
||||||
|
WXDIR = $(WXWIN)
|
||||||
|
|
||||||
|
TARGET=font
|
||||||
|
OBJECTS = $(TARGET).obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.b32
|
||||||
|
|
19
samples/font/makefile.bcc
Normal file
19
samples/font/makefile.bcc
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.bcc
|
||||||
|
# Author: Julian Smart
|
||||||
|
# Created: 1998
|
||||||
|
# Updated:
|
||||||
|
#
|
||||||
|
# Builds a BC++ 16-bit sample
|
||||||
|
|
||||||
|
!if "$(WXWIN)" == ""
|
||||||
|
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
||||||
|
!endif
|
||||||
|
|
||||||
|
WXDIR = $(WXWIN)
|
||||||
|
|
||||||
|
TARGET=font
|
||||||
|
OBJECTS=$(TARGET).obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.bcc
|
||||||
|
|
16
samples/font/makefile.g95
Normal file
16
samples/font/makefile.g95
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.g95
|
||||||
|
# Author: Julian Smart
|
||||||
|
# Created: 1999
|
||||||
|
# Updated:
|
||||||
|
# Copyright: (c) Julian Smart, 1999
|
||||||
|
#
|
||||||
|
# Makefile for wxWindows sample (Cygwin/Mingw32).
|
||||||
|
|
||||||
|
WXDIR = ../..
|
||||||
|
|
||||||
|
TARGET=font
|
||||||
|
OBJECTS = $(TARGET).o
|
||||||
|
|
||||||
|
include $(WXDIR)\src\makeprog.g95
|
||||||
|
|
15
samples/font/makefile.wat
Normal file
15
samples/font/makefile.wat
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#
|
||||||
|
# Makefile for WATCOM
|
||||||
|
#
|
||||||
|
# Created by Julian Smart, January 1999
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
WXDIR = $(%WXWIN)
|
||||||
|
|
||||||
|
PROGRAM = font
|
||||||
|
OBJECTS = $(PROGRAM).obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
|
16
samples/menu/makefile.b32
Normal file
16
samples/menu/makefile.b32
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.b32
|
||||||
|
# Author: Julian Smart
|
||||||
|
# Created: 1999
|
||||||
|
# Updated:
|
||||||
|
# Copyright:
|
||||||
|
#
|
||||||
|
# Makefile : Builds sample for 32-bit BC++
|
||||||
|
|
||||||
|
WXDIR = $(WXWIN)
|
||||||
|
|
||||||
|
TARGET=menu
|
||||||
|
OBJECTS = $(TARGET).obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.b32
|
||||||
|
|
19
samples/menu/makefile.bcc
Normal file
19
samples/menu/makefile.bcc
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.bcc
|
||||||
|
# Author: Julian Smart
|
||||||
|
# Created: 1998
|
||||||
|
# Updated:
|
||||||
|
#
|
||||||
|
# Builds a BC++ 16-bit sample
|
||||||
|
|
||||||
|
!if "$(WXWIN)" == ""
|
||||||
|
!error You must define the WXWIN variable in autoexec.bat, e.g. WXWIN=c:\wx
|
||||||
|
!endif
|
||||||
|
|
||||||
|
WXDIR = $(WXWIN)
|
||||||
|
|
||||||
|
TARGET=menu
|
||||||
|
OBJECTS=$(TARGET).obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.bcc
|
||||||
|
|
16
samples/menu/makefile.g95
Normal file
16
samples/menu/makefile.g95
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.g95
|
||||||
|
# Author: Julian Smart
|
||||||
|
# Created: 1999
|
||||||
|
# Updated:
|
||||||
|
# Copyright: (c) Julian Smart, 1999
|
||||||
|
#
|
||||||
|
# Makefile for wxWindows sample (Cygwin/Mingw32).
|
||||||
|
|
||||||
|
WXDIR = ../..
|
||||||
|
|
||||||
|
TARGET=menu
|
||||||
|
OBJECTS = $(TARGET).o
|
||||||
|
|
||||||
|
include $(WXDIR)\src\makeprog.g95
|
||||||
|
|
18
samples/menu/makefile.vc
Normal file
18
samples/menu/makefile.vc
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
#
|
||||||
|
# File: makefile.vc
|
||||||
|
# Author: Julian Smart
|
||||||
|
# Created: 1999
|
||||||
|
# Updated:
|
||||||
|
# Copyright: (c) Julian Smart
|
||||||
|
#
|
||||||
|
# Makefile : Builds sample (VC++, WIN32)
|
||||||
|
# Use FINAL=1 argument to nmake to build final version with no debug info.
|
||||||
|
|
||||||
|
# Set WXDIR for your system
|
||||||
|
WXDIR = $(WXWIN)
|
||||||
|
|
||||||
|
PROGRAM=menu
|
||||||
|
OBJECTS = $(PROGRAM).obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.vc
|
||||||
|
|
15
samples/menu/makefile.wat
Normal file
15
samples/menu/makefile.wat
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#
|
||||||
|
# Makefile for WATCOM
|
||||||
|
#
|
||||||
|
# Created by Julian Smart, January 1999
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
WXDIR = $(%WXWIN)
|
||||||
|
|
||||||
|
PROGRAM = menu
|
||||||
|
OBJECTS = $(PROGRAM).obj
|
||||||
|
|
||||||
|
!include $(WXDIR)\src\makeprog.wat
|
||||||
|
|
||||||
|
|
7
samples/menu/menu.def
Normal file
7
samples/menu/menu.def
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
NAME Menu
|
||||||
|
DESCRIPTION 'Menu wxWindows sample'
|
||||||
|
EXETYPE WINDOWS
|
||||||
|
CODE PRELOAD MOVEABLE DISCARDABLE
|
||||||
|
DATA PRELOAD MOVEABLE MULTIPLE
|
||||||
|
HEAPSIZE 4048
|
||||||
|
STACKSIZE 16000
|
1
samples/menu/menu.rc
Normal file
1
samples/menu/menu.rc
Normal file
@@ -0,0 +1 @@
|
|||||||
|
#include "wx/msw/wx.rc"
|
@@ -9,7 +9,7 @@
|
|||||||
# Use FINAL=1 argument to nmake to build final version with no debug info.
|
# Use FINAL=1 argument to nmake to build final version with no debug info.
|
||||||
|
|
||||||
# Set WXDIR for your system
|
# Set WXDIR for your system
|
||||||
WXDIR = j:\dev\wx2\wxWindows
|
WXDIR = $(WXWIN)
|
||||||
|
|
||||||
PROGRAM=minimal
|
PROGRAM=minimal
|
||||||
OBJECTS = $(PROGRAM).obj
|
OBJECTS = $(PROGRAM).obj
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
WXDIR = $(WXWIN)
|
WXDIR = $(WXWIN)
|
||||||
WXINC = $(WXDIR)\include
|
WXINC = $(WXDIR)\include
|
||||||
|
|
||||||
WXLIB=$(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
|
WXLIB=$(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib $(WXDIR)\lib\wx5.lib
|
||||||
|
|
||||||
# Suffixes
|
# Suffixes
|
||||||
OBJSUFF=obj
|
OBJSUFF=obj
|
||||||
|
@@ -397,6 +397,7 @@ wxFont wxCreateFontFromLogFont(const LOGFONT *logFont)
|
|||||||
fontEncoding = wxFONTENCODING_CP1252;
|
fontEncoding = wxFONTENCODING_CP1252;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
#ifdef __WIN32__
|
||||||
case EASTEUROPE_CHARSET:
|
case EASTEUROPE_CHARSET:
|
||||||
fontEncoding = wxFONTENCODING_CP1250;
|
fontEncoding = wxFONTENCODING_CP1250;
|
||||||
break;
|
break;
|
||||||
@@ -424,6 +425,7 @@ wxFont wxCreateFontFromLogFont(const LOGFONT *logFont)
|
|||||||
case TURKISH_CHARSET:
|
case TURKISH_CHARSET:
|
||||||
fontEncoding = wxFONTENCODING_CP1254;
|
fontEncoding = wxFONTENCODING_CP1254;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
|
||||||
case OEM_CHARSET:
|
case OEM_CHARSET:
|
||||||
fontEncoding = wxFONTENCODING_CP437;
|
fontEncoding = wxFONTENCODING_CP437;
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
# This file was automatically generated by tmake at 00:24, 1999/10/28
|
# This file was automatically generated by tmake at 11:56, 1999/11/06
|
||||||
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
|
# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE DOS.T!
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -83,7 +83,8 @@ GENERICOBJS= $(GENDIR)\busyinfo.obj \
|
|||||||
$(GENDIR)\treectrl.obj \
|
$(GENDIR)\treectrl.obj \
|
||||||
$(GENDIR)\wizard.obj
|
$(GENDIR)\wizard.obj
|
||||||
|
|
||||||
COMMONOBJS = \
|
# we can't have all objects in one list because the library becomes too big
|
||||||
|
COMMONOBJS1 = \
|
||||||
$(COMMDIR)\y_tab.obj \
|
$(COMMDIR)\y_tab.obj \
|
||||||
$(COMMDIR)\appcmn.obj \
|
$(COMMDIR)\appcmn.obj \
|
||||||
$(COMMDIR)\choiccmn.obj \
|
$(COMMDIR)\choiccmn.obj \
|
||||||
@@ -111,6 +112,7 @@ COMMONOBJS = \
|
|||||||
$(COMMDIR)\filefn.obj \
|
$(COMMDIR)\filefn.obj \
|
||||||
$(COMMDIR)\filesys.obj \
|
$(COMMDIR)\filesys.obj \
|
||||||
$(COMMDIR)\fontcmn.obj \
|
$(COMMDIR)\fontcmn.obj \
|
||||||
|
$(COMMDIR)\fontmap.obj \
|
||||||
$(COMMDIR)\framecmn.obj \
|
$(COMMDIR)\framecmn.obj \
|
||||||
$(COMMDIR)\fs_inet.obj \
|
$(COMMDIR)\fs_inet.obj \
|
||||||
$(COMMDIR)\fs_zip.obj \
|
$(COMMDIR)\fs_zip.obj \
|
||||||
@@ -134,7 +136,9 @@ COMMONOBJS = \
|
|||||||
$(COMMDIR)\mstream.obj \
|
$(COMMDIR)\mstream.obj \
|
||||||
$(COMMDIR)\object.obj \
|
$(COMMDIR)\object.obj \
|
||||||
$(COMMDIR)\objstrm.obj \
|
$(COMMDIR)\objstrm.obj \
|
||||||
$(COMMDIR)\odbc.obj \
|
$(COMMDIR)\odbc.obj
|
||||||
|
|
||||||
|
COMMONOBJS2 = \
|
||||||
$(COMMDIR)\paper.obj \
|
$(COMMDIR)\paper.obj \
|
||||||
$(COMMDIR)\prntbase.obj \
|
$(COMMDIR)\prntbase.obj \
|
||||||
$(COMMDIR)\resource.obj \
|
$(COMMDIR)\resource.obj \
|
||||||
@@ -196,6 +200,7 @@ MSWOBJS1 = $(MSWDIR)\accel.obj \
|
|||||||
$(MSWDIR)\filedlg.obj \
|
$(MSWDIR)\filedlg.obj \
|
||||||
$(MSWDIR)\font.obj \
|
$(MSWDIR)\font.obj \
|
||||||
$(MSWDIR)\fontdlg.obj \
|
$(MSWDIR)\fontdlg.obj \
|
||||||
|
$(MSWDIR)\fontutil.obj \
|
||||||
$(MSWDIR)\frame.obj \
|
$(MSWDIR)\frame.obj \
|
||||||
$(MSWDIR)\gaugemsw.obj \
|
$(MSWDIR)\gaugemsw.obj \
|
||||||
$(MSWDIR)\gdiobj.obj \
|
$(MSWDIR)\gdiobj.obj \
|
||||||
@@ -246,45 +251,55 @@ MSWOBJS2 = $(MSWDIR)\palette.obj \
|
|||||||
# $(OLEDIR)\xpmhand \
|
# $(OLEDIR)\xpmhand \
|
||||||
# $(OLEDIR)\pnghand \
|
# $(OLEDIR)\pnghand \
|
||||||
|
|
||||||
OBJECTS = $(COMMONOBJS) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
|
OBJECTS = $(COMMONOBJS1) $(COMMONOBJS2) $(GENERICOBJS) $(MSWOBJS1) $(MSWOBJS2)
|
||||||
|
|
||||||
# Normal, static library
|
# Normal, static library
|
||||||
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib
|
all: $(DUMMYOBJ) $(WXDIR)\lib\wx1.lib $(WXDIR)\lib\wx2.lib $(WXDIR)\lib\wx3.lib $(WXDIR)\lib\wx4.lib $(WXDIR)\lib\wx5.lib
|
||||||
|
|
||||||
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS) $(PERIPH_LIBS)
|
$(WXDIR)\lib\wx1.lib: $(COMMONOBJS1) $(PERIPH_LIBS)
|
||||||
-erase $(WXDIR)\lib\wx1.lib
|
-erase $(WXDIR)\lib\wx1.lib
|
||||||
lib /PAGESIZE:128 @<<
|
lib /PAGESIZE:128 @<<
|
||||||
$(WXDIR)\lib\wx1.lib
|
$(WXDIR)\lib\wx1.lib
|
||||||
y
|
y
|
||||||
$(COMMONOBJS) $(PERIPH_LIBS)
|
$(COMMONOBJS1) $(PERIPH_LIBS)
|
||||||
nul
|
nul
|
||||||
;
|
;
|
||||||
<<
|
<<
|
||||||
|
|
||||||
$(WXDIR)\lib\wx2.lib: $(GENERICOBJS)
|
$(WXDIR)\lib\wx2.lib: $(COMMONOBJS2)
|
||||||
-erase $(WXDIR)\lib\wx2.lib
|
-erase $(WXDIR)\lib\wx2.lib
|
||||||
lib /PAGESIZE:128 @<<
|
lib /PAGESIZE:128 @<<
|
||||||
$(WXDIR)\lib\wx2.lib
|
$(WXDIR)\lib\wx2.lib
|
||||||
y
|
y
|
||||||
|
$(COMMONOBJS2)
|
||||||
|
nul
|
||||||
|
;
|
||||||
|
<<
|
||||||
|
|
||||||
|
$(WXDIR)\lib\wx3.lib: $(GENERICOBJS)
|
||||||
|
-erase $(WXDIR)\lib\wx3.lib
|
||||||
|
lib /PAGESIZE:128 @<<
|
||||||
|
$(WXDIR)\lib\wx3.lib
|
||||||
|
y
|
||||||
$(GENERICOBJS)
|
$(GENERICOBJS)
|
||||||
nul
|
nul
|
||||||
;
|
;
|
||||||
<<
|
<<
|
||||||
|
|
||||||
$(WXDIR)\lib\wx3.lib: $(MSWOBJS1)
|
$(WXDIR)\lib\wx4.lib: $(MSWOBJS1)
|
||||||
-erase $(WXDIR)\lib\wx3.lib
|
-erase $(WXDIR)\lib\wx4.lib
|
||||||
lib /PAGESIZE:128 @<<
|
lib /PAGESIZE:128 @<<
|
||||||
$(WXDIR)\lib\wx3.lib
|
$(WXDIR)\lib\wx4.lib
|
||||||
y
|
y
|
||||||
$(MSWOBJS1)
|
$(MSWOBJS1)
|
||||||
nul
|
nul
|
||||||
;
|
;
|
||||||
<<
|
<<
|
||||||
|
|
||||||
$(WXDIR)\lib\wx4.lib: $(MSWOBJS2)
|
$(WXDIR)\lib\wx5.lib: $(MSWOBJS2)
|
||||||
-erase $(WXDIR)\lib\wx4.lib
|
-erase $(WXDIR)\lib\wx5.lib
|
||||||
lib /PAGESIZE:128 @<<
|
lib /PAGESIZE:128 @<<
|
||||||
$(WXDIR)\lib\wx4.lib
|
$(WXDIR)\lib\wx5.lib
|
||||||
y
|
y
|
||||||
$(MSWOBJS2)
|
$(MSWOBJS2)
|
||||||
nul
|
nul
|
||||||
@@ -462,6 +477,11 @@ $(MSWDIR)/fontdlg.obj: $*.$(SRCSUFF)
|
|||||||
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
||||||
<<
|
<<
|
||||||
|
|
||||||
|
$(MSWDIR)/fontutil.obj: $*.$(SRCSUFF)
|
||||||
|
cl @<<
|
||||||
|
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
$(MSWDIR)/frame.obj: $*.$(SRCSUFF)
|
$(MSWDIR)/frame.obj: $*.$(SRCSUFF)
|
||||||
cl @<<
|
cl @<<
|
||||||
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
||||||
@@ -812,6 +832,11 @@ $(COMMDIR)/fontcmn.obj: $*.$(SRCSUFF)
|
|||||||
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
||||||
<<
|
<<
|
||||||
|
|
||||||
|
$(COMMDIR)/fontmap.obj: $*.$(SRCSUFF)
|
||||||
|
cl @<<
|
||||||
|
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
||||||
|
<<
|
||||||
|
|
||||||
$(COMMDIR)/framecmn.obj: $*.$(SRCSUFF)
|
$(COMMDIR)/framecmn.obj: $*.$(SRCSUFF)
|
||||||
cl @<<
|
cl @<<
|
||||||
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
$(CPPFLAGS) /Fo$@ /c /Tp $*.$(SRCSUFF)
|
||||||
|
@@ -439,7 +439,7 @@ bool wxMenu::ProcessCommand(wxCommandEvent & event)
|
|||||||
(void)(*(m_callback))(*this, event);
|
(void)(*(m_callback))(*this, event);
|
||||||
processed = TRUE;
|
processed = TRUE;
|
||||||
}
|
}
|
||||||
#endif WXWIN_COMPATIBILITY
|
#endif // WXWIN_COMPATIBILITY
|
||||||
|
|
||||||
// Try the menu's event handler
|
// Try the menu's event handler
|
||||||
if ( !processed && GetEventHandler())
|
if ( !processed && GetEventHandler())
|
||||||
|
@@ -35,6 +35,8 @@
|
|||||||
// Can't resolve reference to CreateUpDownControl in
|
// Can't resolve reference to CreateUpDownControl in
|
||||||
// TWIN32, but could probably use normal CreateWindow instead.
|
// TWIN32, but could probably use normal CreateWindow instead.
|
||||||
|
|
||||||
|
#if wxUSE_SPINBTN
|
||||||
|
|
||||||
#if defined(__WIN95__) && !defined(__TWIN32__)
|
#if defined(__WIN95__) && !defined(__TWIN32__)
|
||||||
|
|
||||||
#include "wx/spinbutt.h"
|
#include "wx/spinbutt.h"
|
||||||
@@ -240,3 +242,7 @@ bool wxSpinButton::MSWCommand(WXUINT cmd, WXWORD id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // __WIN95__
|
#endif // __WIN95__
|
||||||
|
|
||||||
|
#endif
|
||||||
|
// wxUSE_SPINCTN
|
||||||
|
|
||||||
|
@@ -33,6 +33,8 @@
|
|||||||
#include "wx/wx.h"
|
#include "wx/wx.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_SPINCTRL
|
||||||
|
|
||||||
#if defined(__WIN95__)
|
#if defined(__WIN95__)
|
||||||
|
|
||||||
#include "wx/spinctrl.h"
|
#include "wx/spinctrl.h"
|
||||||
@@ -245,3 +247,7 @@ void wxSpinCtrl::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif // __WIN95__
|
#endif // __WIN95__
|
||||||
|
|
||||||
|
#endif
|
||||||
|
// wxUSE_SPINCTRL
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user