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
9a83f86094
Globally replace _T() with wxT().
...
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660 ).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
43b2d5e7c3
Put braces around all calls to wxLogFunctions() inside an if statement.
...
This suppresses all the remaining g++ -Wparentheses warnings and uses consistent style everywhere.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-20 16:47:54 +00:00
Vadim Zeitlin
febebac1a0
added wxTreeCtrl::GetFocusedItem() ( closes #10859 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-06-19 23:34:51 +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
bd5d8ac1b5
define constants for the number of items in the tree at each level and number of levels
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-16 12:48:51 +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
a10c8e43d0
add event.Skip() in EVT_CONTEXT_MENU handler
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-17 09:53:19 +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
Robert Roebling
11339a3884
Use xpms for checked/unchecked states instead of drawing them (yielded junk)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-17 11:58:39 +00:00
Vadim Zeitlin
a6aa377bb3
use transparent icons and clear the DC before drawing them to fix the background of state icons appearance (part of #9591 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 19:15:19 +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
f95dc4d620
Compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-24 12:56:25 +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
ec8bb9248e
compilation fix after the last change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-24 15:09:39 +00:00
Vadim Zeitlin
8c7da4a6b2
correct toggling of the selected icon (closes 4029)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53726 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-23 18:49:22 +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
c6a6bbbf63
disable select root menu command when the root is hidden
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 12:58:01 +00:00
Paul Cornett
9812391356
fix assertions on invalid items
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-11 23:29:26 +00:00
Vadim Zeitlin
45e6e6f8ab
call OnInit() from all samples to allow using standard command line options with all of them (patch 1623971)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-04 00:34:18 +00:00
Vadim Zeitlin
8f6dc819f8
return correct item and position from wxTreeEvent::GetItem/Point() (patch 1622166)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-07 15:43:22 +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
a978c7d258
show the item for which the context menu is shown correctly
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-22 22:33:25 +00:00
Paul Cornett
b143cf708b
64-bit warning fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-02 05:36:31 +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
Robert Roebling
3bb918c097
Added test to reproduce [ 1541148 ] wxTreeCtrol: crash if right mouse click
...
The MSW tree control sends a series of invalid events.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 11:13:17 +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
Włodzimierz Skiba
b2c82287f6
Final steps to move to common icon.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 06:43:18 +00:00
Stefan Neis
344d066d17
Use xpm for PM port on OS/2 as well.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-16 16:13:51 +00:00
Václav Slavík
0c36b36e98
test changing of selected item's icon in DoToggleIcon as well
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-10 22:27:36 +00:00
Włodzimierz Skiba
5f60a273bd
PRIOR/NEXT build fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-24 12:17:48 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Kevin Hock
9489a5357f
Add comment to ITEM_MENU reflecting why it's the best choice for context menus in a tree
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-21 03:03:40 +00:00
Vadim Zeitlin
5fd60e085a
test EVT_TREE_ITEM_RIGHT_CLICK as well
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-06 22:32:24 +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
646a8a4d0e
make it possible to change the text of the item being edited from OnBeginLabelEdit()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-03 00:27:52 +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
Vadim Zeitlin
bee09d36e2
avoid asserts from calling isprint(c) with non ASCII c
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-18 15:03: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
b713f8919c
wx/math.h integration
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-14 20:52:13 +00:00
Ryan Norton
0c6099b79e
Revert files to previous version that were affected by wxIsXXX((wxChar)X) change. Note - passing a negative value to those c lib functions is undefined, and could return true on platforms using a lookup table, for example (might crash also?), which is what will happen when casting to char to ansii mode and a char is above 127
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 07:09:35 +00:00
Włodzimierz Skiba
32b1391332
Warning fixes to unused variables, int/wxChar keycode and other typecasting, not mixing 'type*' and 'type' variables in single line, IsEmpty to empty replacement etc.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-05 21:18:04 +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
Dimitri Schoolwerth
2153bf897a
replaced menu calls Append([...], true) with the less cryptic AppendCheckItem
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-13 00:02:35 +00:00