Commit Graph

22302 Commits

Author SHA1 Message Date
David Elliott
2654f7e423 Make DoGetBestSize cache the value of GetSize() the first time it is called
for the case when the control is a regular window with no children.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-03 05:16:38 +00:00
Robin Dunn
2b1ff57f1e m_font may not have been set yet. Default to letting GetTextExtent
call GetFont.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-03 03:21:54 +00:00
Robin Dunn
9ec83f8da7 typos fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-02 20:09:33 +00:00
David Elliott
fa8114de44 Added wxObjcAutoRef* classes for automatic retain/release of Objective-C objects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-02 17:43:59 +00:00
Julian Smart
2317613101 Allow app to call SetWindowVariant before creation of control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-02 15:57:31 +00:00
Stefan Csomor
bb253bfd67 adding QDSwapPort for performance reasons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-02 08:37:46 +00:00
Stefan Csomor
943b730f1f supporting non-theme fonts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-02 08:29:26 +00:00
David Elliott
c1d19dfb68 wxCocoa: use generic wxSpinCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 22:42:53 +00:00
Václav Slavík
488e150743 syntax fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 21:12:37 +00:00
Václav Slavík
cf1014a2e1 moved arrays tests to testsuite (patch 927475)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 21:10:33 +00:00
Václav Slavík
9439aa542f fixed compilation with bakefile-0.1.3 after my latest changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 20:34:14 +00:00
Václav Slavík
af594ecaf1 added support for building eVC projects (not yet tested)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 20:20:57 +00:00
Václav Slavík
3fe61e8ece libtiff doesn't build on WinCE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 20:20:15 +00:00
Václav Slavík
21f7567505 compilation fix for WinCE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 20:19:37 +00:00
Václav Slavík
0c2d809a72 WinCE SDK doesn't have crtdbg.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 19:51:18 +00:00
Robin Dunn
dcc1aa2382 embedded sample's README updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 19:48:18 +00:00
Julian Smart
5059f192cf Fixed warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 19:43:32 +00:00
Robin Dunn
db4daa84f5 What the hell, let's spin up another full release
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 19:39:08 +00:00
Robin Dunn
b8a4283421 final tweaks for embedded
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 19:36:17 +00:00
Julian Smart
c393c74021 Implemented Enable for wxMenuBar to avoid assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 19:28:13 +00:00
Robin Dunn
70e45c91bb The reinit of the stock objects shoudl not happen when wxPython is
embedded in a C++ wx application


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 19:23:12 +00:00
Robin Dunn
2620b36e03 Fixed the embedded smaple so that it actually works, wx-ified the
Python bits


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 19:22:09 +00:00
Robin Dunn
6b7e0a8639 embedded sample compiles again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 18:05:10 +00:00
Robin Dunn
2e957aaeb1 Build and Install steps updated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 18:03:45 +00:00
Robin Dunn
45cf74cccf Demo tweaks to correct some visual glitches and event order issues
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 17:44:05 +00:00
David Elliott
37ec2bd38b #include "wx/settings.h" for wxSystemSettings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 16:38:21 +00:00
Stefan Csomor
5e6f42cdf9 Assert for incorrect style, added Deselection for single selection lists
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 15:43:41 +00:00
Stefan Csomor
94d1d0f447 default to striped background
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 15:26:36 +00:00
Stefan Csomor
125c798467 supporting events also for root control (needed for event handling of mouse and paint at tlw-level)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 15:24:19 +00:00
Stefan Csomor
b19bf058f3 fixing shape windows, as we now use the structure region for answering questions about position and size, we cannot use GetRect in the defproc anymore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 15:19:39 +00:00
Stefan Csomor
58ddb76c39 pass in NULL for mouse event handler, otherwise the handler thinks it is a valid toplevel window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 15:18:06 +00:00
Vadim Zeitlin
51ce89f1bf removed (well, kept empty shell to avoid breaking existing code) InheritAttributes()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 14:54:07 +00:00
Vadim Zeitlin
4f819fe40a fixed DoGetBestSize() for default buttons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 14:15:15 +00:00
Vadim Zeitlin
c4ca49cde3 implemented GetBestSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 13:55:21 +00:00
Vadim Zeitlin
c7e111cd98 wxGTK became a little too eager in using the best size after my change in 1.453; only use it if width or height are not specified
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 13:32:16 +00:00
Vadim Zeitlin
e4de95f8d5 added script for generating tags file for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 13:16:52 +00:00
Vadim Zeitlin
cc402e6431 use GetFont() instead of (possibly not initialized) m_font in GetCharWidth/Height()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 13:09:26 +00:00
Vadim Zeitlin
a433fbd51d show window from PostCreation() (which is called for the derived classes as well) instead of Create() (which is not)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 13:08:24 +00:00
Vadim Zeitlin
40452e0583 only use font/colours in SetWidgetStyle() if they're set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 12:45:24 +00:00
Vadim Zeitlin
02a8e64ca3 really show the menubar (calling Show(TRUE) doesn't do it any more)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 12:41:27 +00:00
Vadim Zeitlin
c5fc899bf2 really show the window after creation (calling Show(TRUE) doesn't do it any more)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 12:40:04 +00:00
Václav Slavík
e3f810a21b forgot to add header file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 12:22:44 +00:00
Václav Slavík
a81f30662b test program improvements (patch 927429)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 11:51:09 +00:00
Vadim Zeitlin
993da3969b use the window default colours, not hardcoded ones, in OnSysColourChanged()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 11:08:44 +00:00
Vadim Zeitlin
e736b21a8c give the panel 3D grey colour by default: as it's not a native control, we must give it a colour explicitly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 11:05:50 +00:00
Vadim Zeitlin
e9cafd4289 use wxFULL_REPAINT_ON_RESIZE only for wxPreviewCanvas, not for the entire wxPreviewFrame -- this eliminates flicker of the control bar, at least
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 11:04:33 +00:00
Vadim Zeitlin
fbfe58cb95 fixed unused param warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 10:34:23 +00:00
Václav Slavík
340da6aec0 commited streams test suite (not part of build yet, coming soon)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 10:13:47 +00:00
Stefan Csomor
793921582e added adjustOrigin parameter to bounds calculation, added Freeze and Thaw implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 08:34:18 +00:00
Stefan Csomor
271cad4cf7 added adjustOrigin parameter to bounds calculation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 08:32:44 +00:00