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
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
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
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
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
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
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
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
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
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
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
3ab62a0f7f
1. iterate over update region in wxTextCtrl
...
2. fixed DC clipping under wxMSW
3. fixes to enable clipboard under wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-09-28 00:19:14 +00:00
Vadim Zeitlin
dd27aca4ee
more work on horz textctrl scrolling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-09-25 00:20:56 +00:00
Vadim Zeitlin
025f9ba319
wxTextCtrl work:
...
1. horz scrolling (not perfect yet)
2. more actions (clipboard, double click)
3. wxCaret fixes
4. clipboard support
5. wxTE_PASSWORD support
wxScrolledWindow/wxlistBox:
better hit test calculation: take into account GetClientAreaOrigin()
fix for wxGTK bug in wxDC::Blit() in wxWindow::ScrollWindow
draw transparent radio bitmaps under GTK
wxWindow::ScrollWindow() can now scroll a part of window only
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-09-22 22:49:15 +00:00
Vadim Zeitlin
634b9eb4e4
1. better kbd interface to wxTextCtrl (selection...)
...
2. mouse input handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-09-18 19:07:24 +00:00
Vadim Zeitlin
c7a0b9e59e
1. wxNcPaintEvent for wxMSW
...
2. wxTextCtrl (single line) cursor movement/basic editing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-09-17 04:03:07 +00:00
Vadim Zeitlin
e65ebedd36
1. OnNcPaint() fixed, seems to work
...
2. start of wxTextCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-09-15 18:22:18 +00:00