How to upgrade the height of a field after painting?

Hello world!

Here's my question: I implement my own domain with the following components:

A text which may be multi-line

A second text which may be multi-line

An image with a fixed height (80px)

When the getPreferredHeight() substitution, I don't know the future height of my area (which depends on the multiline settings). So I would update the height of my field after the painting process, while it takes only the necessary height.

How is it possible to do?

Thank you in advance.

OK, I did so using a prepareLayout() method in the constructor as computs the width and height of the next field.

Tags: BlackBerry Developers

Similar Questions

  • How to upgrade the IOM user profile fields after the reconciliation of target user AD

    Hello

    I have a problem of set-aside. When I'm changing the values of the attributes of the user in Active Directory and then I run Active Directory target user Recon, AD in IOM account attributes are updated only but I would like to update the attributes in the IOM user profile too. Please, how can I do?

    Thank you.

    Milan

    You can create a personalized card which is your AD attributes flow into the user profile and add it as a response to the task 'receipt of update of reconciliation. "

    Use the UserManager api to update the user's profile.

  • How to change the height in table of the field of Bitmaps

    Dear developers BB,

    I work with a table of the field (3 x 3) whose I am filled with bitmap images.

    I loaded all 9 images successfully, but I don't know how to resize the height of the lines if the pictures would be good.

    Any help would be greatly appreciated.

    Code snippet:

    In the main routine:

    Field [] [] tableContent = new field [3] [3];

    tableContent [0] [0] = new BitmapField (TopLeft);

    ...

    tableContent [2] [2] = new BitmapField (BotRight);

    int [] width = {40, 40, 40};

    paddings of int [] = {20,20,20};

    Screen.Add (new TableListField (tableContent, widths, paddings));

    pushScreen (screen);

    outside the main routine...

    private final static Bitmap TopLeft = Bitmap.getBitmapResource ("topleft.jpg");

    ...

    private final static Bitmap BotRight = Bitmap.getBitmapResource ("botright.jpg");

    class TableListField extends ListField

    public TableListField ([] [], int [] columnWidths field content,
    int [] horizontalPaddings)
    {
    numRows = contents.length int;

    Create a line for each line.
    _rows = new TableRowManager [numRows];
    for (int curRow = 0;  curRow< numrows; ="" currow++)="">
    _rows [curRow] = new TableRowManager (happy [curRow]);
    }

    _columnWidths = columnWidths;
    _horizontalPaddings = horizontalPaddings;
    setSize (numRows);
    setCallback (RENDERER);
    }

    I imagine that your RENDERING engine takes three images for each line and displays those all the row using a drawBitmap (...) for each?

    In any case, the height of the row in the ListField is controlled by the ListField.setRowHeight () method.  You probably want to replace this:

    Screen.Add (new TableListField (tableContent, widths, paddings));

    with

    TabList TableListField = new TableListField (tableContent, widths, paddings);

    tabList.setRowHeight (TopLeft.getHeight () + 1);

    Screen.Add (tabList);

    I hope this helps.

  • How to set the height width for an Image field in a web App?

    I have a webApp to save the image of user with description, title. But when I display all items pictures are great, I want to know how to set the height and width for images?

    Hello

    To do this properly, you need to resize the image. Prefably before you put it in British Colombia. While you can to scale the image in CSS, you don't want to do. Why? Because the images are still very large and probably not optimized properly for the web.

    This means that the page with these images will take a long time to load for people, and people will not be happy on the display of your site.

    You must use a software such as photoshop, if you or iphoto on a mac for example for editing, crop and size of the images before uploading. If you do everything you can use free web based tools such as this one:
    http://Pixlr.com/editor/

    You can also do in British Colombia itself in the file manager. If you click on the image you can see options to resize. The downside to this is's done it by pure mathematics. He doesn't know what is in the picture and the results can make the image etc. shrivelled.

  • How to increase the height of a text element.

    How to increase the height of an element of text field

    See what {message identifier: = 10399675}

  • Can someone tell me how to upgrade the operating system on the MacPro?

    I have a MacPro1.1 which works fine, but now I can't use LightroomCC on that because the OS is no longer supported. Can someone tell me how to upgrade the operating system on the MacPro?

    Your Mac Pro 2006 supports only as high as Lion unless you use a hack.

    If you want Lion then order a code to download here:

    http://store.Apple.com/us/product/D6106Z/A/OS-x-lion

    and then use the code in the Mac App Store.

    If you need higher that the Lion then Google for the hack

  • I did a reset on my iPad 2 and now it has an error with iTunes saying that it requires a newer version of iTunes. How to upgrade the iPad I have tunes version?

    I did a reset on my iPad 2 and now it has an error message when I connect to my computer to access the backup. bed the error message, this iPad cannot be used because it requires a newer version of iTunes. How to upgrade the version of the ipad?

    Take a look at the article, download the latest version of iTunes - Apple Support

  • How to upgrade the proxy settings (.pac file is modified) without having to restart Firefox?

    How to upgrade the proxy settings without restarting Firefox?
    I have a .pac with a proxy configuration file.
    When I likely this .pac, I like that Firefox update settings in order to study the new .pac contents.

    You can do it with the Prefbar extension and Reload PAC button.

    https://addons.mozilla.org/en-US/firefox/addon/67148/ - PrefBar
    http://PrefBar.mozdev.org/buttons.html#reloadpac

  • Satellite U300 - how to upgrade the BIOS on a Linux system?

    Attempt to update the BIOS of my U300-153, which is described as an operating system independent on the download page, I find that the upgrade file is provided in
    http://Support1.toshiba-tro.de/Tedd-files2/0/BIOS-20090304140640.zip
    does not include the files to create a bootable CD, as described in the instructions to the
    IOS http://eu.Computers.Toshiba-Europe.com/innovation/FAQ.jsp?z=234&service=eu&from=faq_selection&CFID=B & FID = TRO0000000b07
    where Option 2 step 2 lists the files that are in the zip, and they are required to make a bootable cd. The files listed are not in the zip.

    It forces me to use Windows. My Windows is broken and I can't fix it, because Windows repairs destroy data (clearly indicated on the packaging of recovery CD) and installations of Linux. My Linux works very well, and I don't want the windows more.

    So how can I upgrade the BIOS? Either:
    1. use a true independent bundle of BONES (ie the promised approach of bootable CD). I can't find such a thing here.
    2 reinstall Windows, which trashes the laptop.

    Any suggestions?

    Sincerely,
    Aleksander K

    > How to upgrade the BIOS on a Linux system?
    Is not possible since the BIOS on Toshiba page is a victory-based BIOS version and if you want to update the BIOS then you need to install the Windows operating system and then you can run the exe file

    Welcome them

  • Satellite 2800-600 - how to upgrade the Bios/Firmware?

    How can I upgrade the Bios and firmware on my 2800-600? I want to install a new Combodrive. Which drives are supported? Where can I find the drivers and firmware etc... Please let me know. Thank you.

    Another point of view - I bought MS Windows XP Pro and haven´t you have a PC to install it on. Can I install this OS on my Satellite? Will it work? Where can I find the drivers for touchpoint etc etc... Normally, the Toshiba works with Windows ME and I can not use ITunes on ME... if XP would be great - what do you think?

    Hello Jürgen

    In my opinion, if you install the operating system on the unit you you use the recovery CD provided because it has been tested and it works without any problem. But if you want to install another system on your laptop, you can use the original Microsoft OS and all the necessary drivers, you can find the Toshiba site.

    http://EU.computers.Toshiba-Europe.com--> support & downloads

    The update of the BIOS and the important information (i.e. how to upgrade the BIOS) you will find also on the Knowledge Base Web site

    http://support.toshiba-tro.de/KB0/TSB4A00SD000BR01.htm

    Good bye

  • Equium A210-1AS: how to upgrade the graphics card from 128 MB to 256 MB

    Hello

    can someone tell me how to upgrade the graphics card 128 MB to 256 MB on the Satellite A210-1as... thx

    Hello

    Update graphics card is not possible.
    The GPU chip is soldered on the Board and it of not possible to remove the sleeve.

    Good bye

  • How to upgrade the driver for my video card?

    How to upgrade the driver for my video card?

    Most often when a device does not work, it's because the driver has been corrupted.

    Try reinstalling your.

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly? SignedIn = 1

    http://captaindbg.com/how-to-update-drivers-on-Windows-7/

  • How to upgrade the audio, video and game controllers on Windows XP Home Edition?

    Original title: SoundMAX Integrated Digital Audio

    How to upgrade the audio, video and game controllers on Windows XP Home Edition?

    I need SoundMAX Integrated Digital Audio

    Hello

    Why you trying to update the audio, video and game controllers?

    The following steps may be helpful:

    1. open the Device Manager.

    2. Locate the audio, video and game controllers and expand it.

    3 click the sound card, and then click Update driver.

    For more information: http://support.microsoft.com/kb/283658

  • How to upgrade the graphics card on G71 - 345 CL

    Hello

    How to upgrade the graphics card on G71 - 345 CL. The graphics card is expandable. If so, what are the options for upgrades.

    Hello

    Unfortunately, your Intel GMA is integrated and is not an evolutionary element.

    Best regards

    DP - K

  • How to upgrade the windows photo gallery

    How to upgrade the windows photo gallery

    Hi deezden1,

    Do you want to update Windows Windows Live Photo Gallery Photo Gallery?

    If you want to install Windows Live Photo Gallery, you can download it from this link.

    Windows Live Photo Gallery 2011

    In addition, also see this link: information about the Windows Live update photo gallery

    Note: This article describes an update for Windows Live Photo Gallery that is available on Microsoft Update. This update will be offered to customers who have a 2008 version of Windows Live Photo Gallery.

    Hope the helps of information. Please post back and we do know.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • Remove PC Health Monitor - Win8 stuck on uninstall manually

    I removed PC Health Monitor (including files and registry) such as requested by windows 8. However, the installation tells me he's always there. I can't work out why or find something on the net to reslove this problem.

  • Re: Satellite A300 - AHCI mode activate without reinstalling Win XP

    1. extract [http://www.mediafire.com/file/qjidwo20rnt/Toshiba A300 Windows XP 32 bit ICH9M.zip]1 - Copy the file * iaStor.sys* in the \Windows\System32\Drivers\2. run * ich9m.reg*3-restart end enter * BIOS * and switches to * AHCI *-mode4 use the dow

  • Satellite L500-247 - mouse USB not detected

    Hello I have a Satellite L500-247, Windows 7. Long ago, I tried to use a USB mouse and it worked (plug-and-play) without problem. Yesterday, I tried to do the same thing and I tried 3 USB mouse, but no one works with me. I don't even get the window t

  • prompt user with write to measure file VI

    Hello I have a Labview VI who is writing data to a file, currently the file name (path) is written in the section "Filename" of writing on a file measure VI.Is it possible that a user can be prompetd for a file name? As in,. time each time I run the

  • Refusal of application because of brand image problem

    Hello my application was (after five weeks of testing!) refused because of brand image problem. They said that the name of the application share on Google + is bad but share using Google + is OK. What is the difference? And technically speaking sugge