Commit Graph

49113 Commits

Author SHA1 Message Date
Vadim Zeitlin
743b426605 Added DoGetClientBestSize() and use it for a couple of controls in wxMSW.
DoGetClientBestSize() returns the best size of the client area, without
accounting for the border which is done by GetBestSize() itself and
DoGetBorderSize() called from it.

Use DoGetClientBestSize() in wxStaticText (where it was done
insideDoGetBestSize() before) and in wxListBox, to fix its height calculation.

Also use correct height of listbox items as returned by the control itself
instead of trying to guess it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-22 20:36:13 +00:00
Vadim Zeitlin
8c6c5778c2 invalidate best window size when its label changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-22 20:07:50 +00:00
Vadim Zeitlin
1fe0e46ec4 streamline best size calculation for buttons and made wxBU_EXACTFIT work as intended
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-22 20:07:07 +00:00
Vadim Zeitlin
d46a35d092 relayout the sizer containing the button after changing its label as this may change the button size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-22 18:37:09 +00:00
Vadim Zeitlin
ca910e1a13 fix more wxOSX/Carbon warnings in release build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-22 18:36:19 +00:00
Jaakko Salli
6edd8829ef Significantly improved wxPropertyGrid's top-level parent change detection code (fixes #10919)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-22 17:02:53 +00:00
Vadim Zeitlin
9aeace31b7 extract event handler body in a separate function instead of using a hack to call it with a NULL reference
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-22 12:13:56 +00:00
Jouk Jansen
ca3b3fbb11 fix for wxGTK1 & bmpbuttn
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-21 13:02:52 +00:00
Vadim Zeitlin
e5d05b907c added support for bitmaps in wxButton to wxOSX/Cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-21 03:01:53 +00:00
Vadim Zeitlin
b727fcd3ad no changes, just removed commented out Carbon code from this Cocoa file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-21 02:01:51 +00:00
Kevin Ollivier
2fc9c1ea77 Forward port wxGraphicsBitmap cairo implementation, and fix the credit info in measuring.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-20 23:33:55 +00:00
Julian Smart
015d04462f Patch from Bruno Daniel to fix tab position inconsistency
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-20 23:26:20 +00:00
Stefan Csomor
9581362b15 make sure theme font info is reset if anything is changed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-20 23:10:10 +00:00
Stefan Csomor
773809f57c simplify condition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-20 23:07:44 +00:00
Vadim Zeitlin
e490b0d23b suppress more float/double->int conversion warnings to be able to see anything else in wxOSX/Cocoa build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-20 21:27:20 +00:00
Vadim Zeitlin
6398a32d3b don't try to resize the bitmap buttons with wxBORDER_NONE style to one of the standard sizes, this results in more problems than it solves and still doesn't look good; document wxBORDER_NONE semantics under Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-20 20:05:52 +00:00
Vadim Zeitlin
8f2a8de6e7 fix many mostly harmless warnings in wxOSX/Carbon build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-20 00:21:53 +00:00
Vadim Zeitlin
3c01c59511 implement wxTreeCtrl::GetFocusedItem() for wxMSW too (see #10859)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 23:48:50 +00:00
Vadim Zeitlin
48889bca6f include wx/arrstr.h as it's needed by wxImageHandler and may not be implicitly included from other headers in minimal builds (closes #10914)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 23:46:21 +00:00
Vadim Zeitlin
bad6c5e264 no need to check for wxID_HELP buttons in SetLabel() now that it's overridden in wxButton itself
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 23:36:35 +00:00
Vadim Zeitlin
febebac1a0 added wxTreeCtrl::GetFocusedItem() (closes #10859)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 23:34:51 +00:00
Vadim Zeitlin
61dabbffe3 rename makemactags script to makeostags and extend it to work with either Carbon or Cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 23:30:47 +00:00
Vadim Zeitlin
85284ca4b2 respect wxBU_NOTEXT style in wxButton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 23:24:51 +00:00
Stefan Csomor
cd0d451b08 guarding against null nowpeer in cases like native font or color dialogs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 14:38:07 +00:00
Vadim Zeitlin
09219654cd override DoSetBitmap() instead of SetBitmapLabel()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 04:47:59 +00:00
Vadim Zeitlin
f8a7e79913 make the script executable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 03:57:06 +00:00
Vadim Zeitlin
ced2fad6f2 only erase background if we do have a non-default background set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 00:01:40 +00:00
Vadim Zeitlin
7ac0e38e96 fix output of WX_ARG_DISABLE() for options which can have values other than yes/no (e.g. auto, as for wxUSE_COMPILER_TLS)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 23:51:57 +00:00
Vadim Zeitlin
6a5594e00d erase background using the window background colour when using wxBG_STYLE_ERASE/SYSTEM
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 23:00:49 +00:00
Vadim Zeitlin
c22ace4dff fix a couple of harmless warnings during wxOSX build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 22:54:21 +00:00
Vadim Zeitlin
4868bfb17e no changes, just removed apparently unneeded wxMacBitmapButton class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 21:12:50 +00:00
Vadim Zeitlin
2ad61b03a8 disable deprecation warnings when building wxMac as there are just too many of them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 21:05:09 +00:00
Robert Roebling
49d2b75d53 Also fixed Clear() in the generic control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 18:22:10 +00:00
Vadim Zeitlin
5366ff46b8 set use-underline button property when setting its label
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 18:10:05 +00:00
Robert Roebling
8a56837211 Further attempts to implement Clear() for the GTK control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 17:42:06 +00:00
Vadim Zeitlin
03a187ccae wxHtmlWindow background drawing fixes for OS X and optimizations
1. Avoid crashes under OS X due to attempts to copy window contents to the
   backing store bitmap: this doesn't work under OS X so avoid it by always
   painting the background from OnPaint() itself, while still generating the
   erase background events for compatibility.

2. Don't double buffer wxHtmlWindow drawing if the window is already double
   buffered.

3. Don't allocate backing store bitmap on the heap, this is useless as bitmaps
   are already pointer-lile -- so just use invalid bitmap instead of NULL
   bitmap pointer.

4. Update the html/test sample to show the effects of custom erase background
   handler in wxHtmlWindow (it overrides the background bitmap painting).



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 17:32:20 +00:00
Vadim Zeitlin
86ac84b8ce don't draw borders for bitmap buttons with wxBORDER_NONE style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 17:13:51 +00:00
Jouk Jansen
b5a5362e55 Patch wxGTK1 for recent changes in bmpbuttn
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 15:37:33 +00:00
Vadim Zeitlin
69ce9cea39 implement propert background style semantics for OS X
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 15:33:51 +00:00
Vadim Zeitlin
443c594a75 use wxOSX_USE_COCOA instead of __WXOSX_COCOA__ (which was checked incorrectly)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 15:28:02 +00:00
Jouk Jansen
840a5948c7 Update setup for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 15:25:55 +00:00
Robin Dunn
a25a17732c Use UTF16 for text data object on Mac. Fixes #10902
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-18 06:18:50 +00:00
Vadim Zeitlin
5c23470650 make wxCollapsiblePane blend into its parent background by using the same background colour as it does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 23:34:46 +00:00
Vadim Zeitlin
3c9a70ddd4 correct wrong assert checking for default button flags consistency (closes #10906)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 23:16:22 +00:00
Vadim Zeitlin
41550985f2 don't define wxHAS_BUTTON_BITMAP for wxUniv (closes #10907)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 23:08:45 +00:00
Vadim Zeitlin
4d51143c5e suppress harmless gcc warning about not handling all enum values in a switch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 22:14:47 +00:00
Vadim Zeitlin
a21175918e added wxBU_NOTEXT style to allow creating bitmap buttons with stock id not showing the label, as it was possible before
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 22:13:46 +00:00
Vadim Zeitlin
6e7d2550ce wxFont::MakeXXX() and Scale() methods now modify the font in place; XXX() and Scaled() create new font
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 21:27:37 +00:00
Julian Smart
a188ac2988 wxRichTextCtrl native caret now flashes, for wxMac/Core Graphics mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 21:10:04 +00:00
Jaakko Salli
209bf72273 Setup.h wrapper was missing propgrid section (fixes #10909)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-17 20:38:20 +00:00