Good way to create spaces between fields

Hello, please am new Blackberry development and I would like to have appropriate spaces between my fields using the horizontal and vertical fields Manager. I've seen suggestions on the use of setMargin() setPadding() or the creation of a field class custom spacer. All of these suggestions will work but don't know there will be consistency when the screen oriented. so I was wondering if there is another way to achieve this spaces that will take into account the orientation of the screen. Advice or links to articles/tutorials will make. Thank you

Welcome on the support forums.

http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/Field.html#setPadding(int, int, int, int)
is the easiest way, it makes the largest field without changing its content.

http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/Field.html#setMargin(int, int, int, int) is more or less the same, he sets those values for the available to managers without changing the 'size' of the field.

Finally, you can create a fully customized layout:
http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-layout-manager-for-a-screen/...
It sounds complicated, but once you got it done other much easier layout issues.
do not mix a provision with a preset manager, extend the class manager directly.

Tags: BlackBerry Developers

Similar Questions

  • creating spaces between the fields

    Hi all

    In my quest to develop a GUI formScreen, I came up with this:

    It seems a bit awkward without spacing between each box...

    Can someone tell me please how to insert just small horizontal spacing between each of the boxes?

    Thank you

    Dan

    If you check 6.0 documentation on field, you'll find setPadding(), setMargin() so that all kinds of getPadding... and getMargin... methods.  Even if the documentation indicates that it is available since 6.0.0 actually there - sans-papiers but work - since probably 4.0.0 (when XYEdges became available).  I know that they work in point 4.2.1.  If you look at the source code for this article

    Implement advanced buttons, fields and managers

    which says that it applies to BlackBerry 4.2.0 and later, you'll find setPadding and setMargin it.

    In fact, student (not just help!) as the code source is extremely useful for any developer serious user of BlackBerry interface. The code isn't perfect (Finally, whose code is?), but it is much further down the way to create a friendly USER interface than what I've seen personally. You have setExtent (frequently seen here in the forums) and setVirtualExtent (very rarely used and well explained necessary to create scrolling handlers) examples, any kind of use of layoutChild and setPositionChild (the main building blocks for the creation of highly personalized facilities) etc - you name it, they have it.

  • Simple if / choose block - I need spaces between fields

    Should be easy enough, but I just don't get it - perhaps someone can help you.
    I have to be able to see the first name Middle_Name name unless there is no middle name, then First_Name Last_Name. I can't just out the 3 fields in a row because it always turns an empty field in a space, leaving me with First_Name Last_Name (2 places).

    Here is the code that I use, you may have a better sugguestion. Problem is this First_NameLast_Name or First_NameMiddle_NameLast_Name code under outputs (without space)
    <? choose:? >
    <? When: MIDDLE_NAME! ='' ' ? >
    <? First_name? >
    <? MIDDLE_NAME? >
    <? Last_name? >
    <? end when? >
    <? otherwise:? >
    <? First_name? >
    <? Last_name? >
    <? end otherwise? >
    <? end to choose? >

    Thank you.
    PS - BI Publisher 11.1.1.5 using Word 2007

    You can use the concat function to include a space between the first name, last name etc.

    or try -essentially include a space between the fields.

    Hope that helps.
    Bipuser

  • Why is firefox becoming less friendly with each update? Firstly it no saver addon tab over and now there is no way to put spaces between the buttons

    There seems to be no possible way for any software developer to understand that whenever you release an update that changes the interface of the software, it annoys people only
    I am now looking for a usable decommissioning and looking around for an alternative to firefox
    thx to replace userfriendlyness by this layout simple and smooth

    back tab saver might change my mind despite the fact that my google search box and webadress box is now as wide as my screen is a bit pointless not to mention the ugly as of fuck

    Why install a theme if there is still dirt in front of her

    The current version of Firefox stores customization of the toolbar as a pref in the prefs.js file in the browser.uiCustomization.state pref (see topic: config page).

  • Good way to create a fluid page

    Ok... I'm new to Dw and its my intention to create a fluid page Web site. During the creation of the index page, I got the following below

    < div class = "gridContainer clearfix" >

    < div id = "LayoutDiv1" >

    I don't know if I need to change these containers, or even if they are needed.

    The first object I want to add is a header to hold a navigation bar.

    Can someone please explain to me how to do this.

    Thanks in advance

    BOB. G

    I assume you are using the layouts feature fluid inherited grid.  Not my first choice, but OK.

    .gridContainer is the container for your fluid layout parent.  You must use it, or it won't work.  What you put into it, it's up to you.  Here is an example of using HTML5 semantic tags.

    Your header

    Some content

    Main content

    Some content

    Your footer

  • Good way to create templates and to only deploy - "no problem of Internet access.

    I'm new to ESX and I have tons of networking with VM issues, I am deploying to a model.  Can someone tell me if I do something wrong?

    We use

    vSphere Client 4.1.0

    vCenter Server 4.1.0 build 345043

    It is a brand new installation of W2k8 32-bit and w2k8 R2 SP1.  The machines work fine when I create them from a CD.  When I turn them into one model and "Deploy Virtual Machine this model" is when things go wrong, all the machines I have deploy have network problems.

    That's what I do

    • Install VMWare tools v 8.3.7 build 341836
    • Apply all updates from MS-based VM
    • I have check them as a model
    • Deploy the virtual machine for this model
    • Give it a name
    • Choose the customiztion comments-> customize using the Customization Wizard
    • Use the virtual machine under the name of the computer
    • Give him the windows license product key
    • Give him a password
    • set the time zone
    • Nothing in the race once
    • Network - default settings
    • Task force - task force
    • Where is the operating system-> options I check 'generate new security IDS (SIDS).
    • Save the specification - I can't verify anything here, but I wish I could
    • Finishing

    When that it deploys, the deployed machine gets and IP address, but it is usually said "local only" and it cannot access to the internet or other computers in the environment.
    I can click on the x next to the internet and start the Windows Network Diagnostics and when it ends says:
    "Your computer seems to be configured correctly, but the device or resource (primary DNS server) does not.
    I have disabled the firewall, enabled the firewall, deleted from the virtual network card, changed nic types (currently using the vmxnet3), tried all the tricks in the book that I can find on google and nothing works.
    I got a machine deployed and run sysprep after the fact and that did not help anything.  I may be wrong but I think that sysprep is not necessary if you use the Customizing of comments, is that a correct assumption?
    I created and XP VM and created a template out of it, when I see him, networking is fine.
    Thanks in advance for any help you can provide.

    I think you're right, it looks like a problem with the switchport configuration.

  • Space between the 2 tables for a recomposable epub

    For a recomposable epub, which is the best way to add space between the 2 tables? Seen in an epub Viewer, tables have no space and are superimposed.

    I cut and paste tables as objects embedded, so they have a given paragraph style and you can use the functionality of the space before and after. Let's see if someone comes up with a different idea.

    Edit: Have you tried with space before and after the table Options > Table spacing? It is a raw sample of an .epub by using this feature.

  • Create the custom field on vm creation

    Hi all!

    Does anyone know if there is a way to create a custom field in each new virtual machine with the news of creation (Date/time and user)? I was thinking about a trigger in the vCenter but still lost in this...

    See Alan poster called runs a scheduled job PowerCLI

  • Find the space between the word with different endings and figures

    Hello

    I am trying to find a way to find spaces between the words and numbers.

    Screen Shot 2014-02-11 at 13.12.34.png

    I'm limited to only use the word "WORD" (capital or small capitals) with different endings like - ing s y and more (using \S+).

    I wrote something like (? i) (? < = WORD\S +) \s(?=\d+) but this does not work due to some limitations of advanced search, I think?

    Any suggestions?

    Peter

    On the other hand, I think that.

  • What is the best way to create tables in Illustrator cs5

    Hi all

    I am currently working on the contribution of a project for a printer Board. He must have rows and columns so that a project can be followed and assigned on a day to day basis. I thought I would just create a table for this. Is there a good way to create tables in Illustrator cs5?

    You can also copy and paste the ID table to HAVE, but since they cannt be bound as pdf or eps he ae limits to how much you can edit

  • Space personalized between fields?

    Is there a way to put a custom amount of space between two labels on a screen that would be smaller (height wise) than to make an addition (new RichTextField()); between the labels?  I want to put a space between my labels, but it gives me too much space.  I would like to maybe 2/3 of the height of richtextfield a vacuum.

    There are two possibilities.

    You can create your own layout manager. This article shows you how to:
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800508/...

    for easier tasks, I use a SpacerField. It is my own extension of the field class, NON_FOCUSABLE and defines its scope to the desired height and width.

  • How can I add white space between areas that contain text fields? I use Adobe Acrobat Pro DC 2015.  I'm trying to change an existing PDF. I need to add white space between areas that contain text fields to allow these text fields to be developed and not

    How can I add white space between areas that contain text fields?

    I use Adobe Acrobat Pro DC 2015.

    I'm trying to change an existing PDF. I need to add white space between areas that contain text fields to allow these areas to be developed and do not overlap the text and the text below fields.

    For example:

    1. 1.

    Progress/strategies:

    1. 2.

    Progress/strategies:

    1. 3.

    Progress/strategies:

    1. 4.

    Progress/strategies:

    The space between each 'progress/strategies' increasing needs. A text field is under each of them. If it's a Word doc, I could just press on enter. What is the best way to do this with Adobe Acrobat Pro DC?

    There is no easy way to do it. You need to move the text fields more apart and if there are static elements, then you will need to use the tool edit text & Images to move them, separately.

  • Create an empty space between the columns in the table to advance.

    Dear friends,

    It sounds as delicate,

    I have a Page of the OFA developed with the region having the table advance, I have 6 columns in the
    Now the requirement is to make the table so that there should be a
    difference between the first three columns and the last three columns.

    To do this, I created a dummy column with by definition any attribute value.

    Now the problem is whenever I have search, it throws an error saying attribute view did
    not defined.

    Is there an alternative way where I can have a SPACE between the columns?

    Thanks in advance,
    Keerthi.k

    Published by: user1140193 on June 30, 2011 02:08

    HAD,

    Create a trasient attribute in the VO joined with the table. And assign the dummy column.

    Kind regards
    GYAN

  • More space between paragraphs: is there a way to remove that?

    I am importing a word document text for formatting in InDesign. It's 150 pages of a book that I will put on the page.


    I made a mistake while writing the book with word by creating a space between each paragraph, I now want to get rid of.

    Is it possible to automate this process with InDesign? Is there a way to remove the extra space between my paragraphs and add a dash instead automatically?

    Hi craigatadobe12345

    You can do this by making "^ p ^ p" in search and replace "^ p ^ t ' with the Find/Replace window. This removes the extra line and set a tab to indented text.

    Below is the screenshot of the same thing. It could be that useful...

    Best,

    Anil yannick

  • space between the fields in a page

    Hello

    I have about 5 fields to a custom page, one under the other. But I can't understand how to create the space between these fields vertically?

    Any suggestions are appreciated.

    Thank you

    create a new element and set its type as spacer

    hope this helps

    Prasanna-

Maybe you are looking for