problem with the custom field. Please help!

Hi, I'm basiceditfield using code below, to draw the border and background in 4.5 jde. I hv tried a lot of things to set his height.but his does not work for all value.even I put height 100, it does not display the bottom line of the field

Basic BasicEditField = new BasicEditField("","",15,1) {}

g.setColor (14315734);
g.setColor (Color.PERU);
g.fillRoundRect (0,0,30,30,0,0);
              
g.setColor (Color.BLACK);
g.setFont (Helper.getFont(6,"",false));
g.drawText ("", 3, 3);
g.setColor (Color.MAGENTA);
g.drawRoundRect (20,30, 0, 0, 0, 0);

Super.Paint (g);
}
};

Mr.Peter,

I tried already and surfing on the internet, my problem is something different and so I started a new thread, because I couldn't find the solution. Tried several codes that are on the forum, but with the same result, that's y I posted my code here.

Tags: BlackBerry Developers

Similar Questions

  • Problem with the movie control, please help!

    Hello
    I am a beginner in Flash and I need help with action script. I'm building a website on a SWF file and I can't navigate. I will guive you a simple example just to expose the problem.

    Let's say I have a SWF with two buttons. (Here is a picture to illustrate the situation)
    Now, if I press button1, I put the action: "liberation gotoAndPlay (2)" to play "anim1" until the framework 6. Then on setting 6, I want him to jump to frame 10 and play "anim2" then stop.

    And if I press button2, I want to take this path: "liberation gotoAndPlay (2)" to play "anim1" again until the framework 6. But now, instead of jumping to the frame 10 as does the button1, I want him to jump to frame 20 and playing "anim3" and then stops.

    I hope that my explanations are clear enough. Basically I want the two buttons to play anim1 but at the end of anim1, each take a different path. Hope someone can help me on this one.

    Thank you very much in advance!

    Try:

  • Problem with password reset link - "there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later. »

    Hello, account Windows Live from my wife was hacked a week ago and has been used to send many spam emails. As a result, his account has been disabled or closed (we are not sure). Whenever she asks to reset a password and a link sent to a different e-mail account, when she clicked it gets this message 'there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later. "She is tried repeatedly, but get the same message. Someone knows how to go beyond that, so she can recover her account? Thank you.

    Hello BBB34,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • How can I add an ID related when I get this message (there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later.) ?

    How can I add an ID related when I get this message (there is a temporary problem with the service. Please try again. If you continue to receive this message, try again later.) ?

    Hello

    an answer your other thread

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-networking/why-do-i-keep-getting-your-Windows-Live-ID-cant-be/268ff99c-E459-E011-8dfc-68b599b31bf5?page=1&TM=1301396733390#footer

  • problem of deletion of a topic with the conditional formatting - please help

    I have a problem with the removal of the header of a repetitive frame in another extensible framework

    My frame HAND led the report and contains many Extensible frameworks. When a frame has no data, I want the frame empty to be deleted so I try to use a conditional formatting - (* or should I do something else?) *.

    one of my simplest subframes as shown in the DATA MODEL is:

    AERIAL PHOTO
    AP_MDD_KEY the key that connects all of the database

    G_AP_NO
    AP_NO is the number of aerial photography
    AP_MDD_KEY is the key field

    My method:
    -I click the summary in the DATA MODEL field and then click on the AERIAL photo
    -This creates a column of synthesis named AP_COUNT
    -update the summary I put:
    Count FUNCTION
    SOURCE Ap_no
    Reset to report

    -J' I then select the M_G_AP_NO_GRPFR and open the property palette
    -Select conditional formatting, and then select NEW
    -with the Exception of the Format of page I select AP_COUNT is equal O and check hide the object
    -J' I click on APPLY and then OK

    -J' I go to the live preview generator and it takes about 30 sec to answer. But when I create and browse through the PDF report, where the group is empty (no data), the headers are still there. Nothing has changed.

    So, can someone please tell me what I'm doing wrong? I have about 15 more of the repeat frames it that I must apply this to.

    Any help is appreciated

    Glenn

    Hello

    what I would try first:
    Will the group framework, to which you added the conditional formatting and open format-relaxation-code in PL/SQL Editor. Somewhere at the end will be something like ' RETURN: AP_COUNT = 0;
    To see the value during execution simply put a

    SRW.MESSAGE(-1, :AP_COUNT);
    

    in the front of the line «back» When you run the generator preview again, it would popup a window showing the real value of the AP_COUNT (just to be safe.

    Second to check:
    Is your group really enclosing framework the header? (Just to be safe, check navigator)

    I hope this helps.

  • problem in the scroll bar, please help...

    I have a problem with the scroll bar, why my horizontal scroll bar did not work on my labelfield?

    It works when I change the labelfield in a buttonfield.

    is there a different code for labelfield scrollbar?

    Please help me...

    This is my simple code...

    You have to edit it like this...

    Source language:

    a = new LabelField ("tessssst1");

    change:

    a = new LabelField ("tessssst1", FOCUSABLE);

    in the same way for all the fields in the label...

  • lately and I don't know why I see a pop up of a problem with the script. can some1 help me?

    There is a pop up of a problem with the script. He asked end and contuniue the script. I didn't have this problem before. Please help me this is getting really annoying. He asks a lot

    I changed a theme and almost never have a problem again...

  • Problem with adding a background - please help!

    Hi all

    I try to create my first BB app and run into a few problems with the addition of a background image on my screen.  I try to activate the background on my request without using the class BackgroundFactory I need this works for older BB models.

    I use EncodedImage so that I can to scale the context in which any size of BB.  I am aware of the loss of the aspect ratio, this isn't a problem for me.

    Here is my code:

    The background image.
    backgroundImage = EncodedImage.getEncodedImageResource("img/image.png");
           
    int currentWidthFixed32;
    int currentHeightFixed32;
    int requiredWidthFixed32;
    int requiredHeightFixed32;
    int scaleXFixed32;
    int scaleYFixed32;
           
    Get the dimensions of the current image in fixed-point number
    currentWidthFixed32 = Fixed32.toFP (backgroundImage.getWidth ());
    currentHeightFixed32 = Fixed32.toFP (backgroundImage.getHeight ());
           
    Get the dimensions of the image necessary in fixed-point number
    requiredWidthFixed32 = Fixed32.toFP (Display.getWidth ());
    requiredHeightFixed32 = Fixed32.toFP (Display.getHeight ());
           
    Calculate the scale factor
    scaleXFixed32 = Fixed32.div (currentWidthFixed32, requiredWidthFixed32);
    scaleYFixed32 = Fixed32.div (currentHeightFixed32, requiredHeightFixed32);
           
    Resize the image
    backgroundImage = backgroundImage.scaleImage32 (scaleXFixed32, scaleYFixed32);
    Imagearriereplan = backgroundImage.getBitmap ();

    Display display = new MainScreen();

    VerticalFieldManager verticalFieldManager = new VerticalFieldManager)
    VerticalFieldManager.USE_ALL_WIDTH |
    VerticalFieldManager.USE_ALL_HEIGHT |
    VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR |
    VerticalFieldManager.NO_VERTICAL_SCROLLBAR |
    VerticalFieldManager.NO_HORIZONTAL_SCROLL |
    VerticalFieldManager.NO_VERTICAL_SCROLL) {}

    Override the paint method to draw the background image.
    {} public void paint (Graphics graphics)
    Draw the background image, then paint.
    graphics.drawBitmap (0, 0, backgroundBitmap.getWidth (), backgroundBitmap.getHeight (), Imagearriereplan, 0, 0);
    Super.Paint (Graphics);
    }
    };
    Add the handler to the screen.
    mainScreen.add (verticalFieldManager);
           
    VerticalFieldManager vfm2 = new VerticalFieldManager)
    VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR |
    VerticalFieldManager.VERTICAL_SCROLLBAR |
    VerticalFieldManager.NO_HORIZONTAL_SCROLL |
    VerticalFieldManager.VERTICAL_SCROLL);
           
    verticalFieldManager.add (vfm2);
           
    The LabelField will be visible through the transparent image.
    LabelField labelField is new LabelField ("is a label");.
    ButtonField buttonField = new ButtonField ("asdf");

    Add the fields to the Manager.
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);
    labelField = new LabelField ("this is a label");
    vfm2. Add (labelField);

    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf2");
    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf3");
    vfm2. Add (buttonField);
    buttonField = new ButtonField ("asdf4");
    vfm2. Add (buttonField);
    labelField = new LabelField ("this is a label");
           
    Tap on the screen.
    pushScreen (mainScreen);

    I want the "image.png" to act as a 'real' background, however, when I run the above code, the image.png appears in the form of the background, but when I scroll down, the background scrolls as well, and I see a white space.  I want to have "image.png" would you like the background permanently and add another manager who would be scrolling if scrolling is required.

    What I'm doing wrong here?  Why I can't see the vertical scroll bar and why the background is not scrollable?

    Any help is appreciated!

    See you soon!

    Make sure that you set the FullScreen.DEFAULT_MENU property - this will give you the default system menu items.

    You add your menu items by substituting makeMenu().

  • problem with the vertical field Manager

    Hello

    My application has a screen. On this, I add a Senior Manager vertical field. I add new labelfields dynamically to this vertical field Manager.  When I give the text in the constuctor of the etiquette field, each of them is the fine display. But when I tried to draw the text to the painting, it does not appear.

    Here is my code...

    vfm = new VerticalFieldManager(VERTICAL_SCROLL | FOCUSABLE);
            for (int i = 0; i < 4; i++) {
                index = i;
                LabelField labelField = new LabelField() {
                    protected void paint(Graphics graphics) {
                        // TODO Auto-generated method stub
    //                  super.paint(graphics);
                        graphics.setColor(Color.BLACK);
                        graphics.drawText(displayString[index], 0, 0);
                    }
                };
                vfm.add(labelField);
            }
            add(vfm);
    

    Please help me find a solution.

    First of all, stop saying that it is VerticalFieldManager who has done something bad for you. It has nothing to do with it.

    You use the index in your LabelField painting method. Use paint value is the current value of the index at the time of the painting. Painting happens way after you have created all your LabelFields, when the index stopped to change and has the last value of the loop variable (in your case, it's 3).

    This, as well as LabelFields width zero (that you seem to have supported) so are the problems of your original code. Store the value of i in your LabelField somehow if you insist on using the table values. If only check out you them once and do not change them, consider creating your LabelFields with the text from this displayString table.

    Even better: as you do not use the LabelField paint, why not create a custom field received a text and paint your smileys and all? Of course, you have to implement available as well, but it's useful even when your smileys will take a different width than the corresponding symbols.

    To summarize: your current approach is bad. Take a step back, work on the design, and then implement.

  • Huge problem with the graphics card. Help me pls!

    Unfortunately my pc is not guaranteed, so my last hope is here on the forum.

    I have Dell Inspiron 580

    Ok.So the problem was that I found myself not being able to open My Nvidia Control Panel to verify customization as one of my games was so bad. That's why I found that my disappeared from Nvidia and Intel HD Core i3 graphics took place.

    And yes my pc used to run with Nvidia I have proof: P

    I must say that for me (as a heavy gamer) was a great kick as Intel uses all my CPU and my games become so difficult to play.

    I have tried everything that I could to restore the return of Nvidia (except one: to reinstall windows) but not one chance :(

    Reinstalling the drivers did not help actually I don't even know the type of driver that I need because that Nvidia is not found.

    Any advice? It will go to normal if I reinstall windows?

    Thanks guys and sorry for my bad English :D

    Hi Georgina26,

    You use the graphics card onboard because your monitor is connected to the video port badly. Turn off the system, unplug the video cable and connect it to the video card into the PCIe slot.

    If you are not familiar with the snap of a monitor on the back of your computer, please let me know and I will give a link to some photos.

  • Problems with the NVARCHAR2 fields

    I use ROracle to query a database with a field of type NVARCHAR2. When I access the database directly or through RJDBC, I have no problem with that. However, if I do something like

    res = dbSendQuery(conn, qry)
    dbColumnInfo(res)
    
    
    

    He told me that the 'type' is VARCHAR2. So when I use fetch (res), it's not back up the data correctly (it gives? instead). Is there anyway so that it can detect the NVARCHAR fields, properly or even manually it say when a field must be NVARCHAR?

    Edit: Try explicitly casting in my query (e.g. qry = "select cast (textfield you mvarchar2 (100)) from myTable ') and which did not help.

    Edit2: It turns out that this problem persists even with fields containing unicode VARCHAR2.

    Post edited by: 88dc10cb-b8b0-44c7-acff-5d6dc55a69dc

    I had to exportNLS_LANG=AMERICAN_AMERICA.AL32UTF8 and then load the package

    Sys.setenv(NLS_LANG = 'AMERICAN_AMERICA. AL32UTF8")

    library(ROracle)

  • OPA to interview for Rightnow - problem with the mapped fields

    Hi Experts

    We strive to integrate an interview of takeover bid for an anonymous user in Rightnow.

    At the end of the interview, a contact and an incident of child will be created in Rightnow.

    The integration works as expected.

    At the end of the interview, we would like to display the number of incidental reference to the user.

    However, the incident reference number of Rightnow field is not available in the list of fields that are mapped to the incident entity fields in the OPA.

    Another field of incident as a subject, category etc. are displayed and available to me all laid out, but not the reference number.

    While using this interview for the customer portal user Rightnow, mapping setting is different, and in this case the number of incidents of reference is allowed to be mapped.

    This similar to example modules design student benefits.

    But we need this feature for the anonymous user also.

    Help, please.

    Thank you

    Swati

    Hi Swati,

    Load after submit only is currently supported for the global object - contact in your case.

    If when the Incident is created, you can some how get RightNow to copy a custom field to the Contact reference number (for example lastCreatedRefNum or similar), then you could load from there in touch and then display it to the user.

    Davin.

  • Problem with the form field.

    well don't know what to do with it. First of all, I removed all the contacts on the site of BC. So, right now, there is no customer in the CRM.

    But when I go to create a web form under the TITLE instead of having simply Mr., Mrs., etc... I have a complete list of email addresses. I can clean manually if I paste the code of the form on the page but don't want to do that every time. Any ideas as to where this source is shooting?

    webform sample.jpg

    Go to the CRM, go to a client or to go make one.

    Click on the square next to the title field - this allows you to create/edit and delete entries.

    In terms of how it happened - when you have imported you imported the names in the wrong column and was in the title column.

  • Problem with rollover remote images, please help.

    Hello

    I had a few very useful yeserday on how to implement the remote bearings for an image gallery. Everything works fine except when you have the cursor between the thumbnails at the bottom, the 1st image that I placed in the large photo spot appears. Any thoughts on how to solve this problem? This page so that you can look at the code. http://www.test.detarconstruction.com/homes/Howard/Howard.html

    Thank you so much in advance for your help

    Amy Sue

    You added a "Mouse out" action each of vignettes that always replaces the large photo with the boot image "outside.jpg" whenever you exit a thumbnail.

    (In source view, you can see):

    onmouseout = "changeImages ('big_photo', 'outside.jpg'); Returns true.

    for each of the thumbnails).

    If you simply delete all the actions 'Exit mouse' hit the big picture that belongs to the last thumbnail remains visible even if you leave the tile until you hit another.

    Maybe it's the effect you're looking for.

  • Problem with my wireless card please help me!

    Hi all, I recently bought an Inspiron 3537 provided with ubuntu windows. I have install Windows 8.1 Pro with media center 64 bit for compatibility with my other program and I find almost all the drivers except the wireless.

    System model number: Inspiron 3537

    Operating system: Windows 8.1 Pro with media center 64 bit

    Card wireless driver

    PCI\VEN_168C & DEV_0036 & SUBSYS_020C1028 & REV_01

    PCI\VEN_168C & DEV_0036 & SUBSYS_020C1028

    PCI\VEN_168C & DEV_0036 & CC_028000

    PCI\VEN_168C & DEV_0036 & CC_0280

    I scan the computer with the wireless device and a tool seem to be a Qualcomm Atheros QCA9565 / AR9565 wireless network adapter

    Can anyone help me find these drivers? Thank you

    Dell Wireless 1705

    Hardware ID: PCI\VEN_168C & DEV_0036 PCI\VEN_168C & DEV_0036 & SUBSYS_020C1028 & REV_01 PCI\VEN_168C & DEV_0036 & SUBSYS_020C1028 PCI\VEN_168C & DEV_0036 & CC_028000 PCI\VEN_168C & DEV_0036 & CC_0280 provider: Driver Atheros AR956x 7 × 86, 7 × 64:http://ftp.us.dell.com/FOLDER02013099M/1/Network_Driver_DVTW2_WN_10.0.0.276_A00.EXE 10.0.0.276 Driver 8.1 × 86, 8.1 × 64: http://ftp.us.dell.com/FOLDER02013131M/1/Network_Driver_HP06Y_WN_10.0.0.276_A00.EXE 10.0.0.276

    Unofficial site of the Czech Atheros driver

Maybe you are looking for