Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Vadim Zeitlin
a8bf182601
fixed some GTK2 compilation warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-23 19:01:47 +00:00
Julian Smart
1fc32b12ee
Misc mods for feedback from Marcin Wojdyr <wojdyr@if.pw.edu.pl>
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-23 11:57:10 +00:00
Robert Roebling
f341e39bdf
Compile fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-08 18:26:02 +00:00
Robert Roebling
fab591c5cc
Lots of updates for Unicode and GTK 2.0 support.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-05 17:59:20 +00:00
Vadim Zeitlin
2e08b1a367
added missing extern "C" required for Sun CC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-14 12:28:07 +00:00
Julian Smart
4855a4773e
textctrl.cpp: Removed assert from CanRedo/CanUndo since the best behaviour is
...
to return FALSE (Redo/Undo functions are unimplemented)
treectrlg.cpp: in InsertItem, allow previous item to be null in order
to insert at first position of possibly-empty child list
dcclient.cpp: allow setting of null font (common espec. on Windows)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-13 16:54:32 +00:00
Vadim Zeitlin
1c35b54e2d
fixed crashes in GtkText when it was refreshed from inside wxYield
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-12 11:26:06 +00:00
Vadim Zeitlin
41b2e0e6db
fixed bug with the text attr not being reset even after SetDefaultStyle(wxTextAttr()) call
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-25 18:12:53 +00:00
Robert Roebling
d7fa7eaa2d
Various changes to focus handling when TLW start.
...
Changed wxWindow::Clear() to use m_clearRegion.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15191 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-17 22:44:31 +00:00
Vadim Zeitlin
9e691f46b2
changes to make wxGTK compile with GTK+ 2.0: now it does but the minimal
...
sample crashes on startup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-12 19:24:30 +00:00
Robert Roebling
afbe906abd
Some work on GTK focus handling and events.
...
Removed some code #ifdeffed for GTK from
wxListCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-23 18:59:46 +00:00
Vadim Zeitlin
a66954a673
fix setting the font for a single-line text control (bug 508169)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-20 14:38:22 +00:00
Robert Roebling
2b328fc942
Added test for default action (button normally)
...
to combo box when hittinh return. In a normal
Find&Replace dialog, hitting enter in one of
the two fields will usually mean "OK".
Corrected the same test in wxTextCtrl.
Removed some debug code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-19 21:48:03 +00:00
Václav Slavík
a756f21001
use the new wxSystemSettings API everywhere
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-08 23:53:01 +00:00
Vadim Zeitlin
eda40bfc08
superposition of text styles in wxTextCtrl now works as expected (and as documented)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-26 14:50:50 +00:00
Robert Roebling
ba3f6b4436
Fixed sveral problems with wxTextCtrl::WriteText and AppendText.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-17 12:54:48 +00:00
Vadim Zeitlin
6c5ac6e1f1
yet another fix for wxTextCtrl bg colour (patch 462838)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-28 14:33:54 +00:00
Robert Roebling
76fcf0f239
Various changes for simplification of focus event
...
code in wxGTK. It will also work for wxComboBox
now, but not for GTK's other composite controls
such as wxListBox and wxChoice.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-19 21:36:25 +00:00
Vadim Zeitlin
ce2f50e34a
added sending of EVT_TEXT_MAXLEN to wxGTK, suppressed sending of dummy
...
EVT_TEXT_UPDATED events when the text doesn't really change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-16 13:18:51 +00:00
Vadim Zeitlin
d7eee191c5
implemented, tested and documented wxTextCtrl::SetMaxLength()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-15 12:45:53 +00:00
Vadim Zeitlin
5314ac16c5
compilation fix (sorry)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-06 11:48:00 +00:00
Vadim Zeitlin
572aeb7789
fix for infinite recursion in UpdateFontIfNeeded
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-03 17:19:55 +00:00
Robin Dunn
7ba5a665ac
Don't send a focus event if the window is a wxTextCtrl, since it sends
...
it's own focus event later on.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-02 03:06:24 +00:00
Vadim Zeitlin
817ec43a71
fixed compilation [warning]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-31 17:58:21 +00:00
Vadim Zeitlin
9cd6d737d5
1. made ScrollLines/Pages return bool indicating if we scrolled till the
...
end or not
2. implemented them for wxGTK text ctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-30 15:22:38 +00:00
Vadim Zeitlin
1ff4714de0
respect SetFont/SetXXXColour in wxTextCtrl even when using styles
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-26 09:58:19 +00:00
Vadim Zeitlin
1f4774338e
don't do anything in SetBackgroundColour() if colour is invalid
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-26 09:24:36 +00:00
Vadim Zeitlin
0cc7251efe
added wxWindow::Freeze/Thaw(), implemented them for wxGTK::wxTextCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-26 08:33:53 +00:00
Vadim Zeitlin
3379ed3789
tons of fixes for wxGTK/Univ - seems to work, more or less, now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-03 19:38:19 +00:00
Vadim Zeitlin
1e6feb95a7
first pass of wxUniv merge - nothing works, most parts don't even compile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-26 20:59:19 +00:00
Vadim Zeitlin
17665a2b5c
implemented text styles for GTK+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-18 17:41:33 +00:00
Vadim Zeitlin
1c7e7d5b1e
applied patch 433352 (fix for wxTextCtrl::SetForegroundColor())
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 16:37:14 +00:00
Julian Smart
5abf8c9d66
Call OnParentEnable from wxTextCtrl::Enable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 11:09:22 +00:00
Julian Smart
fdca68a670
Implemented OnParentEnable to allow widgets to reset their colours
...
after a wxWindow::Enable call
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 10:58:05 +00:00
Julian Smart
513903c4f9
Made wxWindow::Enable recursive in order to solve colouring problems; forced the colour
...
of a wxTextCtrl back to the custom colour in wxTextCtrl::Enable. This appears
to fix inconsistent colour problems.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 15:53:11 +00:00
Julian Smart
a88acabdd2
Applied patch #418555 : wxTextCtrl uses wrong background colour
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 12:01:48 +00:00
Vadim Zeitlin
2d4cc5b600
GetSelection() always returns from <= to as wxMSW does
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-07 15:08:38 +00:00
Robert Roebling
ce16e5d78f
Added wxFileName::GetModificationTime()
...
for Unix.
Don't send events when constructing a text ctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9691 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-09 17:16:09 +00:00
Julian Smart
fc71ef6e17
Added focus in/out handlers for wxTextCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-03-26 14:49:27 +00:00
Vadim Zeitlin
a1f79c1e00
1. added wxGTK::wxToolBar::SetToolShortHelp() and test for it in sample
...
2. fix a crash if SetSelection is called too early in wxTextCtrl
3. patch for mouse position in wxTreeCtrl events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-24 17:07:12 +00:00
Vadim Zeitlin
0104114590
fixed problem with calling SetFont() when (multiline) text control didn't have any value yet
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-20 14:11:42 +00:00
Julian Smart
dbf2885911
Fixed CanCut
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-29 16:18:39 +00:00
Bryan Petty
3ca6a5f046
second merge of the 2.2 branch (RL)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-08 06:11:51 +00:00
Bryan Petty
f6bcfd974e
merged 2.2 branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00
Robert Roebling
68df5777c7
Tried to fix corrupted display of wxTextCtrl,
...
Corrected wxFileDialog's multiple file option.
Corrected event mask for CaptureMouse(),
Small change to "best visual" code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5805 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-02 17:59:12 +00:00
Robert Roebling
db434467a1
New colour, font, theme and size code..
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-01-04 13:02:27 +00:00
Robert Roebling
0279e84482
Some Resize/GetBestSize() changes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-01-01 23:21:04 +00:00
Vadim Zeitlin
13111b2ac8
1. many, many, many warnings fixed (from HP-UX build log; 50% are still left)
...
2. attempt (failed) at compiling wxGTK with GTK+ 1.3.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-12-30 17:51:26 +00:00
Robert Roebling
924ef85080
GUI thread update and event corrections.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-12-29 17:16:55 +00:00