Commit Graph

62 Commits

Author SHA1 Message Date
Vadim Zeitlin
526954c596 Globally use "wxWindows licence" consistently.
Use "wxWindows licence" and not "wxWidgets licence" (the latter doesn't
exist) and consistently spell "licence" using British spelling.

See #12165.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-07-13 13:29:13 +00:00
Vadim Zeitlin
e95f081682 Add a test for selecting the last item in the tree control sample.
This allows to test whether an item is brought into view by selecting it,
see #11154.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-06-20 17:43:11 +00:00
Vadim Zeitlin
5708ae18f2 Add wxTreeCtrl::{Clear,Set}FocusedItem().
Allow changing just the currently focused (not selected) item and also
removing the focus completely.

Closes #11599.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-05-02 12:01:30 +00:00
Vadim Zeitlin
5cb3a695e0 Add wxTreeCtrl::SelectChildren() method.
Add MSW and generic implementation, documentation and change to the sample
showing it.

Closes #11620.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 12:43:39 +00:00
Vadim Zeitlin
51a5c8df7c improve wxTreeCtrl::ScrollTo() behaviour in the generic version and add a test for it to the sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-31 13:08:16 +00:00
Vadim Zeitlin
5cfb5f66af add a menu item to test setting focus (see #626 comment:42)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-16 11:49:04 +00:00
Vadim Zeitlin
df4a099cbe fix state images after changing their style (see #9591)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-25 18:34:45 +00:00
Vadim Zeitlin
0c6afdbf4c test showing parent/sibling items too (#9903)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-03 20:16:56 +00:00
Robert Roebling
4754ab1630 Next part of tree state icon patches
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-24 12:48:01 +00:00
Vadim Zeitlin
f73eddd2a5 made wxTreeCtrl::GetNextVisible() behave in the same way in Win32 as in the generic version and implemented GetPrevVisible() in the generic version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-07 21:58:51 +00:00
Vadim Zeitlin
f87a111f9e added a menu command to clear log
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 23:48:51 +00:00
Vadim Zeitlin
527343602e 1. changed wxIconBundle to use m_refData and COW to make copying icon bundles
fast (which was needed for 2)
2. make it possible to return wxIconBundles from wxArtProvider
3. implement Mac-specific wxArtProvider doing (2)

(modified patch 1581960)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 19:59:51 +00:00
Vadim Zeitlin
e525c4ff96 test GetBoundingRect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 11:26:51 +00:00
Vadim Zeitlin
5c2603c2e8 make log messages more readable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 15:24:19 +00:00
Vadim Zeitlin
998cee6792 make control children of a panel and not directly the frame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-03 23:43:35 +00:00
Vadim Zeitlin
2a7eaf1243 forgot to check in OnItemRClick() declaration (bug 1179552)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-09 11:04:00 +00:00
Vadim Zeitlin
c545c23009 log right mouse down/up events too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-05 23:03:32 +00:00
Vadim Zeitlin
ef46ef23cb added EVT_TREE_ITEM_MENU test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-18 15:13:41 +00:00
Julian Smart
525bc4fc77 Don't start ids at zero
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-15 11:29:14 +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
925e9792d3 Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29684 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-06 20:54:57 +00:00
Włodzimierz Skiba
b29903d485 wxUSE_LOG fixes and sizer adjustements related to positioning with/without LOG output.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-07-21 10:29:21 +00:00
Włodzimierz Skiba
9013f51341 -1->wxID_ANY, TRUE->true and FALSE->false replacements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-20 17:23:15 +00:00
Vadim Zeitlin
dc631754fc added Select() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-12 16:35:36 +00:00
Vadim Zeitlin
cf36ec2583 unused param warnings fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-24 15:01:08 +00:00
Vadim Zeitlin
a67c56641d added IsVisible() test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-21 19:40:35 +00:00
Vadim Zeitlin
2d75caaa6d fixes for deprecated warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-20 14:01:00 +00:00
Vadim Zeitlin
ae8c4b33a3 added state image support (patch 530155)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-10 12:46:48 +00:00
Julian Smart
1cf1238db4 Reset m_lastItem to avoid crashes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-01 15:38:55 +00:00
Julian Smart
6aa89a22b8 Fixed copyrights and licence spelling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 11:55:54 +00:00
Ron Lee
99006e446e Added wxTreeCtrl::GetItemParent to deprecate GetParent.
Moved GetParent into WX_COMPAT_2_2 and exposed base GetParent in
that case too.

Replaced all lib/sample uses of wxTC::GetParent with GetItemParent.

Updated docs to suit.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-29 07:48:21 +00:00
Vadim Zeitlin
11ab1dfbfe enhanced sample to show the state of the different styles, added reset to default command
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-16 15:10:43 +00:00
Julian Smart
ec312631c6 Finally reverted treectrl name back to treetest after a long
history of problems with the name clash. This cures a link problem
with the sample compiled with wxX11.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-12 12:22:02 +00:00
Ron Lee
5301d93336 renamed treectrl sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-14 18:37:46 +00:00
Vadim Zeitlin
dee1b66f85 changed default image size to 16
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-10 01:17:08 +00:00
Vadim Zeitlin
2c8e47380e 1. wxShell fixes: now really uses shell (it wasn't different from wxExecute!)
and also added a version which captures the programs output
2. fix for compilers which have void ftime() (my mingw does) in timercmn.cpp
3. updated console sample to test wxShell/wxExecute
4. treetest now can toggle images or change their size
5. wxTreeCtrl doesn't crash if it has no image list


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-03 10:31:34 +00:00
Vadim Zeitlin
7cc8c9884d multiple/single sel mode can now be toggled from menu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-23 00:30:59 +00:00
Vadim Zeitlin
5888ef1e7d 1. dnd demo in treetest
2. compilation fix in drawing (for VC++)
3. refresh bug fixed in regtest, dnd/copying keys seems to work


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-15 23:57:33 +00:00
Vadim Zeitlin
75c74ca055 1. added test for wxTreeCtrl::Insert(size_t index)
2. temporary test code for wxCalendarCtrl in controls.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-12-29 10:29:26 +00:00
Robert Roebling
5fd11f0971 Added test for wxTreeCtrl::GetChildrenCount()
Fixed Reparent (added heaps of debug code for this)
  Small mods to glcanvas


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-10-02 19:43:56 +00:00
Vadim Zeitlin
74b31181b3 1. Implemented support for different icons for different states (expanded,
selected, combination of them) for the tree control (and doc'd it)
2. removed code which was sending extra event if wxFrame::SetSize() was
   used
3. important changes to wxWizard interface
4. small compilation corrections


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-09-29 22:47:56 +00:00
Vadim Zeitlin
9dfbf520eb wxMSW::wxTreeCtrl has multiple selection too (somewhat documented)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-07-30 22:45:55 +00:00
Vadim Zeitlin
5ea4780630 1. changed spelling error in wxTR_HAS_VARIABLE_HEIGHT (missing 'E')
2. compile fix for dcscreen.cpp
3. editing labels in place works in the tree ctrl and shown in the sample
4. sped up items deletion in the listview


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-07-23 23:41:45 +00:00
Robert Roebling
91b8de8dee Added OS/2 patches to wxGTK.
Updated docs.
  Added wxMask code.
  Added Sylvain's newest tree ctrl code and sample.
  Corrected wxDC background colour (now as wrong as wxMSW).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-06-13 15:24:01 +00:00
Robert Roebling
cf724bceea TreeCtrl indentation and spacing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-05-03 23:11:53 +00:00
Vadim Zeitlin
5f939e78ef HitTest test added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-04-12 11:48:06 +00:00
Vadim Zeitlin
dd3646fd30 CollapseAndReset() fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-24 21:56:08 +00:00
Vadim Zeitlin
f65635b5c9 EnsureVisible() also expands the parent items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1999-03-23 13:50:29 +00:00
Vadim Zeitlin
23fd5130c7 missing functions implemented in wxMSW tree ctrl (custom sorting,
GetChildrenCount(), DeleteChildren()).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-20 00:34:52 +00:00
Vadim Zeitlin
e1ee62bd79 wxTreeCtrl::Sort() changed, adapted the sample to show it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
1998-12-18 15:37:19 +00:00