Stefan Csomor
41857332b6
testing for define alone is sufficient and more portable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-02 07:56:38 +00:00
Stefan Csomor
11f87a381b
fixing searchctrl on osx_cocoa, changing type for peer to wxSearchCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-02 07:55:57 +00:00
Stefan Csomor
2f250cb6e6
guard against null ptr access
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-02-02 07:36:18 +00:00
Václav Slavík
4d3de2c5f7
Account for first removal char with wxELLIPSIZE_MIDDLE.
...
wxControl::Ellipsize() in wxELLIPSIZE_MIDDLE mode starts the
string-shortening loop with the removal interval initially set to remove
only the len/2-th character. But it didn't add its size to the running
total of removal characters' length, thus always removing one more
character. Fixed by making the initial interval 0-sized rather than
1-sized.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-31 18:23:32 +00:00
Václav Slavík
3433de6e63
Remove chars one-by-one with wxELLIPSIZE_MIDDLE.
...
Previously, Ellipsize() would always remove two characters at a time in
wxELLIPSIZE_MIDDLE mode. This was clearly a bug: it led to shortening
the text more than was strictly necessary.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-31 18:23:29 +00:00
Václav Slavík
3999336cb9
Fix vertical rules rendering in generic wxDataViewCtrl.
...
Vertical rules are now drawn in the last pixel of a column instead of in
the first, so that they align perfectly with native MSW wxHeaderCtrl as
well as for consistency with MSW native list control. There's no
vertical rule at the most-left side of the control anymore.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-31 16:54:03 +00:00
Stefan Csomor
ec46fd5fce
adding support for wxCANCEL_DEFAULT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-30 19:01:37 +00:00
Vadim Zeitlin
85ecb1d5ca
OLE uses VARIANT_TRUE and not TRUE for its boolean values.
...
VARIANT_TRUE is -1, unlike TRUE which is just 1, and we must use the former
and not the latter with OLE VARIANT values.
Closes #12910 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-29 14:20:42 +00:00
Vadim Zeitlin
ff4713940d
Revert "Set up pages range in the wxMSW print dialog correctly."
...
This patch changed the relative order of calls to wxPrintout::GetPageInfo()
and OnPreparePrinting(), breaking the existing code and the documentation
promise about OnPreparePrinting() being called first, so revert it.
Reverts r66549.
See #12819 .
Closes #12911 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-29 13:55:40 +00:00
Jouk Jansen
aadabb545b
Update OpenVMS makefile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66804 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-28 15:01:01 +00:00
Dimitri Schoolwerth
64a3ee76aa
Allow writing a comment to each GIF frame.
...
Don't write a comment as part of the GIF header during the first frame only but write a possible comment for each wxImage in an animation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-28 08:36:34 +00:00
Dimitri Schoolwerth
da60600bc9
Added support for writing a long comment to a GIF image.
...
Instead of limiting a comment to a maximum length of 255 bytes write multiple comment data blocks (each a Pascal string) followed by the block terminator.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-28 08:10:01 +00:00
Stefan Csomor
7279a306bb
clang fix, fixes #12332
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-28 07:35:07 +00:00
Dimitri Schoolwerth
491da41173
Changed the procedure for writing a comment to a GIF image.
...
Use wxImage.SetOption with newly introduced wxIMAGE_OPTION_GIF_COMMENT to set a GIF's image comment now. Formerly this was done (since recently) using wxGIFHandler::ms_comment which has now been removed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-28 07:27:34 +00:00
Paul Cornett
d4280c0282
better way to silence unused parameter warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-28 06:18:33 +00:00
Bryan Petty
be4980ab43
Properly account for floated panes while restoring maximized pane.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-28 02:21:42 +00:00
Stefan Csomor
db2c04684d
clang fixes, fixes #12332
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 18:35:01 +00:00
Stefan Csomor
f5f3d4ec5c
clang fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 17:15:40 +00:00
Vadim Zeitlin
5adab48272
Document wxEVT_COMMAND_SPINCTRL_UPDATED in EVT_SPINCTRL description.
...
Also mention the name of the event type when documenting the corresponding
event table macro.
Closes #12897 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 13:27:14 +00:00
Vadim Zeitlin
25fae92323
Fix link errors under Cygwin with wxUSE_GRAPHICS_CONTEXT==1.
...
Define ourselves _GdipStringFormatCachedGenericTypographic variable referenced
by Cygwin GDI+ headers to fix linking errors due to the fact that we don't
link with gdiplus.lib at all but load gdiplus.dll dynamically.
Closes #11716 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66787 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 13:27:09 +00:00
Stefan Csomor
4ba6d656c3
__BIG_ENDIAN__ is either defined AND has a value of 1, or it is not defined at all, so #ifdef is sufficient
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 13:00:16 +00:00
Stefan Csomor
afc67820ef
fixing return type
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 12:38:24 +00:00
Stefan Csomor
d67faa04d4
clang warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 11:54:19 +00:00
Stefan Csomor
4bc3adadc1
good catch by clang ...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66783 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 11:53:51 +00:00
Stefan Csomor
d5923e449d
clang warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 11:37:37 +00:00
Stefan Csomor
8a3ddc6bd5
reverting inadvertent commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 11:04:45 +00:00
Stefan Csomor
df04f800b8
supporting clang 2.0 under xcode, see #12332
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-27 11:00:26 +00:00
Stefan Csomor
6c894d4e65
keeping opaqueness and backgroundcolor in synch with bgstyle
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-26 18:49:02 +00:00
Stefan Csomor
ca12c122df
per default wx' static text items have a transparent background
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-26 18:46:59 +00:00
Stefan Csomor
ca9eebc346
artmac extended for cocoa
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-26 16:15:39 +00:00
Stefan Csomor
516e9d1335
fixing toplevel position
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66774 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-26 15:55:20 +00:00
Stefan Csomor
1cea736e03
hinting support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-26 15:54:03 +00:00
Stefan Csomor
7f37eded21
PNG is the native format on iOS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-26 15:53:31 +00:00
Stefan Csomor
809d69287e
avoid populating the array with NULL controls during creation (SetWindowVariant calling SetFont crashing)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-26 15:52:41 +00:00
Stefan Csomor
99eb484a70
support for hints, fixing textfield implementation on iOS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-26 15:51:39 +00:00
Stefan Csomor
01470e3741
Maximize for iPhone
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-26 07:42:33 +00:00
Stefan Csomor
554b2800c6
supporting a null cgimage so that we don't get exceptions, only an wxbitmap that is !Ok()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-25 18:47:12 +00:00
Stefan Csomor
5769f801b4
support for separator (fixed width spacE)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-25 18:46:01 +00:00
Stefan Csomor
bf7470fe14
adding constructor from CGImageRef
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-25 15:47:05 +00:00
Dimitri Schoolwerth
fdfedfc077
Fixed heap corruption when reading a corrupted RLE TGA image.
...
There were no boundary checks in place to verify an indicated repeat of pixels would still be inside the image's data. Added these checks and a unit test making sure these kind of TGAs now fail to load.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-25 11:23:42 +00:00
Dimitri Schoolwerth
e02edc0e6e
Fixed typo in wxFileName::GetHumanReadableSize docs.
...
Closes #12898 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-25 08:15:55 +00:00
Robin Dunn
06f28e5572
Save the mode in SetMode
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-25 05:14:30 +00:00
Robin Dunn
5cef2f6505
Add wxRTTI macros for the wxSimpleHtmlListBox class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-25 05:03:17 +00:00
Paul Cornett
c742231d29
remove deprecated voidp, closes #12896
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-24 17:36:44 +00:00
Stefan Csomor
aa642a456c
fixing toolbar repositioning (iOS)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-24 16:45:58 +00:00
Stefan Csomor
3fdfbc9ca1
guarding code in case of delayed controller release
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-24 16:45:25 +00:00
Václav Slavík
1acf670a9d
Don't allow user to resize non-resizable columns to best size.
...
Double-clicking columns separator resizes the column to the best width
for its content. This should only be done for resizeable columns,
though.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66740 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-24 14:35:33 +00:00
Václav Slavík
c6b223ca49
Remove incorrect comment.
...
UpdateColumnWidthToFit() is in fact used when double-clicking columns separators.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-24 14:35:30 +00:00
Stefan Csomor
4cf611db97
direct constructor from CGImageRef
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-24 13:17:59 +00:00
Jaakko Salli
07ca69f692
To work around harmless memory leaks reported by Visual C++ static runtime libs, assume that C++ typeid operator works well with VC++ 9.0 and later ( fixes #12023 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-01-23 10:13:49 +00:00