Commit Graph

173 Commits

Author SHA1 Message Date
Vadim Zeitlin
9bb50fd0b0 use unsgined int instead of int for 1 bit bitfields (SGI CC warning fix)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-17 21:01:01 +00:00
Kevin Hock
867f2ca48e Do not try to expand the root node in SetWindowStyle if the root node hasn't been created yet [ bug 1247413 ]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-29 13:20:17 +00:00
Robin Dunn
fced50667d Don't deselect all others when SelectItem is called on a treectrl with
wxTR_MULTIPLE style


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-08 23:07:06 +00:00
Włodzimierz Skiba
902725eefe Source cleaning inspired by and included in patch '[ 1215450 ] cleanup: unreachable code.'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-06 16:47:04 +00:00
Kevin Hock
39faaf39b1 Include the location of the item in the ITEM_MENU event generated by the menu key, and send the ITEM_MENU event after the RIGHT_CLICK event (consistent with MSW, but this behavior may change). The latter ITEM_MENU event had previously not been sent at all.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-21 03:01:04 +00:00
Julian Smart
6c051af454 Fix for my fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-23 20:13:13 +00:00
Julian Smart
602f0c99b5 Improve appearance for themes that don't allow background colour change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33845 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-23 13:22:30 +00:00
Robert Roebling
ce17501854 Fix the fix for not sending two end label edit events
because that fix prevented anyone from finishing the
    edit by keys.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-31 21:00:29 +00:00
Robert Roebling
33fe475aeb This fixes a problem in the two tree and list controls that
are trigger if the user app shows dialog in reaction to
   the user pressing e.g. <ENTER>. The edit text control will
   lose focus and emit another event. Might be possible to
   fix without adding another field, but this way it surely
   works.
  Also added correction to treecontrol as per listcontrol in
   the situation when a label change happens by losing the
   focus and the user cannot reject it, another event is emitted.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-07 17:25:29 +00:00
Robin Dunn
77b7cd4fc3 Set the mouse pos for the drag events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-02 18:31:54 +00:00
Julian Smart
105fc244a1 Applied patch [ 1113565 ] generic treectl multiselection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-10 15:33:51 +00:00
Włodzimierz Skiba
9548f38086 Minor decorations.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31854 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-08 13:02:34 +00:00
Robert Roebling
9fce43b779 Commited SetHilightDropEffect patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-30 12:44:50 +00:00
Robin Dunn
c145a47c6e Patch #1111679
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-29 01:03:07 +00:00
Kevin Hock
b4a5e7b6f1 Close tree edit even if the change is vetoed to be consistent with MSW [patch 1110252]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-28 19:01:40 +00:00
Kevin Hock
e8cf9a5f01 Do not modify selection if right-click is on a selected item [patch 1111174]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-28 03:41:01 +00:00
Robert Roebling
ac103441d1 Applied patch which solved conflicts between wxWidgets
and GTK+'s context menu code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-16 15:27:15 +00:00
Włodzimierz Skiba
a6fb8636e5 Old API deprecated. Source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-11 21:17:16 +00:00
Robert Roebling
e3d64157d7 Added way to specify in generic tree control
if the drop effect (a line) should be drawn
   above or below the item.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-07 22:31:42 +00:00
Robert Roebling
daa7ae0c30 Corrected drag effect for tree control.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-07 22:09:08 +00:00
Włodzimierz Skiba
1729813a8d Old API clearly deprecated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-05 19:25:02 +00:00
Robert Roebling
f7c6f947cf Added TREE_ITEM_MENU event that gets sent if the
user hits the "Menu" key on the newer keyboards.
   So far generic control only.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-26 17:37:59 +00:00
Robert Roebling
af3961b357 Deselect a child item on Collapse. Otherwise
we end up with 2 selected item even in
   single selection mode. This is a follow-up
   to the no-dangling pointer patch and also
   reflects MSW behaviour.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31144 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-25 18:27:59 +00:00
Robert Roebling
ababa106ae Add SetFocusIgnoringChildren() to wxControlContainer. This
makes corresponding hacks in wxListCtrl and wxTreeCtrl
    obsolete. With docs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-11 12:51:05 +00:00
Robert Roebling
0cf3b5429a Applied patch to stop crashing the tree control
when deleting a selected item. Also does something
   to the inplace edit control.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-24 15:03:28 +00:00
Julian Smart
5117f9bfae Null m_select_me when this item is deleted
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-18 10:02:56 +00:00
Kevin Hock
e4899fd770 Fix tree control focus issues on OS X (and possibly others) caused by toplevel.cpp not giving focus if children eat the LEFT_DOWN event... added event.Skip() on LeftDown() (whether an item is hit or not) after all dragging and moving conditions have been considered so that LEFT_DOWN events are never eaten by the tree preventing receiving focus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-17 02:33:58 +00:00
Stefan Csomor
ca80fdee5e __WXMAC_OSBUILDTYPE__ selections are now only defined if they are TRUE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-17 10:36:33 +00:00
Włodzimierz Skiba
8253f2e063 Warning fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 16:00:06 +00:00
Stefan Csomor
6574f2b143 adapting textctrl position to window theme
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-30 07:07:26 +00:00
Stefan Csomor
3b656728dd repositioning of mac textctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-29 10:07:39 +00:00
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
Vadim Zeitlin
09088d12d4 compilation fix after last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 15:48:14 +00:00
Vadim Zeitlin
eb7f24c1b5 don't crash if we delete the item being edited (replaces patch 979733)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-25 15:24:17 +00:00
Václav Slavík
9146872cb5 changed to behave in same way as native win32 control and generic wxListCtrl when wxEVT_COMMAND_TREE_END_LABEL_EDIT is vetoed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-23 16:45:28 +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
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
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
Stefan Csomor
bef7a62d8f unicode fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-24 07:28:52 +00:00
Vadim Zeitlin
2b4f324ae2 fixed sending 2 events (normal and bogus cancel one) when ending to edit a tree ctrl item (patch 978403)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-23 18:26:49 +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
Vadim Zeitlin
ffda4dacbd count the root item in wxTreeCtrl::GetCount()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-10 12:06:10 +00:00
Robin Dunn
05b2a432c6 Fix for bug# 956875. Added some wxCHECK's to MSW's wxTreeCtrl to make
things more consistent with the generic version.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-25 04:33:35 +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
Dimitri Schoolwerth
3f927d5023 fixed unused variable warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-06 23:47:14 +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
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
Vadim Zeitlin
df74fdeafd GetChildrenCount() should be const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-16 09:44:32 +00:00
Vadim Zeitlin
e1983ab588 implemented Freeze/Thaw() (patch 922156)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-30 17:10:30 +00:00