fixed height of LabelField

I create the title page with a background.  I would like to put a background to a certain height.  To do this, I guess I have to adjust the height of the label field?  However, I don't want to increase the size of the text.  The label is located within a HorizontalFieldManager.

I have read that I need to extend LabelField, I already did for painting, how I do for height?

Check out these articles in the KB.

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/...

Tags: BlackBerry Developers

Similar Questions

  • Will I put a fixed height for the FG div?

    Is that what I'll put fixed height for a fluid grid div so that the two boxes can be found in the same alignment.SJV_two_divs.JPG

    I want these two boxes (special features and story) appear in the same alignment in the layout of office...

    Instead of setting a height 'fixed', consider defining a "min-height" for both boxes. In this way, the two boxes will be forever by a 'minimum height' first parameter. If there is more content, it will expand again.

  • Fixed height for site

    Hi all

    I want my site to stop scrolling and be of a fixed height. This has been done is this site in Muse. Can someone tell me how it's done?

    Thank you

    Jon

    The site that is linked to your original message http://www.morethansquare.com/ uses two simple techniques of Muse.

    (1) scroll is disabled for the background image of the browser (the box down in the browser panel fill).

    (2) the photo of the building remains in the upper right of the browser window is simply a placed graphic that is placed in the upper right of the browser area (by default the gray area outside the page mode Design of Muse) and attached on the upper right corner of the browser by using the command "Pin" in the Control Strip.

  • Text field scrolling fixed height that develops when printing?

    Hi all

    I came across this before, but for the life of me I don't remember: ideas for what is required to set a text box so that the height is fixed and used scroll bars when it overflows the text box text, but on the printing of the document, and then expands so that all the text is visible and will be printed?

    If I remember, it may be a little snippet of JavaScript code that is required, working on a print event?

    All other items will be part of a fluid design so that nothing breaks, however it is important that seen on the screen, the text boxes have a fixed height. Only necessary to expand on print.

    Any suggestions would be much appreciated: I have been on it for hours!

    Thanks in advance.

    Hello

    Take a look at the last page in this example: http://assure.ly/g80MVY

    You'll see how in the preprint event we set the minH for the textfield property and assign a h property on postPrint.

    Hope that helps,

    Niall

  • Fixed height on a website - suggestions?

    Hi all

    I need to be at the same height as on this page http://www.3ddream.NET/drivingskool/indexd.html

    This should apply to all pages

    any suggestions?

    You can view the css files - if it isn't let me know

    Hello

    The "fixed height" of the site is not a fixed height. If you go between these two pages you will see that the height varies.

    http://www.3ddream.NET/drivingskool/RUS-b.html

    http://www.3ddream.NET/drivingskool/RUS-c.html

    All they have done is limited content to give the impression that everything is content, but only for a given size of browser, if you resize your browser (to a smaller page size) then the difference in page size are more noticeable.

    PZ

  • How to calculate the height of LabelField when it displays in multi lines

    Hello friends,

    We use LabelField.getPrefereredHeight () to calculate the height of the label field. But he returned the same value when it is displayed online singel or multi line.

    Please help me for differing from the height of the label while displaying field multi-line and single-line

    Thank you very much in advance

    If the code is simple, then you might want to go ahead and post it.  I can't really speculate on exactly the problem in this case unless I see code.  It doesn't sound like you should not show the width and height of your Manager 1 however.  Here is an example of a sublayout of one of my managers:

        protected void sublayout(int width, int height) {
            int numFields = getFieldCount();        int availableHeight = height;
            int totalHeight = 0;
    
            for (int i = 0; i < numFields; i++) {
                Field field = getField(i);
    
                layoutChild(field, width, availableHeight);
                            availableHeight -= field.getHeight;
                totalHeight += field.getHeight();
            }
    
            setExtent(width, totalHeight);
        }
    

    This code is educating the Manager to use the full width so much to her and didn't use as much height as it needs (drunk on her children and adding up their respective Heights).  I don't know if this helps, but if you have any other questions please do not hesitate to post the code and we'll see what happens.

  • expandable width with fixed height (muse CC 2014 from adobe)

    Hello world

    Firstly it should be noted that I use Adobe Muse CC 2014

    is there a way to create a background of stretch width for a page that the bottom has different colors in each of her sides. It is worth noting that the height of the background is fixed.

    expandable-width-m.jpg

    for example this picture, I need the yellow and red rectangles must expand depending on the size of the screen, but the rest height fixed.

    I know that this can be done by using an image, but it is not the best way, because of the size of the image.

    Thank you

    You can create rectangles and use the fill color, as well of what you have mentioned.

    Thank you

    Sanjit

  • getPreferredHeight does not change the height of a LabelField.

    Hello

    I add LabelFields at a screen. I replaced getPreferredWidth and the LabelField getPreferredHeight. GetPreferredHeight however does not change the height of LabelField.

    getPreferredWidth seems to work very well.

    I do not use the default vertical Manager that comes with the screen.

    Ideas/pointers in troubleshooting this would be greatly appreciated.

    -MO.

    Hello

    to change dimensions on a field, you must override the method of layout.

    protected final void layout(final int width, final int height) {
        int yourHeight = super.getFont() * 2;
        super.setExtent(width, yourHeight);
    }
    

    If you want the label is centered vertically, you must override the paint method.

  • Question when the LabelField or DateField layout() method override

    Hello

    I add a LabelField to a VerticalFieldManager.

    I want set a fixed width for LabelField, trying to override the method of layout as follows:

    LabelField label = new LabelField ("some textToShow") {}

    public void layout (int width, int height) {}

    super.setExtent (40, 50);

    }

    {} public void paintBackground (Graphics g)

    super.paintBackground (g);

    }

    };

    Result: Gets text LabelField disappear, I try to draw a rect with the width and height, it displays the Manager, but I'm not able to view the text that I'm passing with the LabelField, similar happened with DateField too.

    I don't want to create a completely custom field, I want to just set the width of my choice and height as what is already to have that is to say the default height.

    Please let me know how to do this, what I am doing wrong.

    Please, it is urgent and let me know your comments.

    Thank you

    Kind regards

    Aparna

    I solved.

    Thank you

    Aparna

  • How to upgrade the height of a field after painting?

    Hello world!

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

    A text which may be multi-line

    A second text which may be multi-line

    An image with a fixed height (80px)

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

    How is it possible to do?

    Thank you in advance.

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

  • Increase in height of Editfield, according to the text of add

    Hi all

    Can someone give me any example of code that can increase the height of editfield after adding text above.

    Here's my editfield with fixed height and width when the content is therefore increase over this size, the editfield was not increased. It has same height and width as we describe first.

    So please give me suggestion how to increase the width and height when the editfield increase content.


    Code example: -.

    EditField txt_NoteArea = EditField(BasicEditField.FILTER_DEFAULT | nouveau Field.FIELD_VCENTER |) Field.FIELD_HCENTER) {}
    {} public void paint (Graphics g)
    g.Clear ();
    g.setColor (0 x 430000);
    g.drawRect (0,0,this.getWidth (), this.getHeight ());
    Super.Paint (g);
    }
                           
    public void layout (int width, int height) {}
    Super.Layout (300,100).
    setExtent (300,100).
    }
    };

    Note: In the code above I initialize textfield like width = 360 and height = 100 and come up with the perfect height and width.  But when I add text in him, he will not increase in height...

    So please give me any little piece of code or a sample that can solve my problem.

    Thank you

    TEJ

    Hi Tej,

    Here's the code for you

    class MyEditField extends EditField
    {
    public MyEditField (long style)
    {
    Super (style);
    setBorder (BorderFactory.createSimpleBorder (new XYEdges (1, 1, 1, 1)));
    }

    public int getPreferredHeight()
    {
    return Font.getDefault.getHeight () * 3; setting the height of the edit as 3 rows field
    }

    public void layout (int width, int height)
    {
    Super.Layout (width, height);
    If (getExtent () .height<>
    setExtent (width, getPreferredHeight());
    }
    }

  • How to adjust the height of listfield?

    can someone tell me, how to set the height of listfield? I must add a footer fixed height after him.

    You can use the ListField (int w, int h) positioning of class method to set the height of your ListField.

    Press the button Bravo thank the user who has helped you.

    If your problem has been resolved then please mark the thread as "accepted Solution".

  • jQuery UI dialog height: auto

    Hello

    I use Apex 5.0.1 universal theme. I am replacing the standard alert and confirm popups with jQuery dialog. For example, alert, I replaced the alert() with:

    $.extend ({alert: {function (message, title)})

    $("<div></div>").dialog ({}

    Open: function (event, ui) {}

    $(".ui-dialog-titlebar-close").hide ();

    $(".ui-dialog-content").css ("quilting", "1em 1em");

    },

    buttons: {"Ok": function () {$(this) ("close") .dialog ;}},}

    close: function (event, ui) {$(this) .remove ();};

    Resizable: false,

    Title: title,.

    modal: true,

    height: 'auto '.

    .html (message)});

    }

    });

    It works well, except for one thing: height: 'auto' is ignored. Apex generates a fixed height for the content of the dialog box:

    "" <div id= "ui-id-3" " class="ui-ui-dialogue-contenu-content-widget" style="display: block; width: auto; max-height: none; height: 69px; "min-height: 45px;" >

    I added

    $(".ui-dialog-content").css("height","");

    the function open, but who was simply ignored (run this line of Firebug does remove the height of 69px correctly).

    Suggestions how to force the "height: auto;

    See a demo here:

    workspace: sqlint

    user: OTN

    PW: OTN123

    page: 3

    put that in the statements of duties / global for your page:

    apex.theme.initResponsiveDialogs = function () {};

  • How can I create a slideshow full size with a height of liquid?

    Hello, community of Muse!

    I tried to create a slideshow full-width which always displays images in full, without success.

    In other words, I want pictures in my slide show span the entire width of a browser (i.e. 100% width) while retaining their original proportions (uncultivated). For the moment, while the images in my slide cover the entire width of a browser, they are limited by the fixed height of the frame of the slide show. (As the images are stretched across the width of a browser, they are obviously 'cropped' or bucking up and down due to the fixed real height of the slideshow object framework).

    Is there a way to make the picture of full-width slide show dynamically resize height, in order to display the entire image, under cover? (Ideally, as increases the height of the image in the slideshow, I want any content below to be pushed to the bottom of the page).

    If you need additional information in order to help me with this question, so please let me know!

    Thanks in advance!

    Have you had a chance to go through this tutorial for ideas?

    Create a 100% width slideshow in Adobe Muse | Adobe Muse CC tutorials

  • Reagent / website 100% height?

    Hi all

    I use Muse for a few days now, and I love it.

    But right now my problem is the following.

    I want my site to be as high as the window of the browser, which means it should never have an option to scroll.

    Something like a height receptive, so that everything fits in my browser window.

    So far, I couldn't understand how do.

    Is there a way to do this ?

    Thank you in advance.

    Greetings.

    See this discussion on a similar topic.

    Fixed height for site

Maybe you are looking for

  • Fpoppy outside disk for Tecra 8000

    HelloI need to find the right cable to run a disk drive external floopy on a Tecra 8000Cordially AGM

  • Re: Satellite M70-131 - RAM and CPU upgrade

    Hello, I have 2 questions:1 is it possible to install more then 2048 MB RAM in M70 - 131. If someone tried this?2. is it possible to install the new processor of M70 - 131? Now, i've got Pentium M (750) 1, 86GHz (Dothan, 533 MHz). Can I install for e

  • LV FPGA workflow nested CLIP w / NI SMU-6591R

    Hello I develop an application on a NI-SMU-6591R Board. My installation also includes a SMU-1085 w chassis / controller 8135. Goal: set up a VHDL project prior to the Commission of 6591R. Given that the application requires access to 2 ports Mini SAS

  • HP officejet J4680 does not print to web

    I have an officejet J4680 which does not print web pages, it prints everything else as of the word, but it will not print from the internet. I have the windows operating system 7. If anyone knows why it's hapenning let me know, thanks

  • HP Officejet 4500 Wireless XP operating system fails to print a page of some web sites

    For material when I go to a seondary screen from the main web site to get a hotel or motel confirmation number and I'll print the page it does not print. The printer icon in the taskbar (1) document ready to be printed. I tried all the steps in the H