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:
@@ -12,14 +12,16 @@ int main()
|
|||||||
BApplication app("application/x-vnd.obos-bmp-translator");
|
BApplication app("application/x-vnd.obos-bmp-translator");
|
||||||
BMPTranslator *ptranslator = new BMPTranslator;
|
BMPTranslator *ptranslator = new BMPTranslator;
|
||||||
BView *v = NULL;
|
BView *v = NULL;
|
||||||
BRect r(0,0,200,100);
|
BRect r(0,0,225,175);
|
||||||
if (ptranslator->MakeConfigurationView(NULL, &v, &r)) {
|
if (ptranslator->MakeConfigurationView(NULL, &v, &r)) {
|
||||||
BAlert *err = new BAlert("Error", "Something is wrong with the BMPTranslator!", "OK");
|
BAlert *err = new BAlert("Error", "Something is wrong with the BMPTranslator!", "OK");
|
||||||
err->Go();
|
err->Go();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
// release the translator even though I never really used it anyway
|
||||||
ptranslator->Release();
|
ptranslator->Release();
|
||||||
// release the translator even though I never really used it anyway
|
ptranslator = NULL;
|
||||||
|
|
||||||
BMPWindow *w = new BMPWindow(r);
|
BMPWindow *w = new BMPWindow(r);
|
||||||
v->ResizeTo(r.Width(), r.Height());
|
v->ResizeTo(r.Width(), r.Height());
|
||||||
w->AddChild(v);
|
w->AddChild(v);
|
||||||
|
|||||||
Reference in New Issue
Block a user