Commit Graph

590 Commits

Author SHA1 Message Date
Robin Dunn
3872d96df2 give the generic tree and list controls a DoGetBestSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-25 22:22:37 +00:00
Włodzimierz Skiba
9da89d3100 We need one float argument to perform floating point division.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-09 17:10:18 +00:00
Václav Slavík
768276f6ed fixed sending 2 events (normal and bogus cancel one) when ending to edit a tree ctrl item (same thing as patch 978403 for treectlg.cpp)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-27 08:53:10 +00:00
Vadim Zeitlin
e6bf95736e compilation fix for a patch which didn't compile...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 15:52:40 +00:00
Vadim Zeitlin
8158e0e169 FindItem() implementation (patch 950021)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 12:32:59 +00:00
Václav Slavík
daa44d5bfd documented while event.Skip() is necessary so that nobody removes it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-23 16:45:23 +00:00
Włodzimierz Skiba
422d0ff0be wxDefaultSize.* and wxDefaultPosition.* to wxDefaultCoord.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-20 10:09:47 +00:00
Włodzimierz Skiba
c7cf7a783b GetItemCount is int.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-19 09:42:25 +00:00
Robin Dunn
33c956e61c Allow any too-large index to mean Append, just like on MSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-16 20:29:17 +00:00
Vadim Zeitlin
92a4e4de68 don't set font unless necessary (patch 984853)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-04 11:20:44 +00:00
Vadim Zeitlin
39e39d3944 use CmdDown() instead of #ifdefs for Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-01 00:05:56 +00:00
Václav Slavík
fa47d7a7ad SetDefaultXXX -> SetOwnXXX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-30 17:12:03 +00:00
Robin Dunn
015fd9ef48 Allow for Cmd-click on wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-29 01:09:06 +00:00
Włodzimierz Skiba
ca65c0440a Code cleaning: wxID_ANY, wxDefaultSize, wxDefaultPosition, true, false, wxEmptyString, tabs and white spaces.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-17 16:22:36 +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
Robin Dunn
e70457844a Fixed compile warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-11 23:03:15 +00:00
Robin Dunn
944b1f5e17 Don't #include the extra files unless we need them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 21:40:49 +00:00
Robin Dunn
e1d1f4bd99 moved #define to before it is used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 21:15:06 +00:00
Robin Dunn
35d4c96744 Use wxVisualAttributes (partially #if'd out until tested further.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 21:01:24 +00:00
Stefan Csomor
f89d65ea8d mac fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-27 08:51:10 +00:00
Robert Roebling
ae7cbd1a1f Made space around text symmetric.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-01 22:17:56 +00:00
Vadim Zeitlin
b5d43d1d73 use HasFlag() and InXXX() instead of explicit flag testing (patch 899507)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-29 23:24:35 +00:00
Robert Roebling
65a1f3509b The list ctrl doesn't draw any focus
item under Mac at all.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-22 18:10:24 +00:00
Robert Roebling
518c393914 Fix redraw problem in multiple selection listctrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 23:17:49 +00:00
Robert Roebling
03eccb8316 Corrected redrawing of sash when resizing
the columns. No longer any ghost line.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 20:58:05 +00:00
Robert Roebling
cabeffb029 Correctly center lables vertically.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-08 20:36:09 +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
3fc93ebd18 Applied patch [ 818941 ] Initialize vars and clear wxImageList
Also small speedup in wxFileIconsTable


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-11 08:01:04 +00:00
Vadim Zeitlin
cd318cd31b removed assert which became incorrect after last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-08 12:28:48 +00:00
Vadim Zeitlin
6d78bbe637 fixed vertical scrollbar handling (broken by some relatively recent but unknown precisely change)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-06 19:41:46 +00:00
Vadim Zeitlin
999836aaca warning fixes for BCC and OW (heavily modified patch 819146)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-16 10:28:15 +00:00
David Elliott
18dd54e3fd wxListMainWindow::OnRenameCancelled(): itemEdit parameter is used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-07 13:20:30 +00:00
Vadim Zeitlin
d2ed74b912 send END_EDIT label if label editing is cancelled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-07 08:41:54 +00:00
Vadim Zeitlin
8b1ed8d979 update height of the header window whenever it changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-26 23:47:28 +00:00
Robin Dunn
dc76287dcd Allow derived classes to prevent default focus handling (by not
calling Skip)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 23:48:17 +00:00
Julian Smart
8a39593ebe Applied patch [ 808050 ] fixes for WXUNIVERSAL and UNICODE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-18 14:03:09 +00:00
Vadim Zeitlin
ab96d680eb adjust m_current when inserting items in the control (patch 799937)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 22:59:02 +00:00
Vadim Zeitlin
86351e4a9d fix for calculating the header window height (patch 805791)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 22:52:47 +00:00
Vadim Zeitlin
94dd23aebc align the items correctly with wxLC_ALIGN_TOP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 21:10:22 +00:00
Vadim Zeitlin
13602ebd04 added support for wxLC_ALIGN_LEFT/TOP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 20:40:26 +00:00
Vadim Zeitlin
eb6c4508c9 account for the scrollbars in GetViewRect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 19:52:46 +00:00
Vadim Zeitlin
f58fc1407b compilation fix after last check in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 16:12:05 +00:00
Vadim Zeitlin
5db8d758b8 fixed GetItemSpacing() inconsistency by deprecating the old function and adding a new, easier to use, overload
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 16:06:27 +00:00
Vadim Zeitlin
11ebea162a added wxListCtrl::GetViewRect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-14 15:58:41 +00:00
Julian Smart
f8252483ec Applied patch [ 803473 ] wxListCtrl header height bugfix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-11 15:38:38 +00:00
Vadim Zeitlin
1e54be64fd ensure that GetItemRect() returns the real rect and not 0 even if it's called before first OnIdle()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-21 23:08:10 +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
Vadim Zeitlin
61fef19b85 warnings (and some errors) fixes for wxUniv DLL build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-03 20:58:56 +00:00