Fixed sash window colour (highlight wasn't showing up); Dialog Editor fix

for space distribution


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-05-05 10:01:19 +00:00
parent 64561c3308
commit 10c16e31a6
7 changed files with 21 additions and 17 deletions

View File

@@ -1552,15 +1552,15 @@ void wxResourceManager::DistributePositions(int command)
item->Move(controlX, controlY);
int resX = resource->GetWidth();
int resY = resource->GetHeight();
int resX = controlX;
int resY = controlY;
// Also update the associated resource
// We need to convert to dialog units if this is not a dialog or panel, but
// the parent resource specifies dialog units.
if (parentResource->GetResourceStyle() & wxRESOURCE_DIALOG_UNITS)
{
wxPoint convertedPos = item->GetParent()->ConvertPixelsToDialog(wxPoint(pos.x, pos.y));
wxPoint convertedPos = item->GetParent()->ConvertPixelsToDialog(wxPoint(resX, resY));
resX = convertedPos.x;
resY = convertedPos.y;
}