Vadim Zeitlin
2bae4332e7
extended wxWindow::MSWGetBgBrush() and wxControl::MSWControlColor() to work for arbitrary HWNDs and not just wxWindows: this allows us to draw proper background for slider labels and other subcontrols
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 21:55:12 +00:00
Vadim Zeitlin
c3732409ac
simplifications and corrections to background drawing:
...
1. removed ApplyParentThemeBackground() not used any longer
2. removed ProvidesBackground() which is synonymous with
!HasTransparentBackground()
3. removed a whole bunch of unused MSWXXX() methods
4. moved MSWControlColor() from wxWindow up to wxControl
results:
1. the gradient is still shown properly for static/radio boxes in notebooks
2. correct background colour is used for the static boxes
3. code is shorter and better commented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-10 15:23:08 +00:00
Vadim Zeitlin
9cf4b4398d
fix for richedit version 1 control bug with bad refresh after resize under Windows XP
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-05 22:14:58 +00:00
Vadim Zeitlin
628c219e64
wxTextCtrl with wxTE_RICH2 style now uses RichEdit 4.1 if available (replaces patch 1160809)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-23 00:18:44 +00:00
Julian Smart
afafd942a1
Added WXK_SPECIAL... keycodes for special hardware buttons
...
Made (Un)RegisterHotKey WinCE-aware.
Added wxEVT_HIBERNATE event.
Now fakes wxEVT_ACTIVATE_APP to be symmetrical with wxEVT_HIBERNATE.
Added wxTE_CAPITALIZE for CAPEDIT controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-18 14:26:57 +00:00
Vadim Zeitlin
26f60eb6a4
don't steal EVT_RIGHT_UP in rich edit controls for context menu (patch 1143823)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-19 17:27:30 +00:00
Vadim Zeitlin
88e04461ee
removed m_isCaretAtEnd optimization added in rev 1.232 as we don't always detect when the carets position changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-15 14:02:25 +00:00
Włodzimierz Skiba
7d8268a1d6
wxTextPos for all GetLastPosition with constants for special cases. Make it virtual everywhere. Avoid doubling typedefs. Always include textctrl.h for combobox.h. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-19 16:25:34 +00:00
Kevin Hock
72e430cd97
For efficiency reasons, text controls no longer set the string for each text updated event, but rather query for the string value only when GetString is called from an event handler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 15:17:05 +00:00
Włodzimierz Skiba
e2bcbdfbc7
Metric conversion constants not doubled in each port code.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-21 16:25:59 +00:00
Julian Smart
9e67e54178
Moved GetDefaultAttributes outside wxUSE_RICHEDIT block
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-05 14:01:29 +00:00
Vadim Zeitlin
2c62dd25cd
changed the code to be really sure that exactly one update event is sent when SetValue() is called
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-25 14:43:54 +00:00
Vadim Zeitlin
48fa6bd38a
replaced OnCtlColor(7 params) with MSWControlColor(1 param)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 19:40:31 +00:00
Vadim Zeitlin
caea50acee
removed unnecessary (now that we leave Windows paint background itself) SetBackgroundColour() calls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-15 18:22:11 +00:00
Ryan Norton
cbfb8fe75a
explanation of getdefaultattributes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-12 10:05:13 +00:00
Ryan Norton
52f2f7b2c1
fix for [ 1052989 ] TextCtrl.SetBackgroundColour(wx.NullColour) bug
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-07 14:14:10 +00:00
Ryan Norton
093dee5e9d
fix for [ 1055191 ] wxTextCtrl::GetStyle() wrong attr and extended stat bar in text ctrl sample with rich text to show font attributes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-07 13:01:59 +00:00
Włodzimierz Skiba
5c519b6cf7
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-08 18:49:13 +00:00
Włodzimierz Skiba
3180bc0e63
Hardware defines spec.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-28 18:17:07 +00:00
Włodzimierz Skiba
302e251b4d
Native Smartphone wxTextCtrl.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-08 06:20:42 +00:00
Włodzimierz Skiba
bfbb0b4c77
Source cleaning: -1/wxID_ANY/wxDefaultCoord, ::, TRUE/true. FALSE/false, tabs, whitespaces.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-07 06:01:01 +00:00
Julian Smart
4a82116e2e
Fixed wxTextCtrl::SetMaxLength for rich edit controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-31 15:43:20 +00:00
Vadim Zeitlin
6726a6b097
implement HitTest(pos) variant and not HitTest(x, y) one as this is what Windows gives us
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-23 18:43:32 +00:00
Robin Dunn
f4d233c74a
Call CreateControl instead of CreateBase
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-21 22:07:38 +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
Vadim Zeitlin
ce192630a3
use ES_AUTOHSCROLL for multiline controls as well (fixes 966692)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 17:42:59 +00:00
Julian Smart
eedc82f4e9
Navigate corrections
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27815 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-15 21:55:18 +00:00
Julian Smart
5f6cfda79f
With wxTE_PROCESS_TAB, tabs are now inserted in the text control
...
by default. The new Navigate function can be used to do navigation
programmatically.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-15 14:03:06 +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
89b674772c
subdindented paragraphs support (patch 933436)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-15 18:17:14 +00:00
Robert Roebling
3d4ea84bd9
Make text controls flat under CE.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-17 22:12:06 +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
Vadim Zeitlin
3a5bcc4db0
removed Win16 code (patch 905241), last version with remains of Win16 support tagged with BEFORE_WIN16_REMOVAL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-28 13:10:14 +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
Vadim Zeitlin
975b6bcf9b
Win64 compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-10 13:02:51 +00:00
Vadim Zeitlin
f60e797e90
estimate size of multiline text controls more accurately (bug 873277)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 15:52:37 +00:00
Vadim Zeitlin
818d407ac6
one line fix for a bug with focus switching to the one after next control instead of the next one after a multiline text control and a 15-line comment explaining it (this incidentally fixes bug 658026 and maybe others)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-07 21:15:42 +00:00
Vadim Zeitlin
efe66bbc0e
added wxTextCtrl::HitTest(); implemented it for MSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-04 14:56:14 +00:00
Vadim Zeitlin
b26613c25b
fixed conversion from Unicode in StreamOut() once again
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-12 01:23:23 +00:00
Julian Smart
120249f602
Don't set insertion point if the text is the same in SetValue
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-10 08:21:08 +00:00
Vadim Zeitlin
52a9e32988
fixed inconsistencies with indices in wxTE_RICH2 controls (remove CRs when streaming text out now)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-04 00:21:54 +00:00
Vadim Zeitlin
9ffa72272b
fixed off by 1 in new GetRange() for wxTE_RICH2 controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-02 22:45:10 +00:00
Vadim Zeitlin
e669d18427
don't lose encoding information when getting/setting the text in the control
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-02 12:24:45 +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
Vadim Zeitlin
3a9fa0d6b5
added wxTextCtrl::MarkDirty()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 00:09:18 +00:00
Vadim Zeitlin
11db7d81d1
Unicode compilation fix (bug 809707)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-20 11:35:06 +00:00
Vadim Zeitlin
6a98321125
use wxCSConv instead of Win32 API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 22:34:50 +00:00
Vadim Zeitlin
7411f983f1
wxTextCtrl::GetValue() lost (replaced with question marks) all characters not in the current encoding -- but now it shouldn't
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23729 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 22:21:48 +00:00
Vadim Zeitlin
0376ed5408
documented that wxHSCROLL disables wrapping; added comment to the source
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-10 13:06:48 +00:00