BrowserField adjustment on the screen

Hi guys,.

In my application, I need set the width and height of the web content i.e browser should display with specific width and height (as in android, there is an setInitialScale() like that option) is possible to set the width and height for browserfield in 5.0 or is it possible to extend my browserfield... Please help me...

Thanks in advance,

PAPI M

Hello

Place your browser inside a handler field and the size of your manager. The following example shows a field of browser half the height and width of the screen. You can also use the BrowserFieldConfig.INITIAL_SCALE to set the scale of the content in the field.

class MyFieldManager extends VerticalFieldManager
{
        
int width;
int height;
        
MyFieldManager (int w, int h)
{
Super(Manager.VERTICAL_SCROLL |) Manager.HORIZONTAL_SCROLL);
width = o;
height = h;
}
        
' public void sublayout (int w, int h)
{
Super.sublayout (w, h);
setExtent (width, height);
}
}

....

BrowserFieldConfig config = new BrowserFieldConfig();
config.setProperty (BrowserFieldConfig.ALLOW_CS_XHR, Boolean.TRUE);
config.setProperty (BrowserFieldConfig.INITIAL_SCALE, new Float (0.5));
MyFieldManager m = new MyFieldManager(Display.getWidth()/2,Display.getHeight()/2);
Add (m);
BrowserField _browserField = new BrowserField (config);
_browserField.addListener (new InnerBrowserListener());
m.Add (_browserField);

I hope this helps.

Mark

Tags: BlackBerry Developers

Similar Questions

  • How automatic adjustment of the screen resolution?

    Howdy,

    CS5 ACE 2.0

    Sorry if this is discussed elsewhere. I couldn't find an adequate response. Feel free to point me in his direction.

    I wish that my flash file on "auto size" itself to any resolution of the screen. Is it done through the .fla/AS or edit HTML? As a gift, SharePoint is pulling up the html file.

    Thanks for any help!

    It depends on what you want to achieve.  Why don't you try all scaleModes with a few things on stage and see what you like the most.

  • Forcing BrowserFields to fill the screen; JRE BB 6.0.0

    Hello

    I asked this in the forums of Java before and am advice ask here, because you mustve solved this issue already. Well, said the title actually all this, how I achieve this without using fixed sizes in the content that I'm loading into the BrowserField?

    Thanks in advance.

    Here's a solution:

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/tips-quirks-and-solutions/m-p/47...

  • Optimization of the screen

    Recently, I reloaded my operating system. Now, the screen is smaller with about 3 inches of unused space on the left and right. The texext is much smaller, but I have the zoom to 100%. If I Zoom in to a % higher, the screen is off-center and everything is not centered. Is it possible to adjust to the screen (with the exception of the toolbar) and have proportionally correct evertything? I have seacrched everywhere and cand find a way to adapt it, very frustrating.

    Thank you

    Recently, I reloaded my operating system. Now, the screen is smaller with about 3 inches of unused space on the left and right. The texext is much smaller, but I have the zoom to 100%. If I Zoom in to a % higher, the screen is off-center and everything is not centered. Is it possible to adjust to the screen (with the exception of the toolbar) and have proportionally correct evertything? I have seacrched everywhere and cand find a way to adapt it, very frustrating.

    Thank you

    Hey Matthelm

    you need to reinstall the latest graphics drivers for your machine after doing a reinstall

    go to your computer or graphics card manufacturer site and are looking for the driver download section

    Search your computer or graphics card model number based on what you have and download and install the latest graphics drivers for vista

    THEN try to make the screen of solution of problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-screen-resolution

    Change the screen resolution

    Screen resolution refers to the clarity of the text and images on your screen. At higher resolutions, items appear sharper. They appear also smaller, so more items adapted to the screen. At lower resolutions, fewer items adapted to the screen, but they are larger and easier to see. At very low resolutions, however, images may have serrated edges.

    For example, 640 × 480 is a lower screen resolution, and 1600 × 1200 is higher. CRT monitors generally display a resolution of 800 × 600 or 1024 × 768. LCD monitors can better support the higher resolutions. If you can increase your screen resolution depends on the size and capability of your monitor and the type of video card you have.

    Text and images are sharper and smaller at high screen resolutions
    Text is larger and easier to read at low screen resolutions, but images are rasterized and number of items adapted to the screen
    1. Open display settings by clicking on the button start , by clicking on the Control Panel, click appearance and personalization, clickingPersonalization, and clickingDisplay parameters.

    2. Under resolution, move the slider to the desired resolution, then clickApply.

    Notes

    • When you change the screen resolution, it affects all users who log on the computer.

    • When you set your monitor to a screen resolution that it will not support, the screen will go black for a few seconds while the monitor returns to the original resolution

    Walter, the time zone traveller

  • Cannot adjust the brightness of the screen after Windows 8.1 update

    Hello

    After you have installed Windows 8.1, I can't adjust the brightness of the screen more.  I checked and updated all the drivers and nothing helped.  There used to be a brightness slider in the control panel in the power settings.  It's over now.  I've looked everywhere for a solution, but I can't seem to find it.  Any help would be greatly appreciated.

    Here are the specs of my computer:

    HP Pavilion 23-F213W Smart Touch

    Windows 8.1

    Thank you

    Many All in One computers are able to use HP MyDisplay in this http://www.portrait.com/dtune/hpc/enu/index.htmlplace.  There is a list of maps videos supported on this page and should help to restore the video controls setting.

  • HP 15 laptop: how to adjust the brightness of the screen in windows 10

    Since I've upgraded to windows 10, I have not be able to adjust the brightness of my laptop computer screen because I m not getting is not the option to set the brightness of the screen, or the screen brightness keys Up and Down to work. Also I updated the graphics card and the condotion is always the same... no change!

    Please can someone give me the solution to get rid of this problem

    I fixed that on my envy 15 j151sa-

    Settings > display > Advanced display settings > view the adapter properties

    Then properties > driver tab > Update Driver button.

    Voila!

  • Not ' on' button pressed, then press on + or - keys to adjust the brightness of the screen on HP10BII +?

    Not ' on' button pressed, then press on + or - keys to adjust the brightness of the screen on HP10BII +?

    Just got a new unit, and one of the first things after how to turn it on, in the getting started manual, it's that if we push the button 'On' and then hit the + or - less buttons, it adjusts the brightness of the screen. On my 10BII + does nothing... so I wonder if I have a defective new out of the box. So far, all the rest, seems to work.

    Thanks in advance for everyone would be can confirm it should work.

    I can confirm that the 10BII + adjusting the contrast has very little effect.

    When you look at the screen at a low angle, the number "off" and the lights can be seen to slightly increase & decrease the contrast.

    For normal use, the contrast setting has no useful effect.

    .

  • Impossible to add an external monitor or adjust the brightness of the screen: Pavilion dv7-4031TX (Windows 7)

    Hello

    I recently replaced both hard drives of HDD2K12, which meant I had to re-enstall Windows 7. Since that time, I have no options more in using an external monitor or even the brightness of the screen. The computer does not recognize the monitor when I Plug and all my drivers are up to date.

    Can you make suggestions that could help to solve these two problems?

    Kind regards

    Peter

    Thanks to find the links but I could not find the drivers I need for a Pavilion dv7-4031TX.

    However I finally managed to fix the problem. Let me summarize what has been my problem.

    (1) I could not adjust the brightness of the screen by using the function keys f2 and f3.

    (2) I couldn't find the brightness slider if it was generally... i.e. (control Panel\Hardware and Options of Sound\Power)

    (3) my laptop would not recognize an external monitor.

    How I solved the problem:

    1 > pass.

    http://h10025.www1.HP.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ob-95107-1 & CC = in the & DLC = in & LC = on & os = 4063 & Product = 4253423 & sw_lang =

    and go to the graphics driver and download the graphics driver and follow the directions. At the end of the installation you will be asked to restart the computer.

    0nce you have restarted your computer, you should be able to adjust the brightness of the screen using the fn keys or the brightness slider in the window 'power Option '.

    2 > Activting 2nd monitor

    Click on Device Manager... At start-> right click on 'Computer' and click 'properties '. Click on "Device Manager". Now click on "monitors".

    Now connect the exernal monitor to your laptop while watching where the monitor icon appears under "monitors". It should appear as 'Generic PNP monitor'.

    Now, right-click on it and select "update driver software... "then search automatically for updated drivers. Install the new drivers. You should see the generic 'PNP monitor' name change to another name.

    3 > restart your computer. You should find that after doing all this, you should be back to normal.

    Concerning

    Peter

  • Tecra A2 - view the FN keys to adjust brightness of the screen don't work

    Hello everyone,

    I've just set up my old laptop TECRA A2 with a newer version of Windows XP (including SP3).
    Everything works fine. The only problem is that I can't access my FN keys to increase or decrease the brightness of the screen.

    I installed all the drivers and I recognized that the problem is a not good installed saver, although I downloaded the 'new' Power Saver for the TECRA A2.

    After installation it still appears the message; "You have no access rights to access energy savings." Now, it's strange that I have logged in as administrator of the A2.

    As I'm still struggeling with this problem I ask really help and support.
    Everything else works fine and well, it's just this question that I am not able to adjust the brightness of the display.

    Any help would be much appreciated.
    Thank you very much.

    Best regards
    JO

    Hello

    You need to install the common Module first.
    This module is an essential component of Windows systems.
    He will perform the other original programming from TOSHIBA to work properly.

    Then, you must install that many energy-saving he managed the brightness of the display.

    Welcome them

  • Satellite A300 - 21 c - impossible to adjust the brightness of the screen

    Hello

    I am not able to adjust the brightness of my screen on my Satellite A300 - 21 c - control panel-> the menu options of power does not give me the opportunity to do, and my Fn keys do not work either (can't adjust the brightness).

    The operating system is Win. XP Pro - SP2

    Any help would be greatly appreciated. Thank you!

    Hello

    You can adjust the brightness of the screen using Toshiba Power Saver? With this tool, I can set the brightness of the screen for Macintosh (AC adapter) and normal (battery). I like it a lot because I can also put more options and you can download it on the Toshiba site:
    http://EU.computers.Toshiba-Europe.com-online decision-making supported Downloads & => Download drivers

    For the FN keys on your laptop, you need the tools Toshiba you can find on the site of Toshiba, too.

    Welcome them

  • How to adjust the brightness of the screen on Satellite Pro A40

    Hello everyone
    Im am an old aged pensioner and I have just started with a needle of the second Pro A40.

    The problem I have is the screen is very bright and I would come down the brightness, can someone help me please.

    Thank you Ken

    Hello

    It's very simple.
    Computers laptop Toshiba supports a FN functions.

    If you want to adjust the brightness to a lower or higher level press simply FN + F6 or FN + F7 and the brightness of the screen will change ;)

    Check :D

  • NB100 - how to adjust the brightness of the screen?

    Hi all.

    You just bought a NB100 - overall very very happy with it. Well built, good screen and very compact, etc.

    You have some questions? The brightness of the screen is controlled by the Fn + F9/F10. I love that she's set on ' to Midway ' or less - in part to preserve the battery - but also because I find max brightness is actually TOO bright for me! But the reboot of the machine always seems to start up. Is there a way around this? There may be a firmware update (my machine seems to run version 1.90 which I believe is the most recent)?

    I noticed other referring Fn + F8 discussions as a way to select Bluetooth/WiFi etc.? Mine seems to just control the setting of the fan and processor - fan speed "gray" setting gives clocked at 1.6 ghz and fan lights - while Fn + F8 activates / deactivates an icon fan 'white' - where the processor strangling up to 800/900 ish and the slows / stops (?) fan. [by the way I noticed some videos become "jerky" If you choose the lower setting]

    I'm not 100% sure what Fn key + "pipe" (to the left of the formula 1)? The Fn + F1 turns on without wireless/wifi I know - but the key of "pipe" seems to be a symbol of Wlan (or is it the key to use for Bluetooth or GPS or other)? Sorry to sound so ignorant - but the user guide does not in this detail. I'm pretty sure that the machine, I have bought - that was one handed to new/refurbished Toshiba NB100 - model PLL10E - did not all BT/GPS etc - just the basic wifi which F1 comes on and goes off.

    Last comment - and others have said - the main peaks are very difficult to see in the dark! The 'gray' color was definitely a design error! But I can live with that - either a usb light? or a few letters of stickon (white)?

    Greetings to all.

    Hi, I think the best way to adjust the brightness is in the options of the properties of the energy available in the system tray icon. I don't know about the activation of bt and wlan, it seems that bt and WiFi devices are on the same circuit power, so not adjustable. Nb100 is a good inexspansive machine :)

  • Re: Satellite L855 and Windows 8 - can't adjust the screen brightness

    Hello world!

    I installed Windows 8 on my L855 Satellite and it is running pretty well except that I can not adjust the screen brightness. I have updated all drivers for win 8, but it does not solve the problem.

    Hope someone can help me! Thank you!!

    Can you do this using the settings in some diet plan?

  • Cannot adjust the brightness of the screen and the sleep will not work Satellite P750/P755

    On my P750/P755 Satellite I am unable to adjust the brightness of the screen.
    I can move the scale but nothing is happening on the screen.

    Also in the last two days not possible in mode "sleep" as it did before, even though I haven't changed anything.

    What did you do with your computer laptop last days?
    On this virtual path, it is not possible to say what the problem is here.
    You have installed updates? I mean all this can happen without reason?

    Have you tried to roll back the OS to an earlier time to check the functionality?
    And Yes, do you use the original pre-installed OS that you got with your laptop?

  • 100 s-11IBY computer laptop (ideapad) - cannot adjust the brightness of the screen - windows 10

    Hello my f11 and f12 keys is no longer adjust my brightness. The gauge up and down, but does not change the brightness. I tried to update the graphics card in Device Manager, but he says that it is up-to-date. Same thing with 'Generic PNP Monitor' said that it is up-to-date. I wiped the computer clean and 'reset' and reinstalled windows and it still does not allow me to adjust the brightness of the screen

    I'm not incredibly intuitive with computers, but I followed the instructions as much as I could find during my research online with nothing doesn't.

    Initially, the problem occurred when I used out of ignorance a program to install the drivers it says have been exceeded. After that, my audio stop working and my keyboard stop working entirely. After resetting the computer and windows resettled, the only question that remains is the brightness of the screen not being able to be adjusted.

    This drives me crazy, can anyone help me? I would be very happy! and please let me know if you need more information regarding my laptop. Thank you!!

    I thought about it. My drivers intel had to be installed since I reinstalled windows. I used the utility of intel and updated driver to update the graphics card update

Maybe you are looking for