Made EVT_SLIDER event happen always; some doc and wxProperty updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-21 17:38:28 +00:00
parent 015ee8444a
commit f3a6507198
10 changed files with 111 additions and 96 deletions

View File

@@ -941,7 +941,8 @@ wxPropertyValidator *wxPropertyView::FindPropertyValidator(wxProperty *property)
IMPLEMENT_DYNAMIC_CLASS(wxPropertySheet, wxObject)
wxPropertySheet::wxPropertySheet(void):m_properties(wxKEY_STRING)
wxPropertySheet::wxPropertySheet(wxString name)
:m_properties(wxKEY_STRING),m_name(name)
{
}
@@ -979,7 +980,30 @@ wxProperty *wxPropertySheet::GetProperty(wxString name)
else
return (wxProperty *)node->Data();
}
bool wxPropertySheet::SetProperty(const wxString name, wxPropertyValue value)
{
wxProperty* prop = GetProperty(name);
if(prop){
prop->SetValue(value);
return true;
}else{
return false;
}
}
void wxPropertySheet::RemoveProperty(wxString name)
{
wxNode *node = m_properties.Find(name);
if(node)
{
wxProperty *prop = (wxProperty *)node->Data();
delete prop;
m_properties.DeleteNode(node);
}
}
bool wxPropertySheet::HasProperty(wxString name)
{
return (GetProperty(name)?true:false);
}
// Clear all properties
void wxPropertySheet::Clear(void)
{