Place aligned EditField and BitmapField on PopupScreen

Hello guys '

I want to place aligned EditField and BitmapField on PopupScree. But I can't place these 2 fields.

I used HorizontalFieldManager and VerticalFieldManager of the place. It does not work.

HorizontalFieldManager hmanager = new HorizontalFieldManager();
VerticalFieldManager vmanagerRight = new VerticalFieldManager();
VerticalFieldManager vmanagerLeft = new VerticalFieldManager();

statusLabel = new LabelField();
direction = new Bitmap(15, 15);
directionBitmap = new BitmapField(direction);

vmanagerLeft.add(directionBitmap);
vmanagerRight.add(statusLabel);

hmanager.add(vmanagerLeft);
hmanager.add(vmanagerRight);

progressPopup = new PopupScreen(hmanager);

...

What solution is the best?

Tnx guys

What you see?  The fields appearing at all or are they not be presented as you wish?

Tags: BlackBerry Developers

Similar Questions

  • Snapping when you align objects and spaces

    Not sure if this is the right place to discuss this kind of thing, but it is a curious problem I wasn't able to track down a solution.

    I've got InDesign on my work PC and laptop. One of the features that I like is the ability to align objects and snap the based on the spacing or where they are on the page, etc. - that is when you move a picture, it will snap to align the objects around it with ease. For some reason, it is now disabled in EACH document in inDesign on my PC but its still going strong on my laptop. My conclusion is that I inadvertently touched a keyboard shortcut to disable this feature.

    Noobish completely in question - but how I turn it back on?

    Thank you 1 million,

    Pete

    This ended up being the right direction. The feature I need to reactivate was "Guides" (ctrl - you and I presume, cmd - u).

    Thanks for the help.

  • Question EditField and border

    Hello!

    I had a problem of design. I did something I thought I would work, but I think that I am so close to get it. I have 2 is the image I updated my EditField as boder when unfocus the image has a WHITE background and what door another color. I have a few lines in unfocus and the development of the code field method and I put the border with these images. But when I run on the Simulator, the field has a white rectangle inside. So, I added a few lines and I put a background color when the field is developed. But I got something like that.

    Unfocus:

    Focus:

    How can I erase this white part? or maybe is there something I have missed?

    I hope you help me!

    Concerning

    Hello! Thanks for your review!

    Well, I create a custom EditField and here is a part of the code:

        private int mHColor = -1;
        public void setHightlightColor(int color) {
            mHColor = color;
        } 
    
        protected void onFocus(int direction) {
            invalidate();
            setBorder(BorderFactory.createBitmapBorder(new XYEdges(4, 7, 4, 7),Bitmap.getBitmapResource("img/box.png")));
        }
    
        protected void onUnfocus() {
            invalidate();
            setBorder(BorderFactory.createBitmapBorder(new XYEdges(4, 7, 4, 7),Bitmap.getBitmapResource("img/boxu.png")));
        } 
    
       public void paint(Graphics g) {
          if (-1 != mHColor && getManager().isFocus()) {
             g.setBackgroundColor(mHColor);
             g.clear();
          }
          int prevColor = g.getColor();
          g.setColor(prevColor);
          g.clear();
          g.setGlobalAlpha(200);
          super.paint(g);
        }
    

    And in my screen, I called like this:

       _inputField.setHightlightColor(0xFFFFBD);/// FFE9AF
       _inputField.setBorder(BorderFactory.createBitmapBorder(new XYEdges(4, 7, 4, 7),Bitmap.getBitmapResource("img/boxu.png")));
    

    You see how I use a bitmapborder. I create 2 images: one with white background and one with yellow background.

    I hope you can help me!

    Kind regards.

    PS: I use 4.6.0 SDK

  • Text won't align horizontally and vertically

    Hello. I'm doing navigation buttons that consist of a text box to the inside. By default, the box is transparent, but when you rollover the text inside the box turns white and the box will turn dark gray. And of course, the substitution effect appears permanently when you are on the page corresponding to the button. Rolling works correctly, but the text should be Center (or middle) aligned vertically and horizontally in the box, and it does not work.

    I tried to use the tutorial here, that's why I used 'inline-table' and 'table-cell' in the css. I had to use 'inline-table' instead of 'table' to make the boxes stay on the same line.

    Here is a test page site: http://gchiller.com/test/

    Can someone please?

    Add this to your CSS:

    #nav p {}

    text-align: center;

    top of the margin: 20px;

    }

  • Aligned margins and paragraph space

    Hi guys,.

    Is it possible to have bottom aligned margins and a better separation/paragraph of title? Here are the samples

    (1) nice bottom aligned but too close position of paragraph margins

    http://tinyurl.com/75bkhek

    (2) section nice / point of separation but very ratings looking for substantive margins

    http://tinyurl.com/6wry7ps

    I think it is a very common thing when text is right on a grid of text... but I saw the annual report and other samples that solves the problem. How?

    See you soon,.

    We will study your second example that you have linked above. In the left column the text above the position and the position itself, all seem to be on the 12pt baseline grid, but the following text looks like he has some 'space after' added in the paragraph style, maybe 6 pt or half a line. You have made the position of space by adding a blank line (empty paragraph).

    If you want to maintain the grid reference for the body of the text, you have two options. Set snap to grid in the style for at least the first paragraph of the body after a cap or maintain the attack throughout all the paragraphs as a multiple of the spacing of the grid. Another way of looking at this, is that your headers should float in a space that is equal to a multiple of the spacing of the grid, two, three or maybe four lines. If you want half a line after the title, you have to find a way to add the other half a line so the total is an even multiple. one way to do that is to increase spacing applied to the section push it down and leave more space above. Another is to add space, and a third is to add a space after the paragraph before the title.

    The big problem is what happens when the title is at the top of a column. If you use one of the paragraph spacing options, the extra space is ignored by ID and disappears in the upper part of the column. If you add to the leading value, you must set your text field for the first options 'leader' base line or the extra space is also lost on the top, and in any scenario where the title falls in high and space is lost at the top of the column to your body text does not have to align with the grid in this column. If you set the first base to attack line, you get the desired spacing, but now there's a blank space at the top of the column that you probably don't want.

    What all this boils down to is you can't have your cake and eat it, too. To keep the body of the text on the grid, set the attribute align to grid property and accept that the gap is more important between the titles and body text when the title is a top of a column or when the title is run more of a line, OR set the first base property for your blocks of text to attack and make sure that the principal assigned to your headers is equal to a multiple of the main complete assigned in body text AND configure the time space equal to the leading value for the body of the text (and any space before is also set to a multiple full body of text leading).

    First base line set to attack and put body to snap to grid:

    First put in charge, all the text base line using this multiple head (that is to say, the principal amount is twice the attack of the body of text):

    First base line the leading value (can also be assigned to the rise), all text uses the same type of size and fine:

    In all the examples above, I added to the heading style space equal to the attack of the body of text and equal to two times the space.

  • Alignment editfields & bitmapfield using managers

    Hello

    I am the creation of screen which has 4 editfields basic and in the an of the fundamental change field I want to add a question mark image (which is a field that is focusable)

    all editfields have a limit of 64 characters, and it will not allow NEW_LINE (so NEW_NEWLINE)

    The arrangement is as follows

    basicedit1: aaa

    basicedit2: bbbb?

    basicedit3: ccccc

    basicedit4: ddddd

    I use a horizontal for the basicedit2 Manager & the question mark field.

    This Manager and other areas of the basic edition are added to the vertical field Manager

    The problem is when I enter 64 char basicedit1 (when the w & m when the tank move to the new line) moving the image to the left. How can I avoid this in basic edit2 the tank behind the image?

    How can I implement this better

    You could add a pair of VerticalFieldManagers to the HorizontalFieldManagers that make your line for a column as layout within each line.

  • EditField and checkboxfield on the same line

    public CheckFileScreen()
        {
            vfm = new VerticalFieldManager();
            left = new HorizontalFieldManager( Field.FIELD_LEFT);
            right = new HorizontalFieldManager( Field.FIELD_RIGHT);
            _Id = new EditField("Id : ", "", 6, EditField.FILTER_NUMERIC);
            _check = new CheckboxField("check", false);
                    left.add(_Id);
            right.add(_check);
            vfm.add(left);
            vfm.add(right);
            add(vfm);
            add(new SeparatorField());
        }
    

    on my above code tries to _id and _check on the same line, but the screen has been mess up

    +---------------

    | ID:

    | # check

    +----------------

    I want to create has been

    +----------------------

    | ID: # check

    +-----------------------

    could someone help me with this?

    This is the first time make app with GUI

    Gentlemen.

    slow down, please!

    Absolutely, totally useless any Manager available personalized for that! In order to organize two or more fields in a 'line', you just all of them to the same HorizontalFieldManager! The manager then places them from left to right in the order that you add them.

    That said - you have a slight problem in your EditField. EditField is "width-hungry" - it consumes the entire width, it is given, do not leave anything for the rest fields. To combat that, to deceive him into thinking he's got less space. We will give him what he needs to label 6 larger figures (s '8' or '9's, not '1') and a space for the padding. We will then have something like:

    _Id = new EditField("Id : ", "", 6, EditField.FILTER_NUMERIC) {
      protected void layout(int width, int height) {
        Font myFont = getFont();
        int myWidth = myFont.getAdvance(getLabel()) + myFont.getAdvance("8") * 6 + myFont.getAdvance(" ");
        super.layout(Math.min(myWidth, width), height);
      }
    };
    _check = new CheckboxField("check", false);
    HorizontalFieldManager hfm = new HorizontalFieldManager();
    hfm.add(_Id);
    hfm.add(_check);
    add(hfm);
    

    Enjoy!

  • Is it possible to place the table and the text online?

    Hi all

    I have a table need to align with the numbered list. Is it possible in line of the table and text on a single line. EX: 6.12 and top of the 'text' must align horizontally.

    See the screenshot of the problem.

    Currently what I do, it is to place the table in separate frame and place it online using the option of the anchor.

    Screen Shot 2016-08-30 at 1.20.22 PM.png

    Thanks in advance.

    Kasi

    We could use the options for text blocks to position the first line.
    Fixed value set to 0.

    And a table style that would govern the distance before and after a table.
    If you wish, set both values to 0 .

    We could also do a minimum in the lead with the paragraph formatting to separate paragraph following with the next table.

    Best,
    Uwe

  • Vertically-aligned graphic and title

    I'm trying to implement graphic images, with numbered titles (legends), aligned to the left of the image. I have a layout of single column with a head on one side. I wish that the graphics to go into the column and the title to go to the top of the left side, vertically aligned with the top of the chart.

    My chart title format has alignment head on one side and is in the right place. The anchor point for the frame that contains the chart is at the end of this paragraph of title. I tried different positions of anchor, but can't seem to get the image in the column, aligned vertically with the title. Does anyone do this?

    You can adjust the settings in the respective paratgs.

    For the legend of Figure paratag, set the alignment of the heads-side be "superior".

    For reinforcement anchored in the next paratag placed at the insertion point.

    • Have a paragraph between the chart title and the chassis, breaks the "keep with next" between the two, leaving the possiblitly to have the title on one page and the graphics on the next.

    The anchored frame should be in this next paratag. There should not be anything between the two.

    If I followed your needs, it looks like this:

  • Updating Firefox, my old profile said places.sqlite.corrupt and I can't get bookmarks

    Firefox crashed while and refreshed himself. He created a "old firefox data" folder on my desktop. I thought I followed the instructions correctly, I deleted the profile information in my new program firefox (appdata). and I copied pasted old data from firefox (desktop folder) into its place.
    When I restarted firefox, it has reopened all of my tabs that were open in the crash initially. So I thought everything was great. Then I noticed that my favorites are missing, and the tool bar was empty. My history file is also empty. When I looked at my profile, I found that I places.sqlite.corrupt file.
    I found a site that talks about downloading a program to fix places.sqlite, but I'm not a programmer and I don't understand how to do it. I don't want to make things worse, so I'm leaving it alone.

    It is possible that the places.sqlite has been corrupted by the accident and may not be used.
    You would have to restore a backup of the folder bookmarkbackups on the desktop.
    In this way, you can restore the bookmarks, but will lose the history (there is no backup history).

    You can check for problems with the database places.sqlite file in the Firefox profile folder.

  • 8500 - alignment failed and black print proberly dosnt

    Hello

    I have a problem with my 8500 has.

    When I run the alignment, then it has sometimes failed. The black printing ink dosnt too proberly. I tried to run clean print head and tried to run the alignment many times.

    If I don't use the printer for a while, so I can print 1-2 pages in black once again, and then the black ink stop working again.

    I checked the cables of the ink and tried other solutions to the support page, but nothing seems to work.

    Would it work if I replace the print head, or know someone at - it a fix for this?

    Best regards, Anders

    Hi @AndersGK and welcome to the Forums of HP!

    I see that you have print head problems.  I would try to help!

    It seems you have a lot of troubleshooting already covered.  It is possible, that you can start to encounter a failure of the print head.

    I recommend to remove the ink cartridges and performing a power reset the printer.  Unplug the power cord from the printer and the power outlet, then wait 60 seconds. After 60 seconds, plug back in the printer. Make sure that you connect the printer directly to a wall outlet. Make sure to bypass any surge protector or power bar.

    I would also recommend using the steps described in this document on the problems of quality Print for the HP Officejet Pro 8500 has e-all-in-one printer series.

    Good luck and please let me know the results of your troubleshooting operations. Thanks for posting on the HP Forums!

  • Black C5380 of ink does not print on the alignment Page and alignment fails only

    My printer will no print in grayscale for all documents, but I can print color photos.  I replaced the cartridges and done his own head, when I do an alignment that he says he can't and cannot align.

    Hello! Welcome to the @Karen68 forums

    I read the error message 'alignment has no' you see on your Photosmart C5380 and I wanted to answer with my suggestion for you!

    Check out this guide and to try all the steps, I hope it get through the issue of alignment:

    The error "The printer alignment can't" message on the control panel

    If troubleshooting does not help, I would finally support.

    Please contact our technical support at the 800-474-6836. If you do not live in the United States / Canada region, please click the link below to get help from your region number. http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    Happy Monday

  • Choose and place using labview and or vision acquisition

    Hello world

    I'm doing a project studying on Vision guided pick and place of a robot (abb) industrial. I would like to know the steps involved in the creation of the block.

    I locate the object, move his webcam cooordinates. Then made a pattern match, and would send the cooordinates to the microcontroller. then from microcontroller for control of robot... then the industrial robot should choose the object and place it in a predefined area...

    I would be extremely grateful if you guys can help me because I am new to LabView.

    Thank you

    Pradeep.M

    ([email protected])

    What you describe is quite complex, but here are a few tips.  The key is to establish a correlation between the coordinate system of the robot to the coordinate system of the camera.  I guess that the camera is statically located above the pick-up area?  I move the robot at each corner of the frame to its choice position vertically and note the position of the robot at these locations.  These 4 points in space will be correlated to X, coordinates of pixels in the camera image.  Basically, you need to write a sub - VI with entries being pixel X and is coordinated and coordinates output being the robot.

    Writing a test application saying the robot to get pixel location to any X, Y in the framework to test your Subvi.  If this does not work, then you need to set up a correspondence to the model.  You probably want to do a geometric pattern match.  Take a look at this example: http://zone.ni.com/devzone/cda/epd/p/id/5555

    You will need your pattern match algorithm to return both the coordinates for your robot, and the orientation of the tool needed for good pick up the object (if the pick-and-place robot tool requires to be in a specific direction).  If it's basically up to you will convert the object X, Y and rotation angle in the framework that you receive correspondence from model to any coordinate system, the robot uses.

    The placement algorithm could be simply an adjustment of orientation to the object being investment and then investment positions could be an array of coordinates of robot which you browse after each pick.

    Be sure to implement security mechanisms in your algorithms so that the robot can never go somewhere outside of a safe range of coordinates.

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/.  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.

    If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/.  Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Place of meeting and Android 5.0 Lollipop

    No idea if Android 5.0 Lollipop came instead of 7/8 pills?

    as ever, they have released a fix for the update failed on the shelves in place 7 a few months ago, I would like to know if theyl thus pushing the update 5.0, im tired of the seeds (and no, a reset recover a flash upgrade..)

    Heck, I can't even miracast to work on the thing...

Maybe you are looking for

  • Can't print labels under usps Web site

    I tried to print postage labels of that is, Google and Fire Fox. There is no 'print' button showing and I guess it should be. If I go the menu drop-down and click on print, I get a message "Unable to print this page", then, I get a message: "you did

  • My answer was edited by someone else

    Once an hour since my comment in a discussion topic has been published, I noticed that the text has been edited ⏤ someone has apparently added a note to my answer. Is it possible that someone (like the author of the thread or a community Apple Manage

  • How to disable the touchpad backlighting to the Satellite A350-10 b?

    Is it possible to turn off the backlight of the touchpad? How to do?

  • set up the network on xp

    I have problems setting up printer sharing on my Windows XP desktop.  Office XP is connected by an ethernet cable.My computer laptop windows 7 to connect via a wireless connection and I have problems with the printer share.  The printer is connected

  • Connection from gateway to gateway RV042

    We have 2 Rv042, one in my office and the other in my home... office, we have IP static and at home No... question is can I connect the two RV042?