Stefan Csomor
cccf218e48
factoring common code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-04 10:26:36 +00:00
Vadim Zeitlin
d3a5f4096c
don't undef Windows symbols here, just include wx/msw/winundef.h [backport of 48116 from trunk]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-03 23:50:04 +00:00
Vadim Zeitlin
469db76712
handle failure of gtk_drag_begin() (which can happen e.g. because gdk_pointer_grab() failed) in DoDragDrop() (patch 1825237) + minor cleanup in trunk version of the code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-03 21:46:55 +00:00
Paul Cornett
33aefff95d
do not use [] around tr character ranges, it is not portable and not necessary
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-03 16:14:28 +00:00
Paul Cornett
782980f9b4
fix for configure error message "grep: Unmatched [ or [^"
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-03 16:02:40 +00:00
Stefan Csomor
43df4ed8f5
adding alignment, indent, and tab support (only 1 distance)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-03 13:53:02 +00:00
Kevin Ollivier
6eac055841
Commit header changes for radio box fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-02 17:30:32 +00:00
Vadim Zeitlin
7b83197b34
don't make the dialog 3 times as wide as the length of the label string, this is excessive (bug 1824673)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-02 16:11:08 +00:00
Vadim Zeitlin
481697d020
don't crash in HiglightAll() (called, in particular, from SortItems()) when the control is empty (patch 1821550)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-01 20:41:30 +00:00
Vadim Zeitlin
645bd39e5d
don't recreate wxLog target from ~wxLog (adaptation of changes in trunk r49587)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-01 20:35:45 +00:00
Julian Smart
1c26a14208
Sizing improvements and read-only preview controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-01 17:36:48 +00:00
David Elliott
a2ca9e95f1
Fix mouse coordinates in scrolled views to be those that wxWidgets expects.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-01 06:06:07 +00:00
David Elliott
a55c88bd35
Implement scrolling like wxWindow expects. That is, scrollbars send an event
...
which the application processes to scroll the window the desired amount rather
than letting the toolkit do it.
There's still a lot more to go w.r.t. coordinate system transformations.
Copyright 2007 Software 2000 Ltd.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-01 04:25:25 +00:00
Robin Dunn
5cd9237f3a
Ensure we don't reset the group parent if it wasn't set at the begining
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-31 23:31:35 +00:00
Robin Dunn
256d6b81c5
Patch from Niki Spahiev: Treat empty domain name the same as NULL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-31 23:05:53 +00:00
Vadim Zeitlin
ba678694f0
backport the WXDLLIMPEXP_FWD_XXX macros to 2.8 (patches 1822143 and 1822146)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-31 20:46:21 +00:00
Vadim Zeitlin
7d75181ca1
don't clear the selection in the edit control in SetInsertionPoint()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-31 18:55:58 +00:00
Vadim Zeitlin
49b337a8fc
make strings used in the dialog translatable (patch 1823372)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-31 16:08:18 +00:00
Kevin Ollivier
a45091ed51
Fix GetLabel and GetLabelText to be consistent with other platforms.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-31 01:59:45 +00:00
Kevin Ollivier
301f9db326
Implement IsItemShown and IsItemEnabled.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-31 01:58:25 +00:00
Kevin Ollivier
0f9706b3c8
Return the value set, even if we aren't currently using the value in the implementation. This keeps unit tests from asserting.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-31 01:57:13 +00:00
Robin Dunn
942d424dbe
Bump subrelease number
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-30 22:05:11 +00:00
Vadim Zeitlin
ec4a768339
compilation fix for WXWIN_COMPATIBILITY_2__4==1
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-30 00:32:18 +00:00
Vadim Zeitlin
e692a0354b
don't associate dummy NULL line to the root group [backport of r49476 from trunk]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 19:00:07 +00:00
Vadim Zeitlin
51a7e46bc6
define TTF_TRANSPARENT if it's absent from SDK headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 15:27:40 +00:00
Chris Elliott
36150c17ed
DMC does not have TTF_TRANSPARENT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 15:14:07 +00:00
Vadim Zeitlin
bf226ee6ea
fix syntax errors in the example
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 12:13:53 +00:00
Vadim Zeitlin
e0839f485f
fix syntax error in the example
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 12:11:55 +00:00
Václav Slavík
56ee0e3779
added WXDLLIMPEXP_FWD_FOO macros to 2.8 branch for forward compatibility with wx3
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 09:10:46 +00:00
Vadim Zeitlin
d334f03482
use TTF_TRANSPARENT to fix problem with flashing tooltips (patch 1821229)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 00:38:57 +00:00
Vadim Zeitlin
b2e013ad0f
use fixed TOOLINFO struct size instead of trying to (wrongly) deduce it from the _WIN32_IE value, fixes bug with tooltips not appearing under Windows 95
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 00:33:48 +00:00
Stefan Neis
6fe4c1b327
Applied patch #1821711 (workaround for Watcom inconsistency wrt Posix functions)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-28 18:50:06 +00:00
Vadim Zeitlin
872978fccb
don't delete uninitialized m_eventHandler pointer if initialization failed (patch 1819944)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-27 21:16:54 +00:00
Julian Smart
0340c1465f
Added wxVSCROLL to wxRichTextCtrls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-27 16:04:42 +00:00
Julian Smart
fafbc17819
Reverted recent docview string changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-27 09:25:04 +00:00
Julian Smart
c457168b21
Corrected duplicate ids
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-27 08:33:26 +00:00
Robin Dunn
3655aa7616
When freezing a top-level window freeze its top children instead.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-26 22:35:54 +00:00
Robin Dunn
3aca1743e7
Patch [ 1820537 ] Fix for uninitialized alpha value in wxColour::FromRGBColor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-26 21:34:11 +00:00
Robin Dunn
796f0bebbb
Move the %disownarg directive to the .i file
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-26 19:06:57 +00:00
Julian Smart
bf3078cb60
Added documentation for gtk.window.force-background-colour.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-26 10:46:40 +00:00
Julian Smart
c9182d1f18
Workaround for gtk-qt theme bug
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-26 10:24:34 +00:00
David Elliott
596963d4b6
Look for and remove any "-NSKey" "value" types of options from argv just like
...
the -psn_XXXX option is removed. This allows Cocoa debug options like
-NSShowAllViews YES to be used as with any other Cocoa program.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 18:01:36 +00:00
Julian Smart
a47427fa62
Fixed bug in optimization for character input, affecting first paragraph in the buffer.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 16:13:33 +00:00
Paul Cornett
b091a2ec60
fix for scrolling wxSpinCtrl, broken by fix for scrolling wxStaticBox (rev 48550)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 16:12:45 +00:00
Julian Smart
768f35ecc6
Now uses the correct selection colours.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 14:53:25 +00:00
Julian Smart
1f57c2895e
Fixed a style application bug inserting a newline other than after the end of a paragraph.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 14:41:05 +00:00
Vadim Zeitlin
6dd14c57a4
release update region as soon as we finished painting the window instead of keeping it indefinitely (bug 1819635) [backport from trunk]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 23:27:57 +00:00
David Elliott
d3e7370f8a
Don't check for wxMac before overriding WORDS_BIGENDIAN based on compiler
...
endianness definitions. This allows any toolkit to be compiled universally
on OS X, not just wxMac.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 21:43:36 +00:00
David Elliott
379f96b46d
Remove defined(__WXMAC__) && defined(__APPLE__) case from the OS if/elif block.
...
It would never have been used in a configure build since setup.h which defines
__UNIX__ is included from platform.h before the if/elif block. Likewise, it
would not have been used for wxMac Xcode builds since they use config_xcode.h
which also defines __UNIX__. That's fortunate since __POWERPC__ was defined
unconditionally in that case. Note that classic builds wouldn't have used
the case either since they have their own case just before it (which remains).
Add __MACH__ to the list of UNIX defines (e.g. like __hpux) so that the UNIX
case of the OS if/elif block is guaranteed to match for all Mach systems. In
addition to that, within that case check for __APPLE__ && __MACH__ and make
sure that __BSD__ and __DARWIN__ are defined, TARGET_CARBON is defined,
and wxSIZE_T_IS_ULONG is defined.
Add __ppc__ to the list of defines that will cause __POWERPC__ to be defined
although it's interesting to note that we don't seem to use it anywhere.
Make sure that each case of the OS if/elif block has a /* OS ... */ comment
to make the code a bit easier to follow.
Remove comment about __DARWIN__ being used to work around defects in GCC,
that was removed years ago.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 21:03:53 +00:00
Vadim Zeitlin
ba23715453
add a critical section protecting ms_prev variables (replaces patch 1819224)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 18:06:10 +00:00