A field of a field of centering

I have a layer of background field that draws the image background and above it a field that draws bitmaps. The code so far is:

backgroundBitmap = Bitmap.getBitmapResource("background.png");
VerticalFieldManager backgroundLayerField = new VerticalFieldManager(USE_ALL_HEIGHT |     USE_ALL_WIDTH) {
            public void paint(Graphics g) {
                 g.drawBitmap(0, 0, Graphics.getScreenWidth(), Graphics.getScreenHeight(),
                                                                                     backgroundBitmap, 0, 0);
                 super.paint(g);
            }
};

and

BitmapDraw firstPicture = new DrawPictureClass ("",Field.FOCUSABLE,"picture.png");
        backgroundLayerField.add(firstPicture);
        add(backgroundLayerField);

My question is how do I Center the firstPicture of photo in the background field and then later secondPicture, thirdPicture... and so on, so that they all appear in the Center. Thanks in advance for any help.

Hey, thanks for the reply it helped me to understand. The DrawPictureClass I think that extended on the ground so I think (I don't know about you, I'm new on this) that it was my "BitmapField" in a way. The solution was to Add Field.Focusable | Field.FIELD_HCENTER. Once again, thank you for the help!

Tags: BlackBerry Developers

Similar Questions

  • Dynamic text centered in the text field

    Hello

    I have a text field with centered text, but when I want to replace this text with another, it is automatically left-aligned

    my code:

    sym.getComposition () .getStage ().getSymbol("Navigation").$("Txt1").html ("EVENT");

    is it possible to add alignment information?

    Thank you

    Hello

    Yes. Here's a case:

    sym.getComposition () .getStage ().getSymbol("Navigation").$("Txt1_»).css ("text-align","center") .html ("EVENT");

  • VirtualKeyboard and fields

    The Storm, should the virtual keyboard automatically appears when a text entry field is centered?  Should the virtual keyboard will disappear if any other field is concentrated?

    I have a screen with a BasicEditField and an ObjectChoiceField.  If the BasicEditField is the first field on the screen, the virtual keyboard gets displayed when the screen is pushed on the stack.  If I concentrate the ObjectChoiceField, the virtual keyboard remains on the screen.

    If the ObjectChoiceField is the first, the virtual keyboard does not appear when the screen is pressed.  If I concentrate the BasicEditField, the virtual keyboard does not appear.  I choose show keyboard on the menu to see it.

    Should not the virtual keyboard automatically appears based on the ground?  Otherwise, what is the good work around?  Should I really decide if each of my fields need a keyboard and then show and hide in onFocus?

    It's on a Storm 9530-4.7.0.148.

    Thank you.

    The virtual keyboard will be displayed automatically.  I was able to reproduce it and handed the issue to our development team.  Thanks for reporting this!

    To work around the problem, you can manually display the virtual keyboard.

  • How do I Center a text entry field can be single or multi-line?

    I have created a form in Adobe Acrobat Pro XI and have almost everything I like.  One of my latest problems trying to get a text in a field of centered text.  The entrance is sometimes a single line and multi-line sometimes.  If I put in place for multi-line entries are centered, then the single line looks like offshore... and vice versa.  Is it possible to have the centered text automatically in the text field single or multi-line?

    Unfortunately, there is no way to set up a field so that the text is guaranteed to be centered vertically in both cases. If you set up so that the rich text formatting is enabled, it is possible for a user centered vertically, but this isn't something you can preconfigure so that it remains in effect when the field is cleaned. For a user to do, with the emphasis placed on the ground that they would have to display the toolbar properties (Ctrl + E), click on the "more..." "> paragraph > alignment > intermediate text [button]

  • Manual table view - Vertical Align Textarea top and text fields

    I have a manual tabular presentation with insert, update, delete.

    The form has a check box, text fields followed by a textarea and followed by 2 other text fields.
    The text box has 4 lines x 25 characters.
    The checkbox and textfield are centered vertically in their cells.

    I want that all fields must be aligned at the top, in order to align the upper edge all fields. I don't want the check box and text fields to centered.

    I tried setting the 'atrtibutes factor' of the text fields to

    style = "" vertical-align: top; ""

    but it did not work.

    Please help.

    I put the application on the APEX. ORACLE.COM

    Workspace: RGWORK
    Username: TESTER
    Password; Temp123
    Application: OCA debugging (19173)

    Run the 46 Affiliations Page


    Robert
    http://apexjscss.blogger.com

    Hello

    Try header HTML of the page

    
    

    BR, Jari

  • Field will not be centered when the text adjusts

    I have a centered LabelField.  It works fine until the text is too long.  It envelops like I want it, but the center alignment is lost.  I also tried a RichTextField without success.  Any ideas?

    GridFieldManager gfmTop = new GridFieldManager(2,0);super.bodyManager.add(gfmTop);
    
    VerticalFieldManager vfmTopLeft = new VerticalFieldManager();vfmTopLeft.setPadding(0,15,0,0);long styleCenter = Field.FIELD_VCENTER | Field.FIELD_HCENTER;vfmTopLeft.add(new BitmapField(image, styleCenter));vfmTopLeft.add(new RichTextField("See Additional Images", styleCenter));vfmTopLeft.add(new LineBreakField(FONT_HEIGHT));vfmTopLeft.add(new LabelField("Availability:", styleCenter));vfmTopLeft.add(new LabelField("IN STOCK", styleCenter));vfmTopLeft.add(new LineBreakField(FONT_HEIGHT));vfmTopLeft.add(new LabelField("Shipping Included", styleCenter));gfmTop.add(vfmTopLeft);
    

    added DrawStyle.HCENTER and it's good.

    long styleCenter = Field.FIELD_VCENTER | Field.FIELD_HCENTER | DrawStyle.HCENTER;
    
  • Labels are centered, but the text fields are not

    I can't seem to convince a RichTextField is centered on the screen.  This is a limitation of this particular area, or I am doing something stupid?  Copy the following code illustrates the problem:

    package com.rim.samples.hello;
    
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.RichTextField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    
    final class HelloScreen extends MainScreen {
        public HelloScreen () {
            super();
    
            // The title is centered
            LabelField title = new LabelField("Test Field Attributes",
                    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH | LabelField.HCENTER
                    | LabelField.VCENTER);
            setTitle (title);
    
            // A simple label added to the main screen is centered
            add (new LabelField("Yay! I'm centered!", LabelField.FIELD_HCENTER));
    
            // But a rich text field refuses to center
            add (new RichTextField("Boohoo, I'm not!", RichTextField.FIELD_HCENTER));
    
            add (new LabelField("Labels rock!", LabelField.FIELD_HCENTER));
    
            // The vertical field manager makes no difference
            VerticalFieldManager v = new VerticalFieldManager(VerticalFieldManager.FIELD_HCENTER);
            v.add (new RichTextField("field managers don't help :(", RichTextField.FIELD_HCENTER));
            v.add (new LabelField("VFM Labels work!", LabelField.FIELD_HCENTER));
            add(v);
    
        }
    }
    

    I tried FIELD_RIGHT but when HCENTER does not, nor does RIGHT.  I guess I can use a tag instead, but I was really hoping to use a centered text edit field.  Any ideas?  Thank you

    Blister

    The default behavior of RichTextField should use the full width. Try adding the RichTextField.USE_TEXT_WIDTH style

  • Centered form CS4 field entry

    DW CS4 running. When a user visits my site and enters data in a form field, fields of the form displays the data entered as centered (or justified). For example: the box I'm tie here on this page right now rest justified (text starts on the left side of the box), but my forms of Web sites start centered when a customer starts typing.

    Any help appreciated.

    Paul

    BINGO! This works! I made the change in the .css file.
    I pasted the new code below.

    Thanks again for all your help!
    -Paul

  • Horizontal and vertical field centered group

    Hello

    I have a form of the screen with two editFields and a button. I want to do is make them one under the other in the middle of the screen, appears as in this photo:

    I tried to use 3 HorizontalFieldManager with

    Manager.

    FIELD_VCENTER.  inside a VerticalFieldManager created with Manager.USE_ALL_WIDTH style, but the fields will appear on the top of the screen and they take the entire width of the screen.

    As the Senior Manager of your screen is VerticalFieldManager (you use screen, are you not?), it will ignore (understandable) flags the child fields FIELD_VCENTER. However, it will honor all horizontal alignment as FIELD_HCENTER indicators. However, FIELD_HCENTER not play with USE_ALL_WIDTH, so drop it. HorizontalFieldManager does not honor FIELD_VCENTER his children - you will use it to take advantage of this fact.

    This may seem a bit complicated at first, so I'll give you more details:

    (1) create your screen with the explicit NO_VERTICAL_SCROLL style bit (important!)

    (2) add a HorizontalFieldManager(USE_ALL_WIDTH |) USE_ALL_HEIGHT) on the screen--let's call is bigHFM

    (3) add a VerticalFieldManager(USE_ALL_WIDTH |) FIELD_VCENTER) to bigHFM - we will call this new bigVFM Manager

    (4) create a HorizontalFieldManager (FIELD_HCENTER) - Let's call it firstRow - and add it to bigVFM

    (5) in the same way, create a HorizontalFieldManager (FIELD_HCENTER) called secondRow and add it to bigVFM

    (6) add LabelField ("Label 1") and a text field to firstRow

    (7) add LabelField ("Label 2") and a further edition in secondRow field

    (8) create a ButtonField ("Button", FIELD_HCENTER) and add it to bigVFM

    (9) to run the application, look at the screen, change the borders of fields if you want and enjoy!

    P.S.: Although Field.setMargin is documented in the 6.0, it works like that since at least 4.2.0

  • Put LabelField above BitmapField

    I searched around, but have not found a clear answer to this. The answers that are closer seem complicated for what should be a very simple thing to do

    What is the easiest way to place a LabelFeild on top a BitmapField? Specifically, I have the splash screen that takes the entire screen with a BitmapField, and I want to place a small LabelField in the lower right, on top of the Bitmap image. Am I crazy to think that this should be easier?

    I wrote once a code only one field of centers on a bitmap.  Change it to put the box down below is trivial. Here is the link to the code:

    ButtonField with background

    It is in the solution post. Watch the childX and childY calculations and remove the division by 2.

  • Not able to focus BitmapField

    Hi gurus

    I searched for this error but have not been able to find a solution.

    I have a HorizontalFieldManager where I add BitmapFields. These BitmapFields have FOCUSABLE, no problem with that style.

    What I'm trying to do, it is only when the user focuses on a different field, outside the HorizontalFieldManager and then returns to the HorizontalFieldManager, enforcement "remembers" field was centered in the HorizontalFieldManager, much as the menus of Twitter and Facebook on their BB applications.

    To do this, I'm saving SelectedIndex when the Manager is blurry:

       protected void onUnfocus(){
            BitmapField focusedField = (BitmapField) getFieldWithFocus();
            if (focusedField != null) selectedIndex = focusedField.getIndex();      
    
            super.onUnfocus();
        }
    

    It works very well, I'm able to get the selectedIndex property. So what I try to do next is to focus this field when the manager gets concentrate:

     protected void onFocus(int direction) {     
    
            BitmapField fieldToFocus = (BitmapField) getField(selectedIndex);
            if (fieldToFocus != null) fieldToFocus.setFocus();              
    
            super.onFocus(direction);
        }
    

    I see that fieldToFocus is recovered succcesfully, is not null and the selectedIndex property is valid, but when I run the method

    fieldToFocus.setFocus()
    

    It is for me a StackOverflow Exception.

    I tried many other ways and have not been able to understand how to fix it. I also tried to comment the last line on the onFocus event: super.onFocus (branch);

    But it does not work.

    Help, please!

    a Board exception stackoverflow on a loop without end. maybe onFocus is called again when you run setFocus? Avoid it along with a check on the target area.

    I would also call great.

  • data display of form twice like a shadow

    Hi, I created a form to fill out very simple with Adobe Acrobat 9 for the user to fill out. Everything works well except in two fields once, I type in the data, it appears twice in the field like a shadow. In a data field are centered, but the shadow is as left-aligned. In the second field the shadow is really close to the typed data in that it looks like someone "photoshoped" it. I checked the properties of these two areas and other areas that do not display the shadow. There is no difference... I have attached a screenshot. The first line in the column "Amount ($)" is the shadow "at a distance" and the second row is the shadow of 'close' and the 3rd and 4th rows are very well... I can send in the form of origin if necessary.

    Thanks in advance!shadow-data.JPG

    It seems to me you have stacked form fields. If the field names are the same, then typing in one displays the result in all the other fields of the same name. In addition, these problem areas are appearing with darker highlight, as stacked fields would be - 2 Purple clear are a darker purple.

    Kind regards

    Joe

  • Foglight Federation field Guide Update

    Please update the Federation field Guide and include: Federation is not supported if FMS of the child only are not in the same data center.  (or solve sensitive issues of latency...)

    In general, Federation depends on passing large amounts of data between mailboxes FMS parent and child.  Most organizations do not have the kind of big pipe between data centers to allow the Federation succeed.

    In fact, we re-architected our environment in order to eliminate the Federation last year and were much happier.

    (personal opinion follows - your mileage may vary)

    On the other hand, is not denigrate such Federation only implemented at Quest in Foglight.  This is a general problem with the concept of Federation.

    My understanding is that the Federation has succeeded only in a kind of very limited environment, where you need VERY limited, incidental and infrequent access to small amounts of data Federated, and where most of the data are used at the level of the child.  It is not a winning solution for handling large amounts of data in real time.  (Federation! = ala Hadoop parallel processing)

    Federation must be used for situations where the separation of the data is based on functional needs, not technical requriements.  For example, strengthening of information from multiple business units/entity agencies, not to divide several sources of data type even between different child FMS boxes.  Given the current limitations on location (fast connections to the LAN) and the number of child servers (is it still 4?), very few customers will find it an attractive and scalable solution.

    for example, in the environment of vFoglight, it's (in general) a very bad idea to divide data of Virtual Center between boxes of FMS child collection.

    Here, you can see that each request to any screen or report that requests data from multiple virtual centers will require a large number of round-trips on the local network, unifying child the child of unifying data... etc.

    You can easily configure a single FMS to manage any environment without sacrificing performance in the Federation.   Or consult the Quest Professional Services, they have other options to move the data in a much more focused and more scalable way.

  • Virtual keyboard hides part of the change to the field

    Hello

    I have a labelfield, field change and a button that are centered aligned vertically. The three fields, I added in a Verticalfield Manager which is then added to a horizontal region Manager. And finally the HFM is added to an another value for money. Now in the 9800 device or curve 9380, I noticed that when I touch the edit field, virtual keyboard is coming. And he hides the field partially change.

    I want to move things to the top when the virtual keyboard appeared. How can I do. My code is here:

           HorizontalFieldManager hfm = new HorizontalFieldManager();
            VerticalFieldManager vfmComponent = new VerticalFieldManager(USE_ALL_WIDTH);
            vfmComponent.add(lfServerUrl);
            vfmComponent.add(mEfURL);
            vfmComponent.add(mBtnSave);
            hfm.add(vfmComponent);
            int topEmptySpace = (Display.getHeight() - (Bitmap.getBitmapResource(mStrTopBar).getHeight() + hfm.getPreferredHeight() + 25)) / 2;
            hfm.setMargin(topEmptySpace, 0, 0, 0);
            VerticalFieldManager vfmMain = new VerticalFieldManager(VERTICAL_SCROLL| NO_HORIZONTAL_SCROLL );
            vfmMain.add(hfm);
            add(vfmMain);
    

    Help, please.

    When you start to need as many managers to get the look you want, then you know that you should really create your own Manager.

    These two should help you to do:

    http://supportforums.BlackBerry.com/T5/Java-development/how-to-extend-Manager/Ta-p/446749

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-layout-manager-for-a-screen/...

    For example, I hacked together a "centeringManager" and the screen, which should do what you want.  But please use this as a reference sample, understand what he does and maybe even improve it.

    In production code, I would really remove the centeredManager and centering Manager across all fields and place them, but then you must code a manager which includes margins, which would confuse the point of this example - as a basic implementation of a Manager.

    Hope it's what you want.

    public final class CenteringScreen extends MainScreen {
    
        /**
         * verticallyCenteringManager takes one Field and positions it
         * centered in the space it has.
         */
        VerticalFieldManager centeringManager = new VerticalFieldManager() {
            protected void sublayout(int maxWidth, int maxHeight) {
                if ( this.getFieldCount() > 1 ) {
                    throw new RuntimeException("Expecting only one Field or Manager to be added");
                }
                if ( this.getFieldCount() == 1 ) {
                    Field f = this.getField(0);
                    layoutChild(f, maxWidth, maxHeight);
                    int requiredTopMargin = (maxHeight - f.getHeight())/2;
                    int requiredLeftMargin = (maxWidth - f.getWidth())/2;
                    setPositionChild(f, requiredLeftMargin, requiredTopMargin);
                    setExtent(maxWidth, maxHeight);
                } else {
                    setExtent(0, 0);
                }
            }
        };
    
        /**
         * Fields added to centeredManager will be displayed 'centered' vertically
         * regardless of orientation of screen and presence or absence
         * of virtual keyboard
         */
        VerticalFieldManager centeredManager = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VerticalFieldManager.VERTICAL_SCROLLBAR);
    
        // Sample Fields to be added
        ButtonField sampleButton = new ButtonField("Button", ButtonField.FIELD_HCENTER);
        LabelField sampleLabel = new LabelField("Label", LabelField.FIELD_HCENTER);
        BasicEditField sampleBef = new BasicEditField("Text", "", 255, BasicEditField.FIELD_HCENTER);
    
        public CenteringScreen() {        
    
            super(Manager.NO_VERTICAL_SCROLL); // very important
            // The NO_VERTICAL_SCROLL means that the only Manager added to this Screen - centeringManager -
            // will be given as its maxHeight, the available screen height, regardless of
            // orientation or whether there is a virtual keyboard displayed
    
            // add Fields to centeredManager
            centeredManager.add(sampleButton);
            centeredManager.add(sampleLabel);
            centeredManager.add(sampleBef);
            centeringManager.add(centeredManager);
            this.add(centeringManager);
    
        }
    
    }
    
  • Problem in the scroll bars when the screen is not any field focus...

    Hi all

    I have a screen on which I need to display a list of items. and the list total appears at the bottom of the list. everything works fine if the lily a few number of lines. but as soon as the number of rows and Lily exceeds the length of the screen, there is the problem. I don't see the total at the bottom because I can't scroll the list. Here is the code in my class. in the class list, I use a CustomGridManager, which shows data in a table (I downloaded it). I made a few changes in the present. the code for this handler is also attached. Please tell me what changes should I make, so that the screen can be the object of a scroll. (Please go through the code)...

    SerializableAttribute public class MyClass extends {screen

    public MyClass (dataList DataList []) {}

    Super(Manager.VERTICAL_SCROLLBAR |) Manager.VERTICAL_SCROLL);

    Super();

    int noOfColumns = 2;

    int noOfRows = dataList.length;

    int [] columnWidth = {50.50};

    CustomGridManager gfmHeader = new CustomGridManager (noOfColumns, 0, columnWidth);

    Adding headers

    LabelField lblHdrCol1 = new LabelField ("Col1");

    gfmHeader.add (lblHdrCol1);

    LabelField lblHdrCol2 = new LabelField ("Col2");

    gfmHeader.add (lblHdrCol2);

    VerticalFieldManager vfmTitle = new VerticalFieldManager();

    vfmTitle.add (new LabelField ("my class"));

    vfmTitle.add (gfmHeader);

    setTitle (vfmTitle);

    Addition of body

    GFM CustomGridManager = new CustomGridManager (noOfColumns, 0, columnWidth);

    for (int i = 0; i)< noofrows;="">

    LabelField lblICol1 = new LabelField (dataList [i] .getCol1 ());

    GFM. Add (lblICol1);

    LabelField lblICol2 = new LabelField (dataList [i] .getCol2 ());

    GFM. Add (lblICol2);

    Adding a footer

    CustomGridManager gfmFooter = new CustomGridManager (noOfColumns, 0, columnWidth);

    LabelField lblFtrTotal = new LabelField ("Total");

    gfmFooter.add (lblFtrTotal);

    LabelField lblFtrValue = new LabelField ("CalculatedValue");

    gfmFooter.add (lblFtrValue);

    Add (gfmHeader);

    Add (new SeparatorField());

    Add (GFM);

    Add (new SeparatorField());

    Add (gfmFooter);

    Add (new SeparatorField());

    }

    ======================================================

    SerializableAttribute public class CustomGridManager extends Manager {}

    private int [] columnWidths;

    private int [] staticColumnWidth;

    private int columns;

    private int allRowHeight = - 1;

    /**

    * Built a new CustomGridManager with the number of columns specified.

    * Lines will be added to the need to display the fields.

    * Fields will be added to the grid in the order they are added to this Manager.

    to complete each row from left to right:

    *

    * For example, a Manager 2 column:

    *

    * [Field1] [Field2]

    * [Field3] [Field4]

    * [Sphere5]

    *

    * Column widths are equal, and the Manager will attempt to use the entire available width.

    Each line height will be equal to the height of the field higher in the same row.

    * Styles positional field are met, then the fields that are smaller than the row/column

    * they can be set to left, right, up down, or centered. They have by default at the top left.

    *

    @param columns number of columns in the grid

    @param style

    */

    public GridFieldManager (columns int, long style) {}

    Super(Manager.VERTICAL_SCROLLBAR |) Manager.VERTICAL_SCROLL);

    Super (style);

    This.colonnes = columns;

    }

    /**

    *

    @param columns columns number of columns in the grid

    @param style

    @param columnWidths width of each column in a table

    */

    public GridFieldManager (columns int, long style, int [] columnWidths) {}

    Super(Manager.VERTICAL_SCROLLBAR |) Manager.VERTICAL_SCROLL);

    Super (style);

    This.colonnes = columns;

    this.staticColumnWidth = columnWidths;

    }

    protected boolean navigationMovement (int dx, int dy, int, int time status) {}

    int focusIndex = getFieldWithFocusIndex();

    While (dy > 0) {}

    focusIndex += columns;

    {If (focusIndex > = {getFieldCount())}

    Returns false; The focus moves on this manager

    }

    else {}

    Field f = getField (focusIndex);

    If (f.isFocusable ()) {/ / only move the focus on the fields of the object of focus}

    f.setFocus ();

    -DY;

    }

    }

    }

    While (dy< 0)="">

    focusIndex = columns;

    If (focusIndex< 0)="">

    Returns false;

    }

    else {}

    Field f = getField (focusIndex);

    If (f.isFocusable ()) {}

    f.setFocus ();

    DY ++;

    }

    }

    }

    While (dx > 0) {}

    focusIndex ++;

    {If (focusIndex > = {getFieldCount())}

    Returns false;

    }

    else {}

    Field f = getField (focusIndex);

    If (f.isFocusable ()) {}

    f.setFocus ();

    -DX;

    }

    }

    }

    While (dx< 0)="">

    -focusIndex;

    If (focusIndex< 0)="">

    Returns false;

    }

    else {}

    Field f = getField (focusIndex);

    If (f.isFocusable ()) {}

    f.setFocus ();

    DX ++;

    }

    }

    }

    Returns true;

    }

    protected void sublayout (int width, int height) {}

    int y = 0;

    columnWidths = new int [columns];

    If (staticColumnWidth == null: staticColumnWidth.length)<= 0)="">

    for (int i = 0; i)< columns;="" i++)="">

    columnWidths [i] = width/columns;

    }

    } else {}

    for (int i = 0; i)< columns;="" i++)="">

    columnWidths [i] = (width * staticColumnWidth [i]) / 100;

    }

    }

    On the field [] fields = Field [new columnWidths.length];

    currentColumn int = 0;

    rowHeight = 0 int;

    for (int i = 0; i)< getfieldcount();="" i++)="">

    fields [currentColumn] = getField (i);

    layoutChild (fields [currentColumn], columnWidths [currentColumn], height-y);

    If (fields [currentColumn] .getHeight () > rowHeight) {}

    rowHeight = fields [currentColumn] .getHeight ();

    }

    currentColumn ++;

    {If (currentColumn == columnWidths.length | I == {getFieldCount () - 1)}

    int x = 0;

    If (this.allRowHeight > = 0) {}

    rowHeight = this.allRowHeight;

    }

    for (int c = 0; c)< currentcolumn;="" c++)="">

    long fieldStyle is fields [c] .getStyle ();.

    int fieldXOffset = 0;

    long fieldHalign = fieldStyle & Field.FIELD_HALIGN_MASK;

    If (fieldHalign == Field.FIELD_RIGHT) {}

    fieldXOffset = columnWidths [c] - fields [c] .getWidth ();

    }

    Else if (fieldHalign == Field.FIELD_HCENTER) {}

    fieldXOffset = (columnWidths [c] - fields [c] .getWidth ()) / 2;

    }

    int fieldYOffset = 0;

    long fieldValign = fieldStyle & Field.FIELD_VALIGN_MASK;

    If (fieldValign == Field.FIELD_BOTTOM) {}

    fieldYOffset = rowHeight - fields [c] .getHeight ();

    }

    Else if (fieldValign == Field.FIELD_VCENTER) {}

    fieldYOffset = (rowHeight-fields [c] .getHeight ()) / 2;

    }

    setPositionChild (fields [c], x + fieldXOffset, y + fieldYOffset);

    x += columnWidths [c];

    }

    currentColumn = 0;

    y += rowHeight.

    }

    If (y > = height) {}

    break;

    }

    }

    totalWidth int = 0;

    for (int i = 0; i)< columnwidths.length;="" i++)="">

    totalWidth += columnWidths [i];

    }

    setExtent (totalWidth, Math.min (y, height));

    }

    }

    Do you really want now fields is active.

    You can try adding a NullField after your Manager - a NullField is active, if it does not size.

    Other than that, you can try the substitution of navigationMovement and Manager.setVerticalScroll to go up and down the window scrolling.  I think it should work, although I never did.  You can control the scope of the first Manager to ensure that you do not have to scroll through to the end.

Maybe you are looking for

  • Strange intermittent problem with macbook pro

    Hey there ppl. So, I have a Macbook Pro (15-inch, mid-2014, retina), processor i7 2.2 GHz, 16 GB of memory. Running OS X El Capitan. My problem is a strange, because it is only intermittently. ID say like 10-15% of the time. But its very frustrating

  • Satellite P200 - keyboard problem - IE explore starts by pressing any button

    Hello I have a few touble with my keyboard.When I push someone touch, iexplore start only. I tested on Linux and when I push someone touch the result is: ^ @ and the pressed key ex: p: ^@p Is it down? I hope you understand my problem Thank you very m

  • 'Switch between applications' pop-up will not disappear.

    I can't seem to get rid of the popup 'switch between aps' theLH side of the desktop. It just seems to be stuck there, ovbscuring nothing below. How can I disable this help application very unhelpful? Thank you!!! Donald

  • I closed the port at the top of the home screen and I can't open it

    at the top of the home screen, there is a port that contains icons for internet, parental controls, webcam.... e t c. How do I open it again? I tried to do, but so far I have had no luck.

  • datefield return date/time

    Im trying to return the date and time displayed in a datefield that is editable by the user using a spinnerbox, what im getting is a long number, Im assuming it's time system in milliseconds, is that correct and how converting date and time now IM cu