+ else if (name == "border")
+ {
+ long borderStyle = wxNO_BORDER;
+ wxString val = property->GetValue().StringValue();
+
+ if (val == "wxSIMPLE_BORDER")
+ borderStyle = wxSIMPLE_BORDER;
+ else if (val == "wxRAISED_BORDER")
+ borderStyle = wxRAISED_BORDER;
+ else if (val == "wxSUNKEN_BORDER")
+ borderStyle = wxSUNKEN_BORDER;
+ else if (val == "wxDOUBLE_BORDER")
+ borderStyle = wxDOUBLE_BORDER;
+ else if (val == "wxSTATIC_BORDER")
+ borderStyle = wxSTATIC_BORDER;
+ else
+ borderStyle = wxNO_BORDER;
+
+ SetWindowStyle(propertyWindow, wxSIMPLE_BORDER, FALSE);
+ SetWindowStyle(propertyWindow, wxRAISED_BORDER, FALSE);
+ SetWindowStyle(propertyWindow, wxSUNKEN_BORDER, FALSE);
+ SetWindowStyle(propertyWindow, wxDOUBLE_BORDER, FALSE);
+ SetWindowStyle(propertyWindow, wxSTATIC_BORDER, FALSE);
+ SetWindowStyle(propertyWindow, wxNO_BORDER, FALSE);
+
+ SetWindowStyle(propertyWindow, borderStyle, TRUE);
+
+ wxItemResource *resource = wxResourceManager::GetCurrentResourceManager()->FindResourceForWindow(propertyWindow);
+ resource->SetStyle(propertyWindow->GetWindowStyleFlag());
+ return TRUE;
+ }