08-03-2010 08:48 AM
Hi,
Usually i have a FullScreen which draws using a graphics object and
graphics.drawBitmap(0, 0, getVisibleWidth(), getVisibleHeight(), m_bitmap, 0, 0);
Now i want to add an embedded browser, using the 5.0 OS browserField class.
I want to position this field in specific areas in the screen, and to have it a fixed size.
Until now i have shown the browserField in a new popup-screen, but this entails 2 problems for me
1 - I want the field to be of a fixed size, and each time until a page loads, the field becomes of zero height, only to be enlarged one the url is loaded. I would prefer there be a white blank fixed size screen with a loading notice. ( Is this possible? )
2- The pop-up screen immediately puts black borders around my browser field, and i would want it to be a part of my initial screen, without any visible borders.
Does anyone have any ideas? I haven't had any experience with laying out fields over bitmaps.
Thanks,
Dan
08-03-2010 09:23 PM
you can write a customer manager extends from vertical manager or other managers,and you shoud override the sublayout methord,and in the method you use setExtent(int width, int height) to fix the width and height of the manager. then you got a fixed size manager and add your browser field to the manager ,it works ok!