Doc mods, sash window bug

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-01-29 17:22:47 +00:00
parent 2e850e6846
commit 82540ef232
9 changed files with 43 additions and 74 deletions

View File

@@ -1829,12 +1829,16 @@ bool wxScrollBarPropertyInfo::SetProperty(wxString& name, wxProperty *property)
scrollBar->SetWindowStyleFlag(windowStyle);
// If the window style has changed, we swap the width and height parameters.
int w, h;
scrollBar->GetSize(&w, &h);
// int w, h;
// scrollBar->GetSize(&w, &h);
wxItemResource *item = wxResourceManager::GetCurrentResourceManager()->FindResourceForWindow(scrollBar);
if ( item ) {
item->SetSize(item->GetX(), item->GetY(), item->GetHeight(), item->GetWidth());
item->SetStyle(windowStyle);
} /* IF */
scrollBar = (wxScrollBar *)wxResourceManager::GetCurrentResourceManager()->RecreateWindowFromResource(scrollBar, this);
scrollBar->SetSize(-1, -1, h, w);
return TRUE;
}
else if (name == "pageSize")