Julian Smart
6eff83b827
Fixed #11212 [RichText sample] Assert/Crash when Styles combo box opened
...
Patch by Catalin
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-18 14:01:21 +00:00
Vadim Zeitlin
945c909da9
Suppress harmless g++ warnings about converting float/double to int.
...
The conversion is done on purpose on these places so just suppress the warning
by using explicit casts.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-18 09:56:59 +00:00
Vadim Zeitlin
46d1cdb44c
Fix harmless g++ warning about using NULL for non-pointer.
...
PostQueuedCompletionStatus() may be either an int or a pointer, pass 0 instead
of NULL when we don't care about its value anyhow.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-18 09:56:52 +00:00
Vadim Zeitlin
0f506ded1a
Fix handling of invalid paths with multiple columns in wxFileName.
...
SplitVolume() didn't handle colons in the initial position correctly which
surprised SetPath() and led to accessing an out-of-range string element. Fix
SplitVolume() and also add a check to SetPath() itself as it seems like it
could be called with a path containing the volume only.
Closes #11453 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-18 03:45:32 +00:00
Vadim Zeitlin
76d88590ff
Remove unnecessary manual face name selection code.
...
The change of r60391 made specifying the face name explicitly unnecessary but
left the code which filled "facename" array in wxNativeFontInfo::SetFamily()
with face names even though it was never used -- simply remove this code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-18 03:18:24 +00:00
Vadim Zeitlin
9bd2672046
Implement wxFont::GetFaceName() to return the face name being really used.
...
Since the change of r60391 empty face name was returned for all fonts created
using the standard wxFont constructor (so basically all fonts except for those
created from native font info and the default/normal font which we retrieve
from the system). Use Windows GetOutlineTextMetrics() function to get the real
face name being used independently of the way the font was created.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-18 03:18:16 +00:00
Václav Slavík
8e6c2840b4
Improved handling of anchors in wxHTML: scroll to better position (patch #11406 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-17 20:20:48 +00:00
Vadim Zeitlin
fde702ea51
Fix typo in Bind() documentation: s/binded/bound/
...
Closes #11450 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-17 14:47:56 +00:00
Vadim Zeitlin
869aa92d4d
Explicitly document event types for EVT_CLOSE().
...
Closes #11445 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-17 14:47:44 +00:00
Bryan Petty
cfbf62b811
Fix crash when dragging toolbars in wxAuiManager::OnFloatingPaneMoveStart(). ( fixes #10170 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62669 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-16 21:55:57 +00:00
Robin Dunn
9feb648206
Add some missing commas. Fixes #11443
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-16 21:28:55 +00:00
Robert Roebling
de67922eaa
Always set focus to the item selected using Select()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-16 18:39:32 +00:00
Vadim Zeitlin
c32eeaccc3
Fix wxDataViewRenderer::GetEllipsizeMode() for kDataBrowserTruncateTextMiddle.
...
The value of this constant is 0 so don't test for it using operator "&", it's
just the default if no others are specified.
Fixes assert on startup of the dataview sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-16 15:03:39 +00:00
Robert Roebling
200c18cc6c
Maybe fixed assertion when using built-in searching non-string columns
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-15 15:07:56 +00:00
Robert Roebling
1e21d0ef1f
Don't use Ctrl-F as it hides a bug
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-15 14:54:12 +00:00
Robert Roebling
1aeae3f7d4
Do earlier and better checking for matching actions and data format, hopefully fixes #11201
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-15 13:39:05 +00:00
Stefan Csomor
36b960067d
fixing typo for builds < 10.6
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-15 12:05:50 +00:00
Robert Roebling
493c499e11
Disable GTK cast checks in wx code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-15 10:29:07 +00:00
Robert Roebling
d7bb29260e
Revert wxFlexGridSizer constr. change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-15 09:40:30 +00:00
Paul Cornett
d9bd1a73ff
look for backtrace() in -lexecinfo, fixes #9783
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-15 04:02:27 +00:00
Kevin Ollivier
eabe8426cc
ShowWithoutActivating fix for OS X Cocoa, and also add support for shaped windows at least when the image being drawn has proper alpha/mask set. I'm not sure if we can support it by setting a region on the TLW, as the way to do this in Cocoa is just to make the TLW's background transparent and use alpha in whatever you draw.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-15 01:36:30 +00:00
Vadim Zeitlin
c0a9fe92fa
Implement support for wxSL_<DIR> in wxGTK, show them better in the sample.
...
Support wxSL_{LEFT,TOP,RIGHT,BOTTOM} in wxGTL version of wxSlider.
Make the display of the orientations in the slider page of the widgets sample
more clear.
Also document wxSL_<DIR> meaning better.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 23:15:27 +00:00
Vadim Zeitlin
eec4500dca
No changes, just removed trailing spaces.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 23:15:14 +00:00
Vadim Zeitlin
510878aa3d
Correct wxSL_VERTICAL addition in r62618.
...
It was incorrectly added to the case label value instead of flags.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 23:15:07 +00:00
Vadim Zeitlin
e098940880
Minor corrections to wxSL_LABELS definition and documentation.
...
Use parentheses around the macro expansion to ensure that code like "whatever
& ~wxSL_LABELS" still works as expected.
Be more explicit in wxSL_LABELS description and mark wxSL_MIN_MAX_LABELS and
wxSL_VALUE_LABEL as being new in 2.9.1.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 23:14:27 +00:00
Robert Roebling
7aab7176f1
Restore ability to create wxFlexGridSizer with 2 params (number of columns and vertical gap)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 21:50:50 +00:00
Kevin Ollivier
4f6bcb8390
Don't assert when we get wxBG_STYLE_TRANSPARENT.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 19:52:26 +00:00
Kevin Ollivier
e7736e5df8
Fix typo that broke compilation and adjust the defines to avoid an empty #if.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 19:51:27 +00:00
Robert Roebling
f050bdbd5b
Hide value label explicitly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 18:56:07 +00:00
Vadim Zeitlin
d16d698f1e
Undo test code accidentally committed as part of r62643.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 17:34:47 +00:00
Robert Roebling
3312ee03a7
Always position value lable left of a vertical slider
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 16:34:56 +00:00
Robert Roebling
7de8349472
Add tests for wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 16:31:06 +00:00
Vadim Zeitlin
a57bfed905
No real changes, just remove the ugly CONST_CAST macro.
...
Use const_cast<> directly, we don't support compilers which don't have it any
more. And CONST_CAST macro conflicts with a macro with the same name (and
similar purpose) defined in Symbian headers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 16:11:09 +00:00
Vadim Zeitlin
9e9cfb9115
Restore the use of correct alignment in wxDVC renderers.
...
The code from old CalculateAlignment() was somehow lost during the
refactoring, restore it in wxDataViewCustomRendererBase::RenderText().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 15:51:50 +00:00
Robert Roebling
6b1a022253
Simple implementation of wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL for MSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 14:26:54 +00:00
Robert Roebling
6d6f99cb41
Document wxSL_MIN_MAX_LABELS and wxSL_VALUE_LABEL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 14:25:54 +00:00
Robert Roebling
fe45d6ffd5
Typo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 11:03:17 +00:00
Robert Roebling
c092ed3828
Implement wxSL_VALUE_LABEL and wxSL_MIN_MAX_LABELS for GTK+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-14 10:58:31 +00:00
Robert Roebling
8e4a1326e1
Renamed wxSL_LABELS_MIN_MAX -> wxSL_MIN_MAX_LABELS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 18:56:30 +00:00
Stefan Csomor
a0b48f2651
adding toolbar implementation for iphone
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 18:39:38 +00:00
Robert Roebling
cf54980e2e
Add constants wxSL_LABELS_MIN_MAX and wxSL_VALUE_LABEL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 18:36:14 +00:00
Stefan Csomor
f3769d53f7
updating implementations of wxGetMouseState for osx_cocoa and dummy impls for iphone
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 18:30:00 +00:00
Robert Roebling
8ddda15ba5
Implement and document wxDataViewTreeCtrl::IsContainer(), use it in the sample to not add items to non-containers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 14:14:44 +00:00
Robert Roebling
a53f722ff2
Minor formating
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 13:56:55 +00:00
Robert Roebling
9c20523110
Correct sorting in wxDataViewTreeStore, fixes #11436 , part II
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 13:56:32 +00:00
Robert Roebling
8650c4ba0f
Don't use gtk_tree_model_get_path of the item is already the delete in the model, fixes #11436
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 10:30:07 +00:00
Robert Roebling
a46a47a310
Add tests to wxDataViewTreeCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 08:32:35 +00:00
Robert Roebling
bc6ca1a9e6
Also update focus rect when changing selection in single selection mode, fixes #11332
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 08:24:00 +00:00
Robert Roebling
7d5d2f237a
Reset m_underMouse anytime the display is changed programmatically, fixes #11322
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 08:05:00 +00:00
Kevin Ollivier
0bcac6c79f
Override default handling so that we can position windows off-screen like on other ports.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-13 02:28:16 +00:00