Commit Graph

1766 Commits

Author SHA1 Message Date
Stefan Neis
aa5b885706 Commited John Labenski's patch giving access to the low level selection
representation (Patch 579754).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 13:58:25 +00:00
Julian Smart
4e3ad7c095 Removed rundant files, updated readme.txt.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 10:16:03 +00:00
Julian Smart
47610ec22a Added missing rejigged IPC Latex files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-06 22:38:25 +00:00
Václav Slavík
3a9a01661a documented need to install ZIP handler
(Julian's claim in previous commit was incorrect, mine is not)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-06 19:03:36 +00:00
Julian Smart
9832266054 Corrected wxMenu::Append item symbol documentation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-06 12:19:25 +00:00
Julian Smart
07ed7e32ee Added another reference to adding the zip handler.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-06 08:18:31 +00:00
Julian Smart
15f43e762c Added note about adding the zip handler when using wxHtmlHelpController.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-06 08:13:05 +00:00
Mattia Barbon
159f4b336e Revert apparently accidental commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 20:55:14 +00:00
Julian Smart
e11f2e1645 Applied patch [ 605188 ] Fix to draw 24 bit bitmaps
Derry Bryson

Fix to wxPrinterDC::DrawBitmap() to print 24 bit bitmaps
at 24 bits rather than 8 bits.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 19:59:34 +00:00
Julian Smart
dd23c25cde Applied patch [ 605189 ] add edit cancel notify to wxTreeEvent
Benjamin I. Williams

Currently there is no way of receiving notification
that a user cancelled an edit operation on a wxTreeCtrl
tree node label.

This patch adds a method "IsEditCancelled" to the
wxTreeEvent class. During an EVT_TREE_END_LABEL_EDIT
event, the programmer can now determine whether or not
the edit operation was cancelled by the user (by
pressing <ESC>).

This patch provides this implementation for both
wxMSW's wxTreeCtrl and the wxGenericTreeCtrl. Both
situations have been tested and work well.

The patch is not very invasive, and is much smaller
than I had expected.

Please see the relevent discussion on the wx-dev list
for more details.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 19:50:41 +00:00
Julian Smart
e015d1f7da Applied patch [ 603858 ] wxTextCtrl text alignment patch
Benjamin I. Williams

This patch implements three new flags for the
wxTextCtrl control. The flags are wxTE_LEFT,
wxTE_CENTRE, and wxTE_RIGHT. These flags can change
the way text is aligned inside an edit control, which
is useful when the user is editing numbers or dates.

At Vadim's recommendation, the patch implements the
alignment flags so they are equal to the corresponding
wxALIGN_* value. wxTE_LEFT is actually 0x0000, and is
just a place holder. wxTE_CENTRE is equal to
wx_ALIGN_CENTER_HORIZONTAL (0x0100), and wxTE_RIGHT is
equal to wxALIGN_RIGHT (0x0100). I couldn't agree more
with this idea.

As Vadim pointed out, choosing to set the text
alignment flags to the corresponding wxALIGN_* flags
has a slight negative side effect: the values 0x0100
and 0x0200 collide with the existing flags
wxTE_NO_VSCROLL and wxTE_AUTO_SCROLL. A valid point
was raised, however, which stated that the flags would
never really be used at the same time, and also that
wxTE_AUTO_SCROLL is (possibly) going to be deprecated
anyway.

While this collision is not really a problem, I didn't
like the idea of someone specifying wxTE_NO_VSCROLL and
ending up with with a centered text control ! Thus, I
chose to move both wxTE_NO_VSCROLL and wxTE_AUTO_SCROLL
down to the free bits 0x0002 and 0x0008, respectively.
I'll leave the final say up to Vadim and the rest of
you whether you want to move these flags down or keep
them where they are (with collisions). What truly
matters to me is that I can now create text controls
with the proper alignment!

This patch also updates the documentation.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 16:15:30 +00:00
Vadim Zeitlin
8705ab68e2 mention that wxBase builds with BC++ now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 14:21:51 +00:00
Vadim Zeitlin
390015c0ee generic status bar now:
1. works correctly (handles negative widths according to the docs/MSW/Univ)
2. has shorter and simpler GetFieldRect() implementation
3. ... which is also more efficient (pixel widths are cached)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 13:16:46 +00:00
Chris Elliott
b7b45f6ffc Introducing wxBase for borland based on Michael Fieldings patch 598106
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 11:16:46 +00:00
Ron Lee
0e080be64b Added (and documented) GetTraceMasks so userspace can probe the currently
allowed masks.  IMO its omission is a bug and it's non-threatening to
the freeze, so..


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 09:35:13 +00:00
Mattia Barbon
7975104d4a Small clarification in ::wxShowTip docs.
Added a wxPerl note to wxWindow::GetHandle


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 19:34:34 +00:00
Vadim Zeitlin
0c0cee1ed3 removed GetObjectType() ghost
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 23:23:28 +00:00
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
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
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
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
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
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
Vadim Zeitlin
9487bf1700 documented SetSelection()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 21:28:56 +00:00
Vadim Zeitlin
4d1cbdbe17 added Read64() and Write64() docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 21:05:53 +00:00
Vadim Zeitlin
a69be60b0f removed wxApp::DoInit(); added wxApp::CreateMessageOutput(); fixed wxMsgOutput memory leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 00:58:34 +00:00
Vadim Zeitlin
d7cbabe039 disable children when the parent is disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 00:34:08 +00:00
Mattia Barbon
62d3ee70e5 Documented wxListCtrl::GetColumnCount
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-29 16:46:25 +00:00
Mattia Barbon
02fd5400c0 Added exlicit make clean/cleanall in the sample makefile usage.
Added a note that makefiles are not for UNIX, just for Cugwin/MSYS/DOS
prompt.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-28 20:19:26 +00:00
Stefan Neis
0bc7468b1f Fixed version number.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-28 17:29:28 +00:00
Stefan Neis
1281c5c188 Added instructions for compiling with EMX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16843 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-28 16:28:07 +00:00
Vadim Zeitlin
1dfc73b8dc expanded OnExit() docs (patch 600043)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 19:01:23 +00:00
Vadim Zeitlin
594f942cfd updated ctor/Create() signature to match the real functions (bug #596178)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 18:59:25 +00:00
Vadim Zeitlin
14aea4f9bd added a section containing the preprocessor constants defined by wxWindows
(previous -- but heavily updated -- contents of docs/symbols.txt)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 18:41:49 +00:00
Vadim Zeitlin
dfa5becd4b moved the (updated) contents of this file to the manual
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 18:24:26 +00:00
Vadim Zeitlin
f33f16ec02 mention wxCHECK_VERSION
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 09:20:13 +00:00
Vadim Zeitlin
750cefbca2 deprecated static wxWizard::Create()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16806 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-27 09:17:36 +00:00
Vadim Zeitlin
cdb105516c mention the key code changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-23 20:35:24 +00:00
Vadim Zeitlin
a81705a3d4 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-23 15:59:29 +00:00
Julian Smart
95c0018510 Tidied up filename.tex
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 22:03:09 +00:00
Vadim Zeitlin
cdfb1ae1bc fixed a few typoes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 20:14:47 +00:00
Vadim Zeitlin
674c474f20 mention that Clear() and SetValue() *will* send EVT_TEXT events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 18:01:38 +00:00
Vadim Zeitlin
a4f25aef35 made wxFrame::SendSizeEvent() public and documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-22 17:03:38 +00:00
Julian Smart
ac240778d0 Added a line about MINGW32VERSION
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-21 07:31:00 +00:00
Vadim Zeitlin
411165f3f4 added and documented wxProcess::Is{Input|Error}Available() and IsInputOpened
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 22:33:20 +00:00
Vadim Zeitlin
7906613173 fixes for wxExecute() with IO redirection: wxStreamTempInputBuffer is now used under MSW as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 22:32:40 +00:00
Vadim Zeitlin
e1756d2af5 removed a few already implemented entries, added 3-satte checkbox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 19:12:13 +00:00
Julian Smart
131f9d9b19 Applied patch [ 597700 ] Fix proposal for wxJoystick under MSW
Proposed fixes for the wxWindows joystick code under
MSW.
Some of these would be valid for other platforms, too.

Events for buttons are named wrong, docs say different.
Docs say EVT_JOY_BUTTON_DOWN and
EVT_JOY_BUTTON_UP,
but the code says EVT_JOY_DOWN and EVT_JOY_UP. I
suggest
changing the code to match the docs.

wxJoystick::GetNumberJoysticks() should be a static
member
function. Having to create a joystick object to see if there
are joysticks is silly.

Docs for GetNumberJoysticks() must be changed; it returns
the
number of potentially connected joysticks, not the number of
actually connected. Alternatively, GetNumberJoysticks() and
others must be rewritten to conform with documentation,
including
remapping of wxWindows sequential joystick ID's to match
MSW non-sequential joystick ID's.

dwSize is not set when joyGetPosEx() is called. SEVERE
ERROR.

Error return value from functions should not be a legal
return,
for instance, wxJoystick::GetPOVCTSPosition() returns 0
for error,
but this is a legal return value.

GetButtonState() supports only four (out of 32) buttons.
Also, should return as bitmap (LSB = button 1). (Win32
does this,
although not documented as such).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 17:16:05 +00:00
Robert Roebling
3fc6e5fa23 Added scrolling of widgets to GTK 2.0.
Removied obsolete ifdef from toolbar code.
  Updated readme.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-20 15:48:14 +00:00