Commit Graph

241 Commits

Author SHA1 Message Date
Włodzimierz Skiba
ed4b0fdca6 Include wx/dcclient.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 21:51:49 +00:00
Vadim Zeitlin
f516d98637 create stock GDI objects on demand; use const with GDI objects appropriately (patch 1445355)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 22:18:29 +00:00
Vadim Zeitlin
619297ab30 slight simplification of coords translation code in GetBoundingRect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 01:16:52 +00:00
Vadim Zeitlin
402dfce7b3 GetBoundingRect() is supposed to return the logical coordinates, even in !textOnly case; also documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-06 14:27:34 +00:00
Włodzimierz Skiba
027d45e8fc Back to unsigned int count in wxTreeCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-24 23:46:43 +00:00
Vadim Zeitlin
66619ee50c removed useless checks for tree==NULL in wxGenericTreeItem::DeleteChildren(), as tree==this of the calling object (coverity checker CID 6)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-07 22:56:11 +00:00
Robert Roebling
f0bc6afbbd First release mouse, then emit event.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-27 21:49:48 +00:00
Michael Wetherell
8d7eaf9140 Warning fixes for VC5 (Igor Korot)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-12 12:16:56 +00:00
Robin Dunn
633ecf268b Fix for wxMac when the tree doesn't have the focus and the
wxSYS_COLOUR_HIGHLIGHTTEXT is white.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-09 02:57:04 +00:00
Julian Smart
7ede73899d Moved EnsureVisible to avoid spurious selection of root during idle processing
(via ScrollTo/wxYieldIfNeeded)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-20 15:27:11 +00:00
Julian Smart
9941146580 Event coordinates should _always_ be physical, not logical, to
be consistent both with other events and with the wxMSW control


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-19 22:49:13 +00:00
Vadim Zeitlin
22574b4a9c renamed DoHitTest() to DoTreeHitTest() to avoid conflict with existing wxWindow method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-17 19:31:40 +00:00
Vadim Zeitlin
3e4f8ee256 removed hardcoded DoGetBestSize() implementation; added support for textOnly parameter in GetBoundingRect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-10 22:29:39 +00:00
Vadim Zeitlin
642446e3bf Windows compilation fixes after wxTreeCtrl refactoring
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-10 20:36:20 +00:00
Vadim Zeitlin
8cee4a304f introduced a common base class for both MSW and generic wxTreeCtrl implementations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-10 20:25:02 +00:00
Mattia Barbon
dee1a63ff5 Removed WXWIN_COMPATIBILITY_2_2 together with code guarded by it.
Changed default for WXWIN_COMPATIBILITY_2_4 to 0.
  Added WXWIN_COMPATIBILITY_2_6 (defaults to 1).
  Ran build/update-setup-h.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-09 15:48:42 +00:00
Vadim Zeitlin
4e115ed2c7 fixed variable shadowing icc warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 00:29:42 +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
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