change the size of the view

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@471 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Matthew Wilber
2002-07-27 01:45:57 +00:00
parent a4c97c95ce
commit 5cd9d8ef83
@@ -12,14 +12,16 @@ int main()
BApplication app("application/x-vnd.obos-bmp-translator");
BMPTranslator *ptranslator = new BMPTranslator;
BView *v = NULL;
BRect r(0,0,200,100);
BRect r(0,0,225,175);
if (ptranslator->MakeConfigurationView(NULL, &v, &r)) {
BAlert *err = new BAlert("Error", "Something is wrong with the BMPTranslator!", "OK");
err->Go();
return 1;
}
// release the translator even though I never really used it anyway
ptranslator->Release();
// release the translator even though I never really used it anyway
ptranslator = NULL;
BMPWindow *w = new BMPWindow(r);
v->ResizeTo(r.Width(), r.Height());
w->AddChild(v);