Expand a field to adapt to the screen.

Is it possible to have a field to raise the maximum amount of space instead of the minimum? I have a BitmapField and that you want it to be as large as possible, but the field won't take as much space as the image needs.

Hello

Take a look at this thread

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=15944&query.ID=95...

Instead of using BasicEditField use with LabelField or BitmapField.

Let me know if it helped you or not.

Tags: BlackBerry Developers

Similar Questions

  • Mobile watch G3 using and using firefox. The fonts are not reinvest/wraping to adapt to the screen while increasing fonts.

    I use hand G3 mobile with android in browser firefox web. Fonts are reinvesting / wraping to adapt to the screen while increasing the size of the font. The same functionality was available when I am using mobile watch E3. But I think that's not mobile dependent feature. I'm missing a few settings.

    reflow on zooming option can be disabled. Try to toggle this option.

    1. In the address bar, type Subject: config and press enter. The subject: config "this might void your warranty!" warning page may appear.
    2. Click on I'll be careful, I promise!, to continue on the subject: config page.
    3. Search browser.zoom.reflowonzoom
  • I am unable to adapt both the screen saver is activated

    I am unable to adapt both the screen saver is activated, I put the link, but it acts as if it was before progrmmed?

    Also is there a way to avoid to connect every time?

    The problem with these parameters is that they overlap.  The screen saver setting is perhaps not the one place to look: you should also watch your 'screen time out", as well as waiting times"lock screen ".  In addition, it could be the energy saving sleep timer.  From the point of view of the user, they all look the same (the screen turns off), but to get the desired exact situation, you may need to check up to 4 places.

    1. Right-click on the desktop > personalize > screen saver
      Even if you do not use a screensaver, this timer value is used to lock the screen.  The value 'none' and make sure that the check box is disabled, it does not require a password.
    2. Power options > Change when turn off the display
      Also look at the "require a password on wakeup" option here
    3. Power options > change when the computer sleeps
      Also look at the "require a password on wakeup" option here
    4. Application settings > lock screen settings
  • To adapt to the screen orientation by using javascript (for playbook)

    Hi all

    I know that the subject of the screen orientation has been crossed many times already, but I've searched and searched in the webworks put on an answer and can't find it.

    My application is made for the landscape. I have 2 options. ((1) lock app in landscape which I think still can be done using webworks (but please correct me if I'm worng) or 2) to scale the app for the portrait.

    Because to my knowledge 1) cannot be done, I'll focus on 2). Has anyone seen or written a javascript/css script that checks if the user holds the tablet in landscape or portrait and adapt to the 2 on-the-fly switching of b/w? My app is made for 1024 x 600. I know it can evolve using CSS 0.6 starting to adapt to the screen, but I don't know how to check and then re - evolve afterwards with javascript.

    Any help, please and thank you.

    In fact, you can lock in landscape orientation with

    your config.Xml file. Just remove the space after "rim:" because I added it to prevent the Bulletin Board to return as , haha.

  • How to assign the field width based on the screen wdth

    I have my ownfield, I'm adding to the screen, or the Manager

    I want to give the height and the width of field based on the width of Manager screen, when I try I got errors.

    the code I used is

    Field ff;
            int j=(Display.getWidth()>360?4:3);
            int compwid=Display.getWidth()/j;
            int compht=40;
            int posx=0,posy=0;
            int no=this.getFieldCount();
    
            for(int i=0;i
    

    When I do cela in the display main () sublayout, I get the error as "the field is not a child of this Manager.

    Similarly when I add to the Manager sublayout, I get as field must call setExtent and setPostion for available.

    Where I'm going wrong?

    You can help with that.

    Concerning

    Rakesh Shankar.P

    Hi guys, I was able to get this working, pblm is that I called super.sublayout () just before the Codes I have describd in the previous post.

    Concerning

    Rakesh Shankar.P

  • The window size is not adapted to the screen

    Hi all
    I have the some problem with some windows in my netbook. When I opened the they don't fit the screen so I couldn't go all the way to the bottom buttons. I tried the sizer software and it does not solve the problem. I just get two options when right click on the top right corner of the window which is move and close. And when I try to move it I could only move left to right and down. I have an image that shows exactly how it looks like. hope you can help me with this... Thanks in advance.

    (1) right click on the desktop, choose the screen resolution

    (2) the resolution to highest value possible (or recommended when one exists).

  • How can I change my screen to normal size, it seems to be magnified so nothing big adapts to the screen?

    It seems to me have changed the size of the screen on my laptop windows 8 that nothing fits the screen, everything is much to big need to know

    How to make it normal

     In Internet explorer, you can use these shortcuts.
    Other browsers are similar.

    Zoom + (more) CTRL in
    CTRL + (Zoom out less)
    Scrolling CTRL + mouse wheel

  • Form field visibility: display on the screen, hide on Print

    I created a PDF file using Acrobat X PRO, in which I have included two buttons: "Clear form" and "print form". What I'm trying to accomplish, is that the two buttons will be visible on the screen and never when the document is printed. I have searched several sites and I know that I need to use Javascript to do this, but I don't know exactly how this feature. I'm sure it's pretty simple, but I'm not too familiar with coding using Javascript, but I have a knowledge base. Any help would be greatly appreciated. Thank you.

    -Joey

    Look here:

  • Opened in CS4 to adapt to the screen, the bridge

    Is there a way I can open a RAW file in ACR, and when I open Image in CS4, they open always fit on the screen? The default seems to be 33.33%?

    Windows XP and CS4.

    Bob

    Here's a short video that shows how the action for the re-sizing.

    http://www.layersmagazine.com/create-a-fit-to-screen-Photoshop-action.html

  • Check whether the field is displayed on the screen

    Hello

    Is the following code, the best way to see if a field is already displayed (or not display) on a screen?

    Manager manager = field.getManager();
            if (manager != null) {
                manager.replace(field, newfield);
            }
    

    Thank you!

    In this case your cheque for a Manager is fine.

  • How to open pdf to adapt to the screen

    When I opened the pdf is a minimum notice and I have to zoom in to view the page... this just started to happen. before I could open the PDF and it would be under the eyes... someone knows how to solve?

    Hi doug8490,

    Please see the following links that deal with the same issue:

    Can I set up Adobe Reader to open them directly to display full page? (Acrobat Reader)

    No way to force a PDF to open in mode "screen adjustment"?

    XI player won't open FULL SCREEN!

    Let us know the results.

    Thank you

    Shivam

  • need to get the guest operating system to adapt to the screen of the monitor...

    one of my guest OS is a windows 2003 server and doesn't have the resolution to fit my screen with resolution of 1680 x 1050... How could I get thar resolution on my windows vm client... by the way, I'm under vmware server 2.0 on Linux (OpenSUSE)

    Thank you

    -JV

    blog: pctechtips.org

    miatech wrote:

    I've looked everywhere and I don't see the "AutoFit window" any where... remember I'm on Linux.

    Maybe... I use Workstation, Server and ESX together. I mix therefore upward while not directly on the system.

    In my humble VIEW VMWare Server is designed to run servers, so do not expect the same comfort as a workstation.

    I also decided to add these lines to the svga.maxWidth file .vmx = '1680 '.

    svga.maxHeight = "1050", but it did not help I have colleagues, I have to change the registry then...

    As described in this post that I posted above.

  • Detect when the field gets the visibility on the screen

    Hi gurus

    I extended a BitmapField that when it is displayed on the screen is running a Thread internally in order to upload an image from a web server and then display it on the BitmapField. During the download of the Thread, it shows a dummy Bitmap.

    I am now the list 15 images on a screen in a VerticalFieldManager, and as soon as the application starts, 15 thread starts to download each image.

    When I run the application on the Simulator, with WiFi, all the images always get downloaded without problem all the time but when I run it on the device, sometimes the images are downloaded and sometimes some of them are not downloaded due to a "General socket error" (it is said the message of the Exception).

    This behavior is kind of random, I wonder that it is a restriction on the number of requests that a device can perform the carrier (by BIS) at the same time or something like that. Sometimes 15 images are always downloaded without problem.

    Now, the important thing, to circumvent the problem, what I'm trying to do is:

    Even if I add 15 images on the screen, only 3 images are visible at the same time (on the Curve 8520 in which I am testing now) so I'll try to find a way that only these 3 images run the download thread and when the user makes a scrolling to the bottom of the screen, the fields earning "visibility" on the screen start to run in their own thread too but didn't find a way to detect if a field of on the screen, and not only in the manager gains visibility of

    I try with:

    protected void onVisibilityChange(boolean visible)
    

    But as soon as the Manager is loaded on the screen, all fields run this even if events are now actually visible on the screen (they are in the lower part of the Manager)

    Is it possible to know when a field get visible only on the actual device screen and not on the virtual screen?

    Thank you!

    This might not work on all devices, but the first invocation of painting of the field is a good indicator.

    In my experience, the interface user of BlackBerry is very economical - everything that is not on the screen isn't painted. well, something that used to be on the screen and got a scroll being on could still be there in an internal buffer, so his painting could not called at all when it scrolls- but the first seems to be a pretty reliable indication.

  • Dislplays Tower of gray of the screen.

    Hello. My problem is that my screen for all my tour programs gray from either, I have expanded the program beyond a specific point (for example, expand my solitaire game) or if a notice appears on the screen.

    What is happening is that the screen, somehow, crumples upward in the bands of gray on the left side of my screen. It's not until I make the smaller program or the message disappears the issue corrects itself.

    He never use to do before.  Is there a way to fix this?

    If the information below doesn't, you can have trouible with your graphics hardware; that may need to be replaced.

    Restore point:

    http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    If the above does not fix it:

    Go to the Web site of the manufacturer of your laptop computer-graphics/computer card > drivers and downloads Section > key in your model number > look for the latest Vista drivers > download/install them.

    Then:

    http://Windows.Microsoft.com/en-AU/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.

    See you soon.

    Mick Murphy - Microsoft partner

  • BitmapField consumes all clicks on the screen

    Hello

    I hope someone can help me with this problem: I have a screen that has only BitmapField is on. When you click on this 'something' BitmapField should be here which works very well.

    The problem is that even if I click elsewhere on the screen the 'click' fires.

    This is the main code on the screen:

    VerticalFieldManager view = new VerticalFieldManager();
    
    Bitmap bm = Bitmap.getBitmapResource("image.jpg"); // size 60x60
    MyBitmapField bmf = new MyBitmapField(bm, BitmapField.FOCUSABLE);
    bmf.setChangeListener(this);
    view.add(bmf);
    add(view);
    

    And that the implementation of the 'MyBitmapField ':

    public class MyBitmapField extends BitmapField
    {
      public MyBitmapField(Bitmap bitmap)
      {
        super(bitmap);
      }
    
      public MyBitmapField(Bitmap bitmap, long style)
      {
        super(bitmap, style);
      }
    
      protected boolean navigationClick(int status, int time)
      {
        FieldChangeListener listener = getChangeListener();
        if (null != listener)
        {
          Dialog.alert("Clicked");
          listener.fieldChanged(this, 1);
          return true;
        }
    
        return super.navigationClick(status, time);
      }
    
      protected boolean touchEvent(TouchEvent message)
      {
        /*
        if (TouchEvent.CLICK == message.getEvent())
        {
          int index = this.getManager().getFieldAtLocation(message.getX(1), message.getY(1));
          if (index == -1)
              return super.touchEvent(message);
          Field field = this.getManager().getField(index);
          if (field != this)
            return super.touchEvent(message);
    
          FieldChangeListener listener = getChangeListener();
          if (null != listener)
            listener.fieldChanged(this, 1);
        }*/
        return super.touchEvent(message);
    }
    
    }
    

    In the touchEvent method is a point that I also tried - but that didn't work either.

    The fieldChanged Manager is as usual:

      public void fieldChanged(Field field, int arg)
      {
        if (field instanceof MyBitmapField)
        {
          MyBitmapField bmf = (MyBitmapField) field;
          Dialog.alert("Clicked: " + Integer.toString(arg));
        }
      }
    

    I'm actually on the 9550 Simulator.

    Can someone please help me and tell me what I need to do to avoid that the click event is fired even if I click outside the BitmapField (I also put a border, just to make it visible, it is not expanded).

    Thank you very much

    That's exactly how BlackBerry works, even if it is IMHO pretty buggy: the key CLICK event is translated into navigationClick() in the field that currently has the focus. The problem lies in the fact that EVENT moves the focus to the field under him that if there is an active field where you press the screen, otherwise the focus remains where it is.

    To overcome this obstacle, program your touchEvent similar to this:

    protected boolean touchEvent(TouchEvent message) {
      if (TouchEvent.CLICK == message.getEvent()) {
        int x = message.getX(1);
        int y = message.getY(1);
        XYRect myExtent;
        getExtent(myExtent);
        myExtent.translate(0, 0); // getX, getY values are relative to this field's upper-left corner
        if (!myExtent.contains(x, y)) {
          return true;
        }
      }
      return super.touchEvent(message);
    }
    

    You can allow a 'near miss' avoid the frustration of users - extend the myExtent in any quantity you want of each side.

Maybe you are looking for