Set the position of a LabelField

JDE 4.5 using.

I need to define fields (LabelField, ButtonField, etc.) in arbitrary positions on the screen of the application.  Official methods I found seem to be facing left and right, but I need my fields to appear in other places.  I got something that works well.  This is the essence of my solution, where I place two labels where I want them. :

verticalFieldManager = new VerticalFieldManager (...);
Scrn.Add (verticalFieldManager);
  
LabelField labelField = new LabelField ("blah");
VFM VerticalFieldManager = new VerticalFieldManager();
VFM. Add (labelField);
vfm.setPadding (25,0,0,100);
  
LabelField labelField2 = new LabelField ("foo bar");
VerticalFieldManager vfm2 = new VerticalFieldManager();
vfm2. Add (labelField2);
vfm2.setPadding (80,0,0,100);

verticalFieldManager.add (vfm);
verticalFieldManager.add (vfm2);

As you can see, the secret sauce is setPadding () - which I read in these forums.  But it is undocumented...  Now, of course I'm very happy to be part of a secret cabal... But I wonder what is the official way to do this.

Thanks for any help - fd

Hello

Take a look at this link

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.id=3797&query.ID=413...

This will help you. setPositionChild() is the method that should help you get the desired result.

Tags: BlackBerry Developers

Similar Questions

  • Funny question with the use of applescript to set the position of the quicktime window

    I use an applescript script in automator to start a recording quicktime. When I run the applescript to automator, everything works fine, but when I run the same sequence as a double-clickable application automator, it throws an error * when it gets to this line:

    Tell application "system events" to indicate the process "QuickTime Player" to set the position of the window before {1131, 725}

    Any ideas as to why?

    Thank you!!

    * Error is just, "the"Run AppleScript"action has encountered an error"

    Hello

    Do not use events from system but QuickTime Player itself to manipulate the window, especially when the scripts via the events system tends to be blocked under recent operating systems, even with special measures to release.

    Like that.

    set {x, y} to {1131, 725}
    tell application id "com.apple.QuickTimePlayerX" -- QuickTime Player X
        tell window 1
            set {l, t, r, b} to bounds
            set bounds to {x, y, r - l + x, b - t + y}
        end tell
    end tell
    

    or it-

    set {x, y} to {1131, 725}
    tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7
        tell window 1
            set {l, t, r, b} to bounds
            set bounds to {x, y, r - l + x, b - t + y}
        end tell
    end tell
    

    Kind regards

    H

  • How to set the position and size of the façade using the FPRunTimePosRunCustom method in a c# application?

    How to set the position and size of the façade using the FPRunTimePosRunCustom method in a c# application?

    I found a solution! -Set the size and position of the façade with the help of the

    File > VI properties > window running Position (in category list) > custom (in position of menu drop-down).

    then just accept the current position and size (leave the boxes checked) or set values you want directly (uncheck the boxes and fill in the numbers), or physically position and size the façade and use, the "set to current location" button and press "set size" current All that is easier for you.

    OK so it does not make use of the method VI Methods (Active X) FPRunTimePosRunCustom ([Position], [Size]) but if labview want to make him difficult to use then other means must be found.

  • The VI "Set the position of the file" went 2010 SP1 for 2014

    The VI 'Set the position of the file' has changed since 2010 SP1? I use 2014 and have converted the program of 2010 SP1 in 2014. It seems that the behavior is different, specifically with the default settings when not wired.

    There is no change that I see. What is your problem? The function always set the default start position.

    2010

    2014

  • Set the position of a PopupScreen

    Is there a way to define the position of top, on the left of a PopupScreen? SetPosition(x,y) call will throw this error:

    java.lang.IllegalStateException: setPosition called outside the layout

    I use JDE 4.2.1 8800 Simulator.

    Thank you

    Ryan

    Quote from the old forum:

    ligraseac

    Messages: 2
    Join date: Jun 2007

    Screen Popup position
    Posted the: June 29, 2007 05:45
     
    Hello

    How can I set the position of a popup screen? I want to set its position next to a field that has the focus.

    Thank you

    Comments: fjarlier
    Re: Screen Popup Position
    Posted the: 5 July 2007 17:10
     
    Hello

    In your class that extends the PopupScreen, you must override sublayout like this:

    ' public void sublayout (int width, int height) {}

    Super.sublayout (Width, Height);
    setPosition (50,50);
    }

    Because the setPosition can occurs only in the layout method. And then, you can position your PopupScreen anywhere you want.

    For me it works...

    If you have another solution, that I take.

    So long

    Fred

  • Set the font of a LabelField Arial

    How can I set the font to a LabelField Arial with a font size that is two points higher than the default font?

    I see that the setFont method can be used, but the argument is a cast and I can't understand how to create a font Arial.

    Also, I found that I can create a font using the:

    Do police = Font.getDefault ();

    But how can I determine the size of the default font so that I can put my Arial font to two more points?

    Thank you...

    FontFamily fontFam = FontFamily.forName("Arial");
    Font cFont = fontFam.getFont(FontFamily.SCALABLE_FONT, 8).derive(Font.BOLD);
    

    Code example

  • How to set the position of the ButtonField in Manager

    Hi all

    Can someone give me little piece of code that can help me set the ButtonField position in the Manager.

    Thank you

    TEJ

    Hi Tej,

    To think that I saw in your code is that you not layout() for buttonfield in the sublayout(). You use custom manager or the substitution of the sublayout (method 0 only for a Manager.

    In any case, here is the example code that handles the touch event

    class MyScreen extends screen
    {
    ButtonField button;

    public MyScreen (parent of BBApp)
    {
    Super();
    LayoutManager Manager = new LayoutManager();
    button = new ButtonField ("click")
    {
    protected boolean touchEvent (TouchEvent message)
    {
    If (message.getEvent () is TouchEvent.CLICK)
    System.out.println ("click the button clicked");
    Returns true;
    }
    };
    Manager.Add (button);
    Add (Director);
    }
    }

    class LayoutManager extends Manager
    {
    int nX, nY, nFields.
    int nXPos [] = new int [2];
    int nYPos [] = new int [2];
    On the field [] fields = new field [2];

    public LayoutManager()
    {
    build a Manager with vertical scrolling
    Super (Manager.NO_HORIZONTAL_SCROLL |) Manager.NO_VERTICAL_SCROLL);
    nX = 0;
    nY = 0;
    nFields = 0;
    nXPos [0] = 20;
    nXPos [1] = 40;
    nYPos [0] = 120;
    nYPos [1] = 240;
    }

    public void add (field)
    {
    Super.Add (field);
    fields [nFields] = field;
    nFields ++;
    }

    protected void sublayout (int width, int height)
    {
    for (int i = 0; i)< nfields;="">
    {
    setPositionChild (fields [i], nXPos [i], nYPos [i]);  set the position of the field
    layoutChild (fields [i], width, height);  Spread the field
    }
    setExtent (360, 480);
    }
    }

  • Cannot set the position of Popup LOV 10g shaped

    Hello

    I'm unable to set the position of popup window popup LOV in my canvas in Oracle Forms 10g.

    In the property Palette, I put X Position and Y Position for the desired values, but it is not in the actual position.

    Can someone please help in this regard.

    Thank you.

    Automatic Position property is set to True.
    Position Position & Y X is set to 0. Even in this case the LOV is rendered in the middle of the form. It is not displayed next to the button that causes LOV to display.

    I tried another way.
    Set the Automatic Position on no. property and set the X & Y Position the coordination required, then displayed in my desired position.

    So, I was missing the Auto value not earlier. Thanks for your reply, he helped solve the problem.

  • Jdev 11G ADF BC: how to set the position of an external browser window?

    Hello

    I created the true to the "useWindow" property to open a dialog box to send a simple confirmation message after the user clicks a button.

    The dialogue window always appears in the upper left corner of the parent page, that I don't like. Is there a way to define where the dialog?

    Thank you very much

    Annie

    Hello

    showPopupBehavior does not work with exterior windows. There is no option to set the position of the external window (just the height and width).

    Frank

  • Set the position of the cursor in the text added (to make the part of the text in index) in WORD using Report Generation Toolkit

    I would like to generate a report in WORD using the report generation toolkit.

    Whenever a text is added to the report, the program should put part of the text index. The problem I am facing with is to set the cursor position in the current location of the text.

    Any suggestions?

    Hello!
    I think that's what you wanted (see attachment).

    First, you must set position for each loop, so after adding the table, your cursor index need to increase the number of added characters. That's why I have included the text of the report, Append - to get the position of the cursor at the end.

    Indexing begins with 0, so you need to set the 3 and 7.

    Hope you get what I mean

  • Question on how to set the position of the field.

    Is there anyway to set the field position TOP of the screen as Screen.setTitle (Field)?

    My problem is when I add my Manager (who has a backgrond color) for the title. I see a gray line between the title and the body region (the body has a background color even my manager), so I did ' t like it.

    Reason I want to 'FIX' my manager at the top of the screen position is I want to see my manager every time I scroll the screen each time as setTitle().

    THX in advance

    -Maz-

    Try using setBanner() instead of setTitle(). I think that the banner does not normally include a field separator (which is what this line gray).

  • Set the Position of the cursor in the Console (console or Windows default or CVI) window

    Hi all

    I'm working on a project for my college class with a large amount of data acquisition. Unfortunately, the part of the assignment asks to do entirely in the console rather than through a User Interface.

    I've programmed in C++ and have used the command gotoxy(). However, this is not part of the ANSI C standard. I can't find any additional information about the position of the cursor in C or CVI standards. Is it possible to position the cursor in CVI? If I have to, I'll resort to create a matrix of character as a screen buffer and encode them manually.

    Thanks again!

    -Bryan

    CVI 8.5

    These functions are part of the windows kernel. simply #include . If you get a link error, these functions should be in 'kernel32.lib' comes with LabWindows/CVI: Add kernel32.lib to the project and everything should be good (search folder x:\Program NIUninstaller Instruments\ to locate, its complete location depends on the version of the CVI you use).

    of course, this means that you must install the Windows SDK: it is an option in the installer of LabWindows/CVI. (you can also download the Windows SDK from the microsoft Web site, but you would be better with one that comes with CVI).

    a short guide on the documentation for the Windows SDK: each function is documented in a single page on every page of documentation for function, there is always a short summary at the end of the page telling you how to use the function: which header file you include, what library file, you must link with and on what version of Windows , the function is supported. Unfortunately, until the CVI 8.5.1 (I don't know for the CVI 9.0), the documentation for the SDK does not include the table of contents, which prevents to find something useful, unless you know what you are looking for the function.

  • Set the position of the cursor

    Hello

    I need to be able to set the cursor to the "editField" during this screen display.  I've been spinning my wheels trying to understand this.  Any advice would be greatly appreciated.

    Thanks for looking,

    Kenton

       public class TestScreen extends Screen
        {
            public TestScreen()
            {
                super(new   VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL));
    
                VerticalFieldManager midVfm = new VerticalFieldManager();
                RichTextField rtf = new RichTextField("<--Here is where the cursor will start");
                midVfm.add(rtf);
    
                EditField editField = new AutoTextEditField("But I want the cursor to start here-->","");
    
                add(midVfm);
                add(editField);
            }
    
            protected void sublayout(int width, int height) {
                setPositionDelegate(0, 0);
                layoutDelegate(width, height);
                setPosition(0, 0);
                setExtent(width, height);
            }
        }
    

    After

    Add (editField);

    Add

    editField.setFocus ();

  • How to set the position of an object PDEPath

    Hello
    I'm a beginner in the plugin Acrobat SDK development.
    I tried to reflow content within the pdf. I was able to redistribute most of the content except PDEPath object.as

    For PDEPath object re-flow that I was using the function PDEElementSetMatrix (PDEElement pdeElement, ASFixedMatrixP matrixP);

    and the trace object was not get positioned to led. It has been rather get placed outside the margin of page very far above the page.

    Another issue is that whenever I was trying to get the coordinates of the position of any object of PDEPath, using the PDEElementGetMatrix function.
    It's come 0,0 coordinate.

    Can someone help me know what could be the problem here.

    Thank you
    Marie José Saffiuddin

    The position of the paths is indeed defined by the matrix and only in this way.

    Things to watch

    -Make sure that you understand how to work with ASFixedMatrix objects (items cannot be defined directly as integers or real numbers).

    -Make sure you understand how to work the PDF matrices

    n ' forget not that the origin of the matrix cannot be the lower-left corner of the page. items are visible only if they are within the rectangle defined by the CropBox, or if there is no CropBox, the HD Mediabox Recorder

  • setting the positions for the fixed field elements

    Hello

    I have a form that several elements on the position of the column 1, 2 and 3. One of the elements is a text box, surrounded by fields of normal text on the position of column 1.

    The problem im having is I want the length of the text box to span more than two columns (resizing), but in doing so it moves the other elements on the page, making it very broad :-(

    Any help will be appreciated.

    Kind regards

    Pirate wrote:

    I have a form that several elements on the position of the column 1, 2 and 3. One of the elements is a text box, surrounded by fields of normal text on the position of column 1.

    The problem im having is I want the length of the text box to span more than two columns (resizing), but in doing so it moves the other elements on the page, making it very broad :-(

    This seems to be a use case attributes , such as the colspan to order form available. The element of page stop and start of the HTML Table layout may also be of interest.

    See + {: identifier of the thread = 2199163} + for a pretty laborious effort to solve what looks like a similar problem.

    If it is not the same problem, you need to provide a detailed description of the problem, preferably to reproduce the problem on apex.oracle.com and include the following information:

  • Full version of APEX
  • Edition and the full version of DB
  • (EPG, SST or APEX listener) Web server architecture
  • Browser (s) and version (s) used
  • Theme
  • Model (s)
  • Region/item (s)

Maybe you are looking for

  • a cursor which date back to the safari - facebook Messenger!

    I have a strangebehaviour of the cursor when I try to type in the box of thefacebookmessangner in Safari! As soon as I write two separate words the cursor back at the beginning, by deleting the words! When I go to the messages section, this does not

  • WAG54G2 - port speed

    Hi all I have recently buy this router and I need to set the speed of the eth port (a cable is very long you have to fix at 10 Mbps...) but can't find any method of web interfaces. I need address dhcp reserved also for question natting and firewalls,

  • Cannot access the name \\computer 0 error code x 80070035 using 2 machines Win 7 Professional x 64

    Makes me crazy! State of the computer 1: Norton 360 on. Wired Ethernet for Linksys router. This Computer Configuration initially homegroup. User name and password on both machines. 2 computer can see this machine as expected - sweet! State of the com

  • ISE versus ACS

    Dear people, I would like to know, what box would be perfect for wireless authentication. ACS or ISE? If I'm not mistaken, is not ISE = ACS + NAC + comment of the NAC server. Kind regards SID

  • Delete everything outside of an object

    Hi all, thereFirst time using illustrator today and really enjoy.But I have a problem that I can't solve.  See picture attached.  I have a vector image in black and one of the tools of stam illustrators for grime in green.  I want to do is keep every