Added wxDIRCTRL_EDITABLE style so we can choose whether

items are editable or not


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-04-08 11:15:16 +00:00
parent 992295c493
commit fd775aae7b
4 changed files with 9 additions and 9 deletions

View File

@@ -503,13 +503,10 @@ bool wxGenericDirCtrl::Create(wxWindow *parent,
Init();
long treeStyle = wxTR_HAS_BUTTONS;
#ifdef __WXMSW__
// VS: Do **NOT** remove this style, ever. MSW native wxTreeCtrl::EditLabel doesn't
// work without this style and we need it to be able to create new directories.
// Generic wxTreeCtrl can do it even w/o wxTR_EDIT_LABELS, so we only add it
// in case of wxMSW (as it is arguably better to not have the style enabled)
treeStyle |= wxTR_EDIT_LABELS;
#endif
if (style & wxDIRCTRL_EDITABLE)
treeStyle |= wxTR_EDIT_LABELS;
#ifndef __WXMSW__
// FIXME, doesn't work for some reason
treeStyle |= wxTR_HIDE_ROOT;