Commit Graph

15249 Commits

Author SHA1 Message Date
Julian Smart
1d7609197e Applied patch [ 602924 ] colours and effects in wxMSW::wxFontDialog
wxFontDialog effects only turned on if a valid colour was
provided in wxFontData


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 08:52:34 +00:00
Julian Smart
b814b81248 Committed a couple of IPC changes I forgot to do
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 08:30:52 +00:00
Vadim Zeitlin
a543e3ce7e choose implicit parent for the dialog boxes better, fixes weird focus jumps when using wxLog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 00:44:24 +00:00
Vadim Zeitlin
ae3047441e added a few WXDLLEXPORTS, corrected/expanded comments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 00:32:30 +00:00
Ron Lee
e0252fb681 More packaging updates for pending 2.3.3 release.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 22:58:21 +00:00
Gilles Depeyrot
a811affe70 added wxSpinCtrl::SetSelection method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 21:29:40 +00:00
Ron Lee
2ae8a35352 oops, make it build with wxbase too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 20:33:06 +00:00
Vadim Zeitlin
14bc59a252 another part of SetSelection() change I forgot to commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 20:24:25 +00:00
Vadim Zeitlin
f7a75af18d no changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 20:00:57 +00:00
Vadim Zeitlin
748333bd25 don't call CreatesMessageOutput() explicitly, it will be created on demand as/if/when needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 20:00:46 +00:00
Ron Lee
ec8c565daf added missing #include frame.h for mingw(3.2) build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 19:52:57 +00:00
Julian Smart
9a1725c45a Copy event type too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 19:01:31 +00:00
Stefan Neis
7e48d7d9fb Fixed apparent typo in wxGridCellAttr::MergeWith, hopefully fixing
bug 581558 (wxGrid.SetColAttr vs. SetCellAlignment)
Remove editor in Redimension. This should fix
        bug 593189 (wxGrid:delting rows doesn't hide editor)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 18:14:31 +00:00
Gilles Depeyrot
cd3c2375e6 corrected warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16915 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 17:35:03 +00:00
Václav Slavík
74c107ba48 fixes to newly added i18n code in XRC - don't use it if wxXRC_USE_LOCALE isn't used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 17:11:38 +00:00
Julian Smart
bbcd408aa7 Removed warnings from ipcbase.cpp
Removed extra wxYields from progress dialog
Yield on wxX11 yields twice


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 17:02:36 +00:00
Stefan Neis
a679468530 Clear attribute cache in Redimension to fix Bug 508407.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 16:34:17 +00:00
Julian Smart
7948c0c244 Applied patch [ 603104 ] wxX11 wxClientDC, wxPaintDC fix
This patch changes a pre-compile check to a run-time
check. The fix is that for windows that only using 1 X
window (like wxFrame) the client area needs to be
adjusted...

FL is one of the things that needs this patch to work ok
under wxX11.

Hans Van Leemputten


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 15:59:22 +00:00
Julian Smart
5a33bc097f Clean up string table before uninitializing DDEML
to cure crash on exit in memory-debug mode


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 15:48:58 +00:00
Stefan Neis
8403515064 Added some const qualifiers.
"Fixed" bug no 500487 by limiting wxGrid::DoGetBestSize's return value by
        DisplaySize.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 15:27:26 +00:00
Julian Smart
44379ce6fa Accidentally omitted code from previous patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 15:08:04 +00:00
Julian Smart
f010ad4812 Applied patch [ 600051 ] DDE and TCP improvements and fixes
By Michael Fielding

As discussed on wx-dev. some fixes and improvements for Interprocess Communication (IPC), using DDE and TCP.

1. DDE buffers were using a global buffer
2. TCP buffers were allocated each time needed, and Request would have caused memory leaks had it been used.

Fixed these both by using a self-resizing buffer in wxConnectionBase. Changed samples and docs to reflect the improved (but backward compatible) internal buffer management. wxConnectionBase could (in future) use wxMemoryBuffer.

3. IPC sample had trouble closing, causing crash, when closing server using window X button.

Because it was (effectively) trying to delete a window in OnExit, when that window was already destroyed. Fixed by making IPCDialog and MyConnection remember if they'd destroyed each other. It's not elegant, but either the connection or the window could be deleted first.

4. Docs for wxDDE... and wxTCP... duplicated eachother, supposed to have same API. Some parts unclear.

Patch removes dde and tcp-specific files (including from tipc.tex and classes.tex), and explains how ipc.h selects for you which one to use based on platform. Some other misc clarifications.

6. Client sample was suffering apparent memory leak because of not deleting connection object, and had a hack in there to do that.

In fact this was due to the derived OnDisconnect not deleting itself, as it does in base class. Mentioned need to do it in docs, fixed sample so that it does.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 14:48:16 +00:00
Václav Slavík
1affde0a6b fixed a small typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 11:41:01 +00:00
Ron Lee
e2450fa9b4 removed DoInit() straggler from appbase mods.
#include log.h

and so, wxbase builds again.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 03:16:52 +00:00
Stefan Neis
a373d23b14 Applied AutoWrap Renderer Bugfix by Roger Gammans (Patch 467479).
Blindly tried to fix crash reported by Roman Vanicek on Mailing list:
        SetCellHighlightColour sometimes segfaults in wxGTK. The
        application crashes in LookupAttr.
        Tentative explanation: Cache handling gets confused if LookupAttr gets
                called on wxGridNoCell.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 00:54:01 +00:00
Vadim Zeitlin
068a7cfeee implemented a dirty hack allowing us to keep activation after wxExecute(wxEXEC_SYNC) call
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 23:43:04 +00:00
Vadim Zeitlin
83a16cfa8c don't disable top level windows recursively
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 23:25:04 +00:00
Václav Slavík
c269cf6235 fixed font picker in wxHtmlHelpController, better UI is now used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 23:19:58 +00:00
Vadim Zeitlin
ff095200f7 fix for losing focus under Windows after showing the progress dialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 23:08:37 +00:00
Vadim Zeitlin
ad603bf790 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 22:57:16 +00:00
Vadim Zeitlin
739555e321 SetSelection() for generic wxSpinCtrl (forgot to commit before)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 22:52:24 +00:00
Stefan Neis
27f35b6674 Make use of new array functions.
Added redraw function (by Roger Gammans).
Added Cell overflow & multiple cells (Patch 518206).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 22:42:29 +00:00
Gilles Depeyrot
fb86524fc3 use include "..." instead of <...>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 22:36:13 +00:00
Gilles Depeyrot
788233da90 disable use of #pragma interface under Mac OS X
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 22:31:03 +00:00
Ron Lee
6c5672c0d4 symbols.txt is no longer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 20:06:31 +00:00
Julian Smart
a78a4f6033 Forgot to add wxX11 FAQ
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 19:00:47 +00:00
Julian Smart
0b0625e922 Some doc fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 16:27:35 +00:00
Václav Slavík
0653d364dd - applied patch that adds more i18n support to XRC handlers
- added ; to ends of lines in gettext output - needed for older gettext tools?


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 15:37:20 +00:00
Václav Slavík
02df379910 applied patch that adds more i18n support to XRC handlers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 15:37:06 +00:00
Julian Smart
48d2ab90ee Added log.h inclusion
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 12:49:19 +00:00
Julian Smart
de6ac3397d Applied patch [ 599043 ] fix for wxTreeCtrl/MSW right-click prob
Benjamin I. Williams

There currently is a very significant problem with the
right-click behavior in wxTreeCtrl. The attached patch
file fixes this problem.

To better understand the problem, load up the tree
control, and start right-clicking on items. Note how
the focus rectangle does not behave properly. Next,
enable multiple selection. Now select several items,
and start right-clicking on the selected items. Note
how the selection highlights disappear.

If you try the tree sample with the generic tree
control, you will notice that the problem does not
occur, and that the tree control behaves properly.

This patch brings the MSW tree control implementation
in line with the generic implementation. This is the
same behavior that one can notice in applications such
as windows explorer and Visual Studio.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 12:12:54 +00:00
Julian Smart
70373b5a57 Applied patch [ 600500 ] Tip-of-day: comments, translatable
By Robert O'Connor

This is a patch to wxTip Provider classes used by the "Tip of the day" dialog.

See wx-dev archives August 2002 for discussion of the functionality design.

It does 5 things:
-Support for comments inside the tips file. The pound character (#) is used, as recommended by Vadim.
-Allows optional easy translation support to tips, by marking them as translatable for gettext, by enclosing them in a _(""). Program will translate these tips at runtime from the active catalog.
-Blank lines or lines with just spaces are automatically skipped (I had to put this in, I keep wondering why I get blank tips sometimes and it is because the text file had a empty blank line at the end of the text file).
-There is a pluggable virtual function to preprocess to modify the tip in a derived class, in case something specialized is desired, such as variable expansion, etc, as recommended by Julian and Vadim.
-Now resets the tip counter if the previous tip is past the end of the file (ie you removed some tips, or changed tip files), as discussed on wx-dev.

This patch updates:
-The classes.
-The class documentation and the Tip-of-the-day topic overview documentation.
-The dialogs example, placing some new strings for the tips.txt file which demonstrate how to use the Tip-of-the-day features for in practice.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 12:08:02 +00:00
Julian Smart
b5b62eea2d Applied patch [ 601072 ] wxFileName::GetLongPath error & fix
By Michael Fielding (mfielding)

When using wxFileName::MakeRelativeTo with a new base of "x:\", the result is incorrect. It works fine when there is a subdirectory after x:\. I tracked this to a bug in GetLongPath; here is the fix.

Also, GetLongPath will now try and get as much long path as it can, failing only when part of the path cannot be found. eg

x:\existi~1\file not existing.new becomes
x:\existing directory\filenotexisting.new

instead of just staying the same.

Also, MakeRelative no longer makes filenames lowercase when it normalises them.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:42:12 +00:00
Gilles Depeyrot
af49c4b8a2 disable use of #pragma interface under Mac OS X
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:29:13 +00:00
Julian Smart
85d8c319d6 Applied patch [ 601957 ] wxGrid: Start editing with numberpad key
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:25:37 +00:00
Julian Smart
5cf69f76a1 Added RTTI macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:14:30 +00:00
David Webster
cfcebdb1bb Weekly updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 21:54:47 +00:00
Vadim Zeitlin
ef5f8ab626 don't use vfork() in wxExecute()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 21:38:12 +00:00
Vadim Zeitlin
cf6e951cf2 don't eat Shift-Ctrl-[XCV] keys
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 21:30:28 +00:00
Vadim Zeitlin
4d7b7fc212 mention that SetSelection(-1, -1) selects everything
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 21:29:27 +00:00