Some stubs corrections; Motif corrections incl. busy cursor fix; doc corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -146,6 +146,26 @@ There is a sample which demonstrates MFC and wxWindows code co-existing in the s
|
||||
application. However, don't expect to be able to enable wxWindows windows with OLE-2
|
||||
functionality using MFC.<P>
|
||||
|
||||
<H3>Why do I sometimes get bizarre crash problems using VC++ 5/6?</H3>
|
||||
|
||||
Some crash problems can be due to inconsistent compiler
|
||||
options (and of course this isn't limited to wxWindows).
|
||||
If strange/weird/impossible things start to happen please
|
||||
check (dumping IDE project file as makefile and doing text comparison
|
||||
if necessary) that the project settings, especially the list of defined
|
||||
symbols, struct packing, etc. are exactly the same for all items in
|
||||
the project. After this, delete everything (including PCH) and recompile.<P>
|
||||
|
||||
VC++ 5's optimization code seems to be broken and can
|
||||
cause problems: this can be seen when deleting an object Dialog
|
||||
Editor, in Release mode with optimizations on. If in doubt,
|
||||
switch off optimisations, although this will result in much
|
||||
larger executables. It seems possible that the library can be created with
|
||||
strong optimization, so long as the application is not strongly
|
||||
optimized. For example, in wxWindows project, set to 'Minimum
|
||||
Size'. In Dialog Editor project, set to 'Customize: Favor Small
|
||||
Code' (and no others). This will then work.<P>
|
||||
|
||||
|
||||
</font>
|
||||
|
||||
|
@@ -141,7 +141,7 @@ dialog boxes. By default, uses the frame associated with the first view.
|
||||
|
||||
\constfunc{wxString}{GetFilename}{\void}
|
||||
|
||||
Gets the filename associated with this document, or NULL if none is
|
||||
Gets the filename associated with this document, or "" if none is
|
||||
associated.
|
||||
|
||||
\membersection{wxDocument::GetFirstView}
|
||||
@@ -241,7 +241,7 @@ document, and notifies the views that the filename (in fact, the title) has chan
|
||||
|
||||
\func{virtual bool}{OnOpenDocument}{\param{const wxString\& }{filename}}
|
||||
|
||||
Constructs an input file stream for the given filename (which must not be NULL),
|
||||
Constructs an input file stream for the given filename (which must not be empty),
|
||||
and calls LoadObject. If LoadObject returns TRUE, the document is set to
|
||||
unmodified; otherwise, an error message box is displayed. The document's
|
||||
views are notified that the filename has changed, to give windows an opportunity
|
||||
@@ -251,7 +251,7 @@ to update their titles. All of the document's views are then updated.
|
||||
|
||||
\func{virtual bool}{OnSaveDocument}{\param{const wxString\& }{filename}}
|
||||
|
||||
Constructs an output file stream for the given filename (which must not be NULL),
|
||||
Constructs an output file stream for the given filename (which must not be empty),
|
||||
and calls SaveObject. If SaveObject returns TRUE, the document is set to
|
||||
unmodified; otherwise, an error message box is displayed.
|
||||
|
||||
|
@@ -31,25 +31,25 @@ Destructor.
|
||||
|
||||
\membersection{wxStringTokenizer::CountTokens}\label{wxstringtokenizercounttokens}
|
||||
|
||||
\constfunc{virtual int}{CountTokens}{\void}
|
||||
\constfunc{int}{CountTokens}{\void}
|
||||
|
||||
Returns the number of tokens in the input string.
|
||||
|
||||
\membersection{wxStringTokenizer::HasMoreToken}\label{wxstringtokenizerhasmoretoken}
|
||||
\membersection{wxStringTokenizer::HasMoreTokens}\label{wxstringtokenizerhasmoretokens}
|
||||
|
||||
\constfunc{virtual bool}{HasMoreToken}{\void}
|
||||
\constfunc{bool}{HasMoreTokens}{\void}
|
||||
|
||||
Returns TRUE if the tokenizer has further tokens.
|
||||
|
||||
\membersection{wxStringTokenizer::NextToken}\label{wxstringtokenizernexttoken}
|
||||
\membersection{wxStringTokenizer::GetNextToken}\label{wxstringtokenizergetnexttoken}
|
||||
|
||||
\constfunc{virtual wxString}{NextToken}{\void}
|
||||
\constfunc{wxString}{GetNextToken}{\void}
|
||||
|
||||
Returns the next token.
|
||||
|
||||
\membersection{wxStringTokenizer::GetString}\label{wxstringtokenizergetstring}
|
||||
|
||||
\constfunc{virtual wxString}{GetString}{\void}
|
||||
\constfunc{wxString}{GetString}{\void}
|
||||
|
||||
Returns the input string.
|
||||
|
||||
|
@@ -1683,11 +1683,13 @@ Sets the window's cursor.
|
||||
|
||||
\docparam{cursor}{Specifies the cursor that the window should normally display.}
|
||||
|
||||
\begin{comment}
|
||||
\wxheading{Remarks}
|
||||
|
||||
Under Windows, you sometimes need to call ::wxSetCursor in addition to this
|
||||
function if you want the cursor to change immediately, because under Windows,
|
||||
wxWindows only sets the global cursor when it detects mouse movement.
|
||||
\end{comment
|
||||
|
||||
\wxheading{See also}
|
||||
|
||||
|
@@ -131,6 +131,20 @@ Troubleshooting
|
||||
possible temporary workaround (comment out the final
|
||||
XtDestroyWidget from ~wxWindow in window.cpp).
|
||||
|
||||
- If you use flex and bison instead of yacc and lex, you may need
|
||||
to change the relevant part of src/motif/makefile.unx to read:
|
||||
|
||||
../common/y_tab.c: ../common/parser.y
|
||||
$(YACC) ../common/parser.y
|
||||
mv ../common/parser.tab.c ../common/y_tab.c
|
||||
|
||||
(the 'mv' command needs to be changed)
|
||||
|
||||
- Some compilers, such as Sun C++, may give a lot of warnings about
|
||||
virtual functions being hidden. Please ignore these, it's correct C++ syntax.
|
||||
If you find any incorrect instances, though, such as a
|
||||
missing 'const' in an overridden function, please let us know.
|
||||
|
||||
Other Notes
|
||||
-----------
|
||||
|
||||
|
@@ -137,6 +137,13 @@ optimized. For example, in wxWindows project, set to 'Minimum
|
||||
Size'. In Dialog Editor project, set to 'Customize: Favor Small
|
||||
Code' (and no others). This will then work.
|
||||
|
||||
Note (4): some crash problems can be due to inconsistent compiler
|
||||
options. If strange/weird/impossible things start to happen please
|
||||
check (dumping IDE project file as makefile and doing text comparison
|
||||
if necessary) that the project settings, especially the list of defined
|
||||
symbols, struct packing, etc. are exactly the same for all items in
|
||||
the project. After this, delete everything (including PCH) and recompile.
|
||||
|
||||
Visual C++ 1.5 compilation
|
||||
--------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user