problem with setting of the child fields

Hi all

I use this code for jde4.7. I'll have the field two custom bitmap and I stand ready on the other plain bitmap. in order to be simple, I just now targeting code to display the two bitmap using custom Manager, but it shows nothing. It's displaying empty me. Here is my custom handler code...

HorizontalFieldManager hfm = new HorizontalFieldManager()
{
    public void add(Field field)
    {
        this.add(_item1);//_item1 & _item2 is bustom bitmap field
        this.add(_item2);
    }

    protected void sublayout(int maxWidth, int maxHeight)
    {
        maxWidth =  Display.getWidth();
        maxHeight = Display.getHeight();

        System.out.println("In sublayout");
        System.out.println("Max Width "+maxWidth);//360
        System.out.println("Max Height "+maxHeight);//480

        int count = getFieldCount();//2
        Field field;
        System.out.println("Count "+count);
        for (int i = 0; i < count; i++)
        {
        field = getField(i);                        layoutChild(field,field.getWidth(),field.getHeight());
        setPositionChild(field, 50, 50);                    }
    }
};
this.add(hfm);

He shows me the vacuum.

but when I simply add

Add (_item1);

Add (_item2);

He shows me the image.

also, I want to add more to a bimap to specific position.

As I mentioned above, the ways to use a picture as a background and putting fields on top of the background image are discussed in a number of other Threads.  The 'trick' is that the background image is not added as a BitmapField, it is painted directly on the screen, usually using paintBackground.  But the search for other Threads dealing with this - if you can't think in terms of research, try 'background image'.

Tags: BlackBerry Developers

Similar Questions

  • SONY NEX 5 - problem with setting of the shutter speed shutter priority mode

    Hello

    I strictly followed the instructions in the manual, but when I'm in the mode S (shutter priority mode), by the rotation of the wheel there is no change in the shutter speed and I don't know why.

    On the screen, above the wheel icon is written Tv.

    Please, advice me how to solve the problem. In that I'm wrong.

    The same situation that I have and with the Apperture mode.

    Thank you!

    HI ILesishki,

    I apologize for the inconvenience that was done to you. Let me see if I can help. I suggest the initialization of the device to its default settings to solve the problem. Just click on the Menu button, then choose Setup. Go to main settings and look for reset default. After the reset, turn the camera and see if the problem is still there.

    If so, I suggest to send the camera in for service. I recommend that you visit our Sony Global Web site for more information on contacting the Sony's Support centre in your area to http://www.sony.net/SonyInfo/Support/.

    If my post answered your question, please mark it as "accept as a Solution. Thanks_Mitch

  • Problems with expansion of the comment fields

    ES2 version 9.0.0.2


    Can someone help me with this PDF? Comments section does not extend beyond 1 page. I have everything configured to allow page breaks, but the content still tends to spill over into the other rows.

    Look at the bottom of this PDF file for an example of the problem.

    http://www.mediafire.com/?j2q8892dw75z385

    Here is a photo in case you can download:

    http://I54.Tinypic.com/dobgpl.PNG

    PS: How can I download a PDF file on this forum?

    Post edited by: georgeWashinton1 - added photo

    When I saw this duplication of text at the level of the page break I thought quickly to this article.

    Maybe this will help also.

    http://blogs.Adobe.com/dmcmahon/2011/10/10/LC-Forms-ES-text-overlapping-on-page-break-USIN g-nested-under-Forms.

  • Problem with class extend the field

    Hi all!

    Now, I have a problem with the class extend the field:

    public class ContentItem extends field

    {

    have a bitmap and text

    }
    Public MustInherit class ContentField extend the field

    {

    protected abstract void paint (graphics graphics);

    protected abstract void drawFocus (Graphics graphics);

    }

    SerializableAttribute public class, contented extends ContentField

    {

    have a lot of field ContentItem

    and painting ContentItem field depending on the paint and drawFocus

    }

    I'm having a problem when I want to focus to ContentItem. How to focus to ContentItem class content. Please help me.

    Thank you, it has been resolved. I just override the navigationMovement method and treat it in the child field

  • Problem with setting window of acquisition on 1429 PCIe capture card

    Hi all

    Recently, I am using the Basler A504k camera with card PCIe-1429 of goodwill for the acquisition of images at high speed. I found problems with setting the acquisition window in the capture card using Measurement & Automation Explorer.

    1. for example, if the size of the original image is 1280 * 500, if I put the window of acquisition with left 0 and width 1280, everything is OK, but if I set the width to 1279, there will be an error (error 0xBFF6002C FIFO overflow caused the acquisition of stop), if I set the width multiple of 8, there was no error. Could someone tell me why in this case, is it because the packet data transfer for acquisition card rule?

    2. the window of acquisition is set according to the camera image, right? If the camera has also a function of area of interest, the acquisition window setting is always the image coming from the camera.

    Attachment is my setting a MAX software.

    Thank you very much

    Hi xiaochunfly,

    My bet is 1280 pixels image size is aligned on 32 bytes, and the material may actually go from line to line without breaking the transfers. With the width of the non-aligned countries, he needs to start a new transfer on each line, and this has an additional load on the PCIe bus and the system memory bus. Currently infrastructure IMAQ trying to adjust to any size of border/size possible image regardless of efficiency, it take the material and changes in recent processor Intel chipsets have reduced effectiveness with system memory bus performs under these conditions. So, you can get much better performance if you use line widths. You can also get the latest IMAQ driver because there was changes in the latest few transfer more effective under some of these conditions.

    AOI is usually under the framegrabber. If you reduce the AOI who sends the camera, it seems often identical to the framegrabber as if you just had a camera with a smaller sensor. Thus, your AOI in IMAQ must be set to the size of that the camera is sending, unless for some reason you want to capture less of what the camera is able to set up on its own.

    Eric

  • I have problems with setting up my Gmail in my room light 6 mL, where do you think I could get help for this?

    I have problems with setting up my Gmail in my room light 6 mL, where do you think I could get help for this?

    Hi kikikilala,

    Please explain the problem you are oriented connect Gmail with Lightroom

    Try reauthorizing your Gmail account once in Lightroom and see if that helps.

    Refer to Validation of Gmail failure

    Kind regards

    Assani

  • Unique problem with selction on the table (Query Page)

    Unique problem with selction on the table (Query Page)

    I have a VO data Bulletin Board, with a transitional attribute for selction unique column.
    My requirement is that I need to identify the line that was selected in the table.

    I associated with fireAction singleSelection column, such that whenever the user selects the line
    I'm looking for that VO using some rowIterator.
    But when running the loop of the transient VO that is mapped to the singleSelection variable is the show as "n" / NUll
    for all the lines...

    So how do you identify the selected line in singleSelection to a table.

    -Sasi

    In the property inspector of the element for which you've put firePartialAction, you can find a property named "parameters". That mention primary key as your setting.

    You can get the arameter using pageContext.getparameter ();

    -Anand

  • Problem with script on the master page

    So I have my build script of the unique number bit that I have posted here before... it's on the Initialize event of the field.


    If (this.rawValue == null) {}
    var d = new Date();
    this.rawValue = parseInt(d / 1000);
    }
    else {}
    this.rawValue = rawValue;
    }

    Which works very well if on the body of the form, but if I put it on the master page it re - initializes (and changes the number) whenever a subform gets shown/hidden. No idea how to stop it from doing this? I tried it on a few other events without a bit of luck.

    I came across another problem with this script, a field called 'Date' was interfering with the script - throw an error "the Date is not a constructor. Is - this normal (function/field collision)?

    Hi Jono,

    I had problems with script within the Master pages before. What I've done in the past, it is a textfield hidden in the main pages of script with overall binding (which featured many here today); then same name textfield in the master page picks it up.

    Good luck

    N.

    Post edited by: Niall O'Donovan

  • problem with Safari and the opening of sites

    problem with Safari and the opening of sites

    Please describe the problem in more detail?

    Try to reset the settings of Safari:

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select the Preferences/Privacy tab

    4. click on remove all data from the Web site

    5. close Safari.

    Remove cache Safari files:

    1. click on finder

    2. look for the menu GO to top

    3. click on GO and hold down the option key. This will show a user library folder.

    4. click library and find the Caches folder

    5. in the folder caches com.apple.Safari Ouvrezledossier

    6. move the Cache.db file Trash.

    This should solve the problem. If it does not help, try to disable the Safari extensions

    1. open Safari

    2. click on the Safari menu at the top (to the right of the Apple logo)

    3. Select Preferences

    4. find the Extensions tab

    5 disable all extensions of

    6. relaunch Safari

  • Having a problem with loading in the combustion chamber

    Hello

    I'm having a small problem I could use help with. I'm not really sure what's going on, but I'm having a problem with one of the pages of my site does not when you try to view the page in Firefox. But if I loaded this page in Safari or Chrome, it loads very well.

    Here is the URL of the page to take a look:
    Specific link removed by moderator display ~ J99 < sitename >.com/top-10/top...services/

    No idea why this might be happening or how to fix it? I don't know if it's just my computer, or if others have the same problem.

    Thanks in advance,

    Mike

    There's two of us have confirmed the page will load so I deleted the link to display as it could be construed as advertising.

    P.S. Note only forum content in the resolved threads is now indexed by search engines.

    (Last updated: February 14, 2015 08:45 CEST)

    Solved the locked thread now ~ J99

  • Using an IP191 monitor, have random horizontal stripes on the screen - have no problems with other browsers. also no problem with FF on the other PCs on the family

    Using an IP191 monitor, have random horizontal stripes on the screen - have no problems with other browsers. also no problem with FF on the other PCs on the family.

    These "streaks" seem to be the domain of the high frequency analysis; they can be eliminated by scrolling upwards or downwards.

    Hello, maybe it's a problem with hardware acceleration - try updating your graphic driver, or in case this does not solve the problem, or there is no new version available at the time, disable hardware acceleration in the firefox menu

    > options > advanced > General.

  • I have an older version of Firefox 3.6.6 I think I'm having a problem with one of the websites that I sign. Is it possible to upgrade to the latest version

    I have an older version of Firefox 3.6.6 I think I'm having a problem with one of the websites that I sign. Is it possible to upgrade to the latest version. Without losing all my favorites and the saved passwords?

    Yes, see this article:

    After:

  • Problem with Vista hit the Satellite X 200 - 20 s

    Sometimes during typing on vista, it will stutter and freeze. The time is very short. Is this a problem with vista or the laptop. The T7300 Core 2 Duo 2 ghz processor.

    Hello

    I have a Satellite Pro S200 and the same problem was with my camera. It s is not a hardware problem, it s more a driver related issue No. So, the best thing you can do is update your bios and keep your drivers up-to-date. Just check the download Drivers Toshiba site and make sure you have the latest drivers installed.

    I had resolved my stuttering (core2duo 2.33 Ghz, 2 GB RAM) by updating all drivers...

    That's all

    Good bye

  • Want to Phoenix 860-010: problem with fonts and the noisy fan

    I have a new machine, just a day old, and I'm having a problem with fonts.  The file Explorer, Edge and other similar programs seem to go from a very readable font that lights up in half a second or less whenever I move down on the page in these applications.  Police that results is much more difficult for me to read because of the lightness that results. I have not met this problem before.  Frankly, I don't know the source of the problem.  Is it hardware (video card) or (Windows 10) operating system software?

    Hello @PhotoGene47,

    Thanks for the quick response!

    Have you tried to see the document that I mentioned in my previous post?  If you prefer to have the Board repaired, you can consider contacting the HP support by phone for additional options.  Please use the following http://www.hp.com/contacthp and create a folder for your question and contact HP. If you do not live in the United States / Canada, please click on the link below to get contact information for your region.
    http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    I hope this helps.

    Please let me know if this information helps you solve the problem by marking this message as 'accept as Solution' , this will help others easily find the information they seek.  In addition, by clicking on the Thumbs up below is a great way to say thank you!

    Kind regards!

  • a problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory

    When looking at the module a LabVIEW VI called for TestStand, I get the following message:

    A problem with one of the files in the TestStand\AdapterSupport\LabVIEW directory.  Please reinstall or repair.

    I made the mistake of cleaning C: in my computer.  Clean the C:\National Instruments downloads

    Why would someone put bits of applications or modules, etc. in such a directory?

    I'm not too crazy about restoring 11FR in this folder.  It's just crazy!

    If anyone has encountered this before?  No "easy"? outside re - install TS...

    Side note: I do not touch anything in the \Program files. National Instruments\TestStand\AdapterSupport\LabVIEW

    What version of LabVIEW and TestStand do you use?

    In 2012, TestStand, this directory is mapped to:

    C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 2012\AdapterSupport\LabVIEW

    Have you tried mass compiling the screws in this folder?

    I had to create a new 'TestStand - default values XX.llb"file, where XX is the last version of LabVIEW you use, but I have not seen this message before.

    Good luck

    PH

Maybe you are looking for

  • Toshiba L9400U - disorders Youtube app

    The Youtube app when you browse through my favorite places is not working properly. The display is erratic and 'jumps' autour. When Youtube is accessible via the menu internet button is not the case. A thread has suggested to uninstall and reinstall

  • How to add the system desktop clock

    original title: clock instalation after uninstal by mistake I clicked Uninstall and the clock display has disappeared. Let me know how to reappear in the clock display?

  • vurial studio 2005 sp1 installation fails with the error of digital signature verification

    Information system Visual studio 2005 vere 8.0.5 Microsoft .net framework 2.0.50727 sp2 Micorsort viaual Web developer 2005 Microsoft windows xp professional 5.1.26 build 2600 sp3 WindowsInstaller3_1

  • Dead Peer Detection and email?

    Hello Is it possible to get some kind of notification (such as email) when DPD detects a dead peer and failover to the next? In this case, EasyVPN is used as a server and a client on two ASA 5505. 5505 has a failover server backup 5505. Thanks i.a.

  • YouCam not answer it PLEASE HELP

    Hello. I have the laptop G62-407DX with the HP Webcam 101 Windows 7 64 bit.  It came with YouCam. The program worked very well when I came to the computer. Then all of a sudden, it appears that I need an update to use it. I click ok to make the updat