Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Regular Contributor
dan12345
Posts: 64
Registered: ‎02-03-2010
My Carrier: Orange

Adding a fixed size browser field

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 

 

 

 

 

Please use plain text.
New Developer
caohongtai
Posts: 3
Registered: ‎07-20-2010

Re: Adding a fixed size browser field

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!

Please use plain text.