Bryan Petty
f05fb3ea61
This commit was manufactured by cvs2svn to create tag
...
'BEFORE_LINEWRAP_OPTIMIZE'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/tags/BEFORE_LINEWRAP_OPTIMIZE@8857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
BEFORE_LINEWRAP_OPTIMIZE
2000-11-28 17:19:11 +00:00
Vadim Zeitlin
8c27f612e5
now cache GetCharWidth() too (and not only height)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-28 17:19:11 +00:00
Vadim Zeitlin
be18e65726
split wxTextCtrl data members in wxSingle/MultiData
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-27 20:26:24 +00:00
Vadim Zeitlin
10644bd0bd
more work on wxTextCtrl: mostly works but very slow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-27 01:28:52 +00:00
Vadim Zeitlin
528a112b2c
1. fix for generation of mouse enter/leave events in wxMSW
...
2. render disabled check/radio box [more] correctly
3. several bug fixes with m_posLast caching
4. implemented wxTextCtrl word (as opposed to line) wrap
5. problem with selection refresh in line wrap style fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8827 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-26 04:36:33 +00:00
Vadim Zeitlin
20b45caa12
1. don't call GetPartOfWrappendLine() unnecessarily
...
2. optimized it (replaced by a call to HitTestLine) for the other cases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-26 02:05:33 +00:00
Vadim Zeitlin
eafd9d4f24
added wxRenderer::DrawTextBorder() to deal with GTK+ text borders
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-24 18:59:17 +00:00
Vadim Zeitlin
6378b5268d
fixed vert offset for single line text ctrls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-24 17:31:02 +00:00
Vadim Zeitlin
17516c205e
1. more work on line wrap - mostly works now
...
2. small fixes to wxStaticText (best size calc) and to check box
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-20 01:16:27 +00:00
Vadim Zeitlin
55b9ea2484
more work on wxTextCtrl with line wrapping: drawing/scrolling seems to
...
work, refresh still doesn't
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-18 19:49:21 +00:00
Vadim Zeitlin
d96fbfa52a
more tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-11 16:06:38 +00:00
Vadim Zeitlin
45911360b2
text is shown correctly in controls without wxHSCROLL (line wrap) style
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-11 04:31:42 +00:00
Vadim Zeitlin
8637e11695
added a few comments, nothing more
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-10 22:03:37 +00:00
Vadim Zeitlin
a00fd3e544
always show vert SB for multiline text ctrls without wxTE_RICH style
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-10 21:14:20 +00:00
Vadim Zeitlin
c0bd235861
more tests in texttest
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-08 20:32:36 +00:00
Vadim Zeitlin
a79c455963
1. wxCommand compilation fixes for Unix
...
2. added wxTextCtrl sample textctrl
3. fixed handling of wxTE_READONLY and wxTE_PASSWORD flags in wxTextCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-08 19:08:46 +00:00
Vadim Zeitlin
8190b05419
horz scrolling in etxt ctrl works better
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-07 16:55:41 +00:00
Vadim Zeitlin
472b41175a
undo/redo seem to work in wxTextCtrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-06 00:54:23 +00:00
Vadim Zeitlin
7ad39665fa
1. wxTextCtrl::Replace() does work now - added many tests for it in univ sample
...
2. extracted wxCommand and wxCommandProcessor to separate files
3. fixed bug in wxStringTokenizer with strings consisting of sole delimiter
4. implemented (but untested) undo/redo for text ctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-06 00:30:27 +00:00
Vadim Zeitlin
409299535d
fixes for ScrollWindow() in caret presence (hide and reshow it)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-31 17:36:41 +00:00
Vadim Zeitlin
99eb9f350e
vert textctrl scrolling starts to work after tons of fixes to wxTextCtrl and
...
wxScrolledWindow (to better respect target window rect)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-31 01:56:42 +00:00
Vadim Zeitlin
f6c8b8f53d
1. fix for custom event handler in wxScrollWindow which was eating events
...
2. fix for (initial) selection anchor position in wxTextCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-30 21:15:15 +00:00
Vadim Zeitlin
9686c81605
compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-23 10:52:19 +00:00
Vadim Zeitlin
36830fc59e
disabled text control doesn't show the caret
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-23 10:26:20 +00:00
Vadim Zeitlin
d131b63b6d
1. big wxScrollBar optimization: Refresh() doesn't refresh them any more
...
2. many fixes to refresh scrollbars when needed (as this is not done all
the time now)
3. wxStdButtonInputHandler bug with uninit m_hasMouse fixing bug with
moving mouse with pressed left button into button
4. wxRadioBox::SetSelection() and wxRadioButton::SetValue() clear the
values of the other buttons in the same radio group
5. wxTextCtrl::RefreshPixelRange() calculates the end of line correctly
6. tons of wxListBox fixes
7. removed confusing "Create" button from the lbox sample, listbox is now
recreated on the fly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-23 01:45:21 +00:00
Vadim Zeitlin
1f720ce54b
1. wxScrollHelper can be used to scroll only parts of window
...
2. wxTextCtrl and wxButton size calc adjusted again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-20 20:19:03 +00:00
Vadim Zeitlin
f104f965eb
bug with lbox recreation fixed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-20 09:16:00 +00:00
Vadim Zeitlin
d55d0aa0f5
1. many (minor) listbox fixes
...
2. scrollbar thumb now has min size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-20 00:48:55 +00:00
Vadim Zeitlin
bef37c03db
more tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-20 00:36:12 +00:00
Vadim Zeitlin
e2f369c206
1. wxListBox horz scrollbar fixes: now disappears when items are deleted
...
2. wxListBox quick searching on key press implemented
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-19 01:36:49 +00:00
Vadim Zeitlin
3b56ef075a
wxTextCtrl works as itshould in disabled and/or not editable states
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-18 17:46:08 +00:00
Vadim Zeitlin
85df8658e0
fixed UpdateLastVisible() - but why was it broken???
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-18 16:22:59 +00:00
Vadim Zeitlin
8ea58028dc
Replace() optimization for single line controls restored
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-18 16:11:09 +00:00
Vadim Zeitlin
facdb39467
1. more work on multiline text ctrl (scrolling...)
...
2. minor bugs in listbox/scrollbar fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-15 21:15:27 +00:00
Vadim Zeitlin
7e29723b0f
movement by word works for multiline too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-15 19:50:55 +00:00
Vadim Zeitlin
c80b9af4d7
fixed bug when the caret wasn't shown if it was hidden when the window got focus the last time
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-15 19:47:44 +00:00
Vadim Zeitlin
6dbe10e7a6
wxTextCtrl::Replace() seems to work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-15 16:52:52 +00:00
Vadim Zeitlin
649850e16c
basic drawing and cursor movement seem to work in multiline textctrl
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-14 23:34:47 +00:00
Vadim Zeitlin
b16e3fb5e8
many more methods implemented (though untested) for multline text ctrls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-12 19:39:12 +00:00
Vadim Zeitlin
b7cdbb0e4c
1. added wxStringTokenize
...
2. some multiline wxTextCtrl code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-12 09:09:49 +00:00
Vadim Zeitlin
5abcba0bef
drastically reduced scrollbar flicker when thumb is being dragged
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-09 23:25:27 +00:00
Vadim Zeitlin
a978bcef22
1. wxListBox::Delete() refresh bug fixed
...
2. wxScrollBar::HitTest() fixed (=> fixing refresh problem) for scrollbars
without range
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-09 17:07:23 +00:00
Vadim Zeitlin
ca818da556
fixed horz scrollbar (dis)appearance
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-09 10:25:42 +00:00
Vadim Zeitlin
a3a13581dd
1. wxRadioBox event generation fixed
...
2. significantly expanded and enchanced listbox sample
3. wxTextCtrl::IsModified() implemented
4. wxRadioBox button layout fixed once again
5. wxTextCtrl::SetValue() refresh bug fixed
6. wxListCtrl doesn't keep invalid selection after Delete()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-08 23:12:36 +00:00
Vadim Zeitlin
943240b264
1. listbox sample fixed, now seems to work more or less (except for wxSizer problem)
...
2. wxRadioBox lays out items correctly
3. wxListBox::DoInsertItems() refreshes correctly
4. list box scrollbars are now refreshed correctly too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-06 16:24:25 +00:00
Vadim Zeitlin
ea8259f286
1. fixed client size calculations for GTK
...
2. fixed wxGTK region code
3. fixed bug with out of bounds coords in wxTextCtrl::HitTest()
4. tried to (but failed) fix the initial caret appearance
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-05 19:10:37 +00:00
Vadim Zeitlin
b28342f733
1. (hopefully) fixed horz scrolling
...
2. only refresh part of line in Replace()
3. changed wxWindow::Refresh() to take client coordinates
4. only refresh the text which must be refreshed when selection changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-10-01 22:47:30 +00:00
Vadim Zeitlin
62b93fefcf
added debugging code to HitTest(), added m_posLastVisible and m_colLastVisible
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-09-30 21:25:29 +00:00
Vadim Zeitlin
f03ccf7b5b
wxTextCtrl:
...
1. now only scroll the visible text, not the entire text rect
2. don't draw the columns before the leftmost (visible) one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-09-30 00:43:45 +00:00
Vadim Zeitlin
8dd0bb9ab7
more fixes for horz scrolling, still unsuccessfully
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-09-28 16:25:45 +00:00