Vadim Zeitlin
94aff5ff86
Call wxTLW::SetDefaultItem() from wxButtonBase::SetDefault() instead of doing
...
it in wxButton implementations in (almost) all ports; changed its return type
to "wxWindow *" from "void" to accommodate the ports needing the old default
item (replaces part of patch 1696563)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-08 22:18:35 +00:00
Chris Elliott
047aa29670
fix borland error about string refernce
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-13 12:12:55 +00:00
Vadim Zeitlin
32cd189dfc
use GetLabelText() instead of wxStripMenuCodes() to avoid stripping the part of the string after TAB
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 18:47:39 +00:00
Włodzimierz Skiba
b84aec037f
PCH build fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 06:07:01 +00:00
Vadim Zeitlin
6c20e8f816
move default button handling code from wxControlContainer to wxTLW (patch 1524441)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 01:31:13 +00:00
Vadim Zeitlin
789367e10d
unset the button as temporary default item when it's destroyed (closes bug 1354875)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 19:50:48 +00:00
Vadim Zeitlin
cef55d6485
remove the search for parent with wxTAB_TRAVERSAL style in SetDefaultStyle(): it's useless as DM_SETDEFID can be only sent to the immediate parent anyhow, apparently
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 19:23:03 +00:00
Robin Dunn
4e9da8b79e
Forward port of changes for using themed drawing of owner-drawn buttons.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-31 21:26:39 +00:00
Włodzimierz Skiba
f1e0171631
Include wx/button.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-17 09:07:47 +00:00
Julian Smart
9f8130d6b3
Must strip menu codes from labels before measuring (fixes bug 1400552)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-18 16:16:36 +00:00
David Surovell
61e6a2ab5e
fix MinGW/gcc compilation issue
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-28 23:40:21 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
cbbb6724af
fixed drawing of owner drawn buttons with multiline labels
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 22:53:11 +00:00
Robin Dunn
31582e4e11
Patch #1203934 : enable best size caching for MSW widgets
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-18 02:23:01 +00:00
Robin Dunn
0c8b041f14
Use the current font for the DoGetBestSize calculation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-02 03:58:21 +00:00
Vadim Zeitlin
c4e2838090
use wxDC::GetMultiLineTextExtent() instead of duplicating its code in wxButton::DoGetBestSize()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-15 00:37:12 +00:00
Julian Smart
c87fc2859d
Don't use mnemonics for OK, Cancel and Close under Windows, to follow
...
style guidelines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-11 09:19:34 +00:00
Robert Roebling
2376eee248
Corrected button height for multiline buttons.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-10 20:29:19 +00:00
Václav Slavík
5f7bcb48fd
new stock buttons API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-30 14:42:51 +00:00
Włodzimierz Skiba
fcf90ee1b1
Source cleaning: whitespaces,-1/wxID_ANY,TRUE/true,FALSE/false.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-19 17:39:28 +00:00
Vadim Zeitlin
87b6002d7c
typo/spelling fixes (patch 983448)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-04 11:19:47 +00:00
Václav Slavík
7a5e53abb3
fixed warnings after GetFont prototype change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 14:25:47 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
af498247c5
make XTI compile with VC6 (patch 896614)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-15 22:51:57 +00:00
Julian Smart
c140b7e7c9
Applied patch [ 903619 ] Win64 and Itanium support
...
by Brian Palmer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-25 10:45:02 +00:00
Julian Smart
8cc4850c2d
Patch from "Viktor Voroshylo" <viktor@voroshylo.com>
...
src/.cvsignore : changes to ignore temorary project files
src/regex/.cvsignore : changes to ignore temorary project files for CE compiler
src/regex/regguts.h : assert will be ignored under WinCE
src/msw/button.cpp : BS_FLAT is not available under winCE
src/msw/clipbrd.cpp : changed CLIPFORMAT to wxDataFormat::NativeFormat so it will compile when ole is not included (under winCE)
src/msw/menu.cpp : GetMenuItemCount is not available under winCE. Using wxMenu::GetMenuCount in this case
src/common/regex.cpp : regex will be included under wince
include/wx/msw/wince/setup.h : wxUSE_THREADS & wxUSE_REGEX is enabled by default (as in standard windows configuration)
src/msw/wince/wxWindowsCE.vcp: fixed problem with all configurations (except emu once) do not have procompiled headers setup correctly. Changes for compiling with regex.
src/msw/wince/wxWindowsCE.vcw : added regex in workspace file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-27 17:47:37 +00:00
Julian Smart
6463b9f539
Reverted patch [ 832096 ] Final separation for GUI and console for Open Watcom
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-15 13:49:22 +00:00
Julian Smart
1169a91932
Applied patch [ 832096 ] Final separation for GUI and console for Open Watcom
...
(Watcom compiler doesn't like ctor implementation in headers)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 15:33:01 +00:00
Julian Smart
8a094d7ba9
Applied patch [ 874495 ] wxMSW: Flat buttons
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-11 11:47:23 +00:00
Vadim Zeitlin
cb0afb2662
replaced wxNO_FULL_REPAINT_ON_RESIZE with wxFULL_REPAINT_ON_RESIZE in XTI declarations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 00:41:06 +00:00
Stefan Csomor
3ff066a4ec
macro naming changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-04 01:19:40 +00:00
Stefan Csomor
ffca575c83
WX_EVENT_PROPERTY instead of WX_DELEGATE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-27 18:42:14 +00:00
Stefan Csomor
e70b4f1095
unicode adaptions, menu support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-25 23:33:36 +00:00
Julian Smart
bc9fb5723a
Added some window style metadata
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-24 11:35:44 +00:00
Stefan Csomor
f3291a824a
window flags extensions, streaming callback
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-23 22:49:08 +00:00
Stefan Csomor
067e9be685
xti property extensions, style bits additions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-23 00:41:33 +00:00
Stefan Csomor
8b7ac60523
switching to wxEmptyString to satisfy linker after wxxVariant constructor change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 19:45:52 +00:00
Stefan Csomor
f0a126fe7a
switching back to normal accessors, workaround not needed anymore
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-19 16:44:01 +00:00
Stefan Csomor
6a89f9ee42
RTTI simplifications
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-18 09:59:18 +00:00
Stefan Csomor
5174130757
rtti informations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-14 18:05:30 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Stefan Csomor
066f1b7a95
xti extensions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-05 17:30:46 +00:00
Stefan Csomor
51596bcb98
preliminary EXTENDED_RTTI
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-28 20:17:37 +00:00
Julian Smart
4676948b68
More WinCE mods
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21902 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-11 21:50:07 +00:00
Julian Smart
91f2c1540f
Fix for [ 748805 ] Assert failure for specified situation in samples/controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-07 09:59:38 +00:00
Vadim Zeitlin
0fa939c29a
draw multiline labels in owner-drawn buttons correctly (fixes 672894)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-24 18:18:05 +00:00
Julian Smart
6c9a19aaba
Removed erroneous copyright names and corrected licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:23:28 +00:00
Robin Dunn
5aab763c09
Only send two EVT_BUTTON events when double clicking a button, not three
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-21 20:27:56 +00:00
Vadim Zeitlin
bac409a004
compilation fix for !WX_PRECOMP
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-23 16:00:32 +00:00