added support disabled tag for toolbar elements in XRC

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-02-08 13:20:18 +00:00
parent e786a78b1c
commit 114807c0b2
3 changed files with 5 additions and 0 deletions

View File

@ -76,6 +76,7 @@ All (GUI):
- Added SetSheetStyle to wxPropertySheetDialog and allowed it to
behave like a Mac OS X settings dialog.
- wxDC::BeginDrawing() and wxDC::EndDrawing() deprecated.
- Added <disabled> XRC tag for wxToolBar elements
wxMSW:

View File

@ -457,6 +457,7 @@ appear within wxToolBar node. Their attributes are as follows:
bitmap2 Bitmap wxNullBitmap
toggle Boolean 0
radio Boolean 0
disabled Boolean 0
label I18nString ""
tooltip I18nString ""
longhelp I18nString ""

View File

@ -76,6 +76,9 @@ wxObject *wxToolBarXmlHandler::DoCreateResource()
kind,
GetText(wxT("tooltip")),
GetText(wxT("longhelp")));
if ( GetBool(wxT("disabled")) )
m_toolbar->EnableTool(GetID(), false);
}
return m_toolbar; // must return non-NULL
}