sublayout on extended screen?

If you want to Center all your fields on the screen... I did creating a custom handler that extends the class Manager and using sublayout, but you could also do this by extending the class screen?

I wonder because I created the Manager custom and then added to a class that extends screen, but I'm wonding I couldn't just do one step inside the screen screen being an extension of the full screen, which is an extension of Manager...

Screen is actually just a screen that has a unique VerticalFieldManager as his delegated manager.  When you add() a field, it is added to the delegated manager.

One thing you could do is just to extend the screen and use your custom Manager (one of the centers of things) as the delegate of Manager.  It is if you do not want the things screen adds (of the title section, an element of separator and a main section of scrolling).

Otherwise, I think that your current method of expansion screen is fine.

Tags: BlackBerry Developers

Similar Questions

  • Anyone know how to get the mouse pointer visible on the extended screen?

    Well, I finally managed to work on a way to project my w4 iconia on my TV.  So grateful to a number of people in the community for me that far, but every step seems to bring his own fresh problem to enter.  so a few questions:

    1. anyone who manages to get the iconia w4 to duplicate rather than extend?

    2 - does anyone know how I can control the expanded view - I have a mouse plugged into my iconia so that I can flip through the window I want to show it on the extended screen but the mouse pointer does not appear as visible on the display (TV) extended although it does not work but the shooting blind is very frustrating - okay, if I watch a movie as soon as it runs on the extended screen it does not much you must handle but assuming I want to just browse the internet and project that onto the extended screen, so it's a big problem.

    My apologies if these are stupid questions, I'm not very technically savvy.

    TYIA

    This seems odd. I always change an extra-large pointer and traces of mouse long but have never had a problem with the HDMI screens like that.

    What is the brand and model of your TV please? Maybe someone can duplicate.

  • window appears on the extended screen, but the screen isn't there anymore so can't get to the window (2nd screen on laptop is only when it is connected to the desktop)

    Hi... interesting problem. I use my laptop computer on a desk with a second screen and moving.

    The last time I was using my laptop on the desk, I brought an application (Quicken) on the second screen and now when I start it up it displays on-screen extended even if I use the standalone laptop. I can't demand because it appears in the second screen and I can't get it back to the main screen. I even rebooted and it seems to 'remember' where is was the last time.

    Any thoughts on how to get it back (I know I can reconnect the second screen and move it back, but what about the time when I'm not near my office and want to access an application that was last used on the extended screen.)

    Argh...

    Thanks for your thoughts, I assume that there is a simple key sequence to make it visible on the main screen once I can't find it anywhere.

    Kind regards
    Lex Gitter

    Very late reply, I have the same problem and I solve it hovering over the window you want in the taskbar when the preview window displays a right-click on it.  Select optimize.  The window will appear on your screen.  No, you can enter the window and its size down, it stays on the current view

  • Add a field to a manager internal vertical field (vertical field managers are nested) on a screen, will eventually call the sublayout of the screen. Can someone explain the mechanism of notification concerned?

    Hi-

    I have a screen with vertical field managers nested (that is the top of the screen on the display stack) when I add a field for the internal more vertical domain manager, I see that is called the method sublayout of the screen. I understand that we add a field to the vertical field manager and the screen currently, the State of the screen becomes so he made a layout, followed by the painting.

    But I want to know how the screen (or the user interface engine) will know that a field is added to one of its managers of content vertical field (is there a notification for this mechanism). I mean when I add a field to the Interior more vertical field Manager how will be the vertical field Manager that knows a level up to this topic, and finally how the screen also know this about and new provision itself. (The sequence of method calls etc... Will be useful)

    Again this is not breaking anything in my application and everything works as expected, but it will be useful if I can understand the underlying reasons for the above.

    This is my first Forum announcement ever, bear with my presentation (suggestions are welcome).

    Concerning

    Ravi

    each field can call getManager to check if it is added to another Manager. If a field is added to a manager that this Manager notifies its topmanager, it notifies its topmanager etc. until the highest level is reached.

  • Change direction of the extended screen

    I want to spend my laptop (main screen) window to the LEFT on my wide screen.  It only allows me to move it to the right.  Is there a way to change this?

    Hi Linda,.

    Please go to the Microsoft Community Forums.
    Description of the question, we understand that you want to change the direction of the extended right monitor.
    Let me go ahead and help you with the issue.
     
    What version of the operating system is installed on the computer?
     
    I suggest you follow the steps below and check if it helps:
    a. right click on an area empty office.
    b. left click on Preferences, display settings.
    (c) in the screen window that opens, you should see your two monitors. Who is that clicking on identify monitors.
    d. click or drag right to left monitor to the left of the original left screen and gives off the trail.
    This should change the positions of the two monitors so that the movements of the mouse must be as you wish.
     
    I hope this helps. If you have any other queries/issues related to Windows, write us and we will be happy to help you further.
  • Extended screen - scrolling up and down between them

    On an Acer V17 Nutro, is it possible to put the scrolling with the mouse up and down between the screen extended instead of the left and the right?

    PamL,

    When you are on the screen that allows you to change the resolution, you should see two screens listed. You can click and drag the monitors where you want, which should allow you to place one above the other and make sure you go up and down instead of left and right.

  • U2713H, works as a secondary mode Clone and extended screen

    I have this strange behavior with the Dell monitor and do not know what is happening. When I put the monitor as the primary display, I have a white screen, but if I put it as a Clone or extended than what it runs. I already bought a new display port cable, but I get the same behavior. Everything worked fine a few days back. I tried to reset the monitor and nothing.

    Any ideas?

    By the post-it, you reset the screen as indicated? The monitor had managed to self-test and SUBMISSION (built-in diagnosis)?

    * What computer model is the monitor connected?
    * What operating system?
    * Which video card?
    * What are the ports are available on the video card?
    List of every cable that connects the monitor to the computer

  • How to disable Lightroom on the extended screen

    I am running Windows 7 and I use two monitors. I have the display property value "to extend these screens. I'm doing this to have several programs running at the same time as a processor on a screen and my email on the second screen. When I run Lightroom, Lightroom still overrides my second program and displays the library on the second monitor Module, even though I have the library Module on my primary monitor.

    Is there a way to disable this option.

    Thank you

    Jim

  • Laptop Tecra - red tint on the extended screen

    I would go over my Tecra laptop to an external monitor and worked fine until a couple of days where the monitor screen suddenly started showing red on the screen while the screen of my laptop has a normal color to this topic.

    I tried different from 2 monitors and 2 different VGA cables, so it must be a problem with the settings of display or hardware in the laptop. Anyone have any idea why this is happening?

    It is not easy to give you a concrete answer to your question. In my opinion this should be verified by Toshiba service provider.

    I don't know who don't Tecra you have and trying to output ports video there but if there are also available HDMI port to test with your TV.

  • P50 of Lenovo's PowerPoint does not play the videos embeded extended screen mode

    I am using Lenovo P50 (i7, Quatro M1000M), Win10 - 64 bit and Office 2016. When you use Powerpoint in Extended projection mode embeded videos don't play. However, when I go to double projection mode it works fine, as expected.

    The drivers are up-to-date - verified by Lenovo System Update & Microsoft Update.

    No idea how to fix?

    Thanks in advance

    The same problem I had: to force the Nvidia to run. You can do this by disabling the iGPU Intel in the BIOS.

  • While I was on my computer Vista, the unexpectedly extended screen

    While I was on my computer the screen just suddenly expanded so I minimize to be able to get the arrow to the left. What can I do to get back to normal?

    * original title - why the image on my screen all of a sudden stretch or expand *.

    Hello

    try a restore of the system before this happened

    http://www.windowsvistauserguide.com/system_restore.htm

    If necessary do in safe mode

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    or try this

    try going to your graphic card manufacturers site or computer and are looking for the driver download section

    Search your computer or graphics card model number based on what you have and download and install the latest graphics drivers for vista

    then try to make the screen of solution of problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-screen-resolution

  • Disconnected extended screen when frozen, is my first Pro file intact?

    I recently had a problem where my computer froze. I had two monitors connected with a VGA screen extension (which were both frozen) and Adobe Premiere Pro has been minimized on the second screen. Then I unplugged the second screen of the display which had Premiere Pro minimized, but the main screen was still frozen, with display supposedly on the second screen, that I unplugged, then the second screen off. After a restart of the force, the file opens and seems to be ok, but I'm always a little paranoid and want to know if she could do any kind of damage to the project, or any reduction in the rate of quality or frame to my videos (even if he don't its not a little ridiculous). I just want to be sure. I'm just worried as a frozen computer + disconnecting external monitor could do something for my open project. Thanks in advance.

    If it was broken, you know.  The effects are not "hidden".

  • Captivate 9 record and no blades on the mouse, click on when entering on extended screen

    Hi, my main computer is a laptop and I have two external displays connected through a docking station. When the Captivate 9 capture window isn't that I appointed as my main screen on the monitor, it will capture all the slides, or capture specific positions click. Has anyone experience this problem? Solutions other than changing my settings on the computer whenever I need to record a video of training? Thank you.

    Yes, it's a known problem that occurs in certain situations with certain systems, video drivers or software applications.

    Update video drivers does not resolve the problem, you may simply use your current solution.

  • 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.

  • Culture / stretching to screen Resollution

    Hi all!

    Can a blackberry Application be skinned If Yes, please can you explain to me how?

    If I want to add a "wallpaper" to my application how can I be sure that it fits all the blackberry screen Resollutions? Y at - it a Code which crop or stretch the image for this or do I have to create an App for each screen Resollution for Blackberry?

    I looked on the forum but have not found the answers to my questions. Help, please.

    What you do is you create an Image that is as large as the bb more big resolution, then the image is automatically cut off.

    The code I used to add a background image (which adds the Image behind all fields).

    com of the packaging. Images;

    Import net.rim.device.api.system.Bitmap;
    Import net.rim.device.api.system.Display;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.Manager;

    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.container.VerticalFieldManager;

    / public final class TestScreen extends screen
    {
    Private VerticalFieldManager mainManager;
    Private VerticalFieldManager subManager;
    private bitmap _backgroundBitmap = Bitmap.getBitmapResource
    ("12814463558610.png");
    private int deviceWidth = Display.getWidth ();
    private int deviceHeight = Display.getHeight ();

    public TestScreen() {}
    Super (NO_VERTICAL_SCROLL);
    mainManager = new VerticalFieldManager)
    Manager.NO_VERTICAL_SCROLL |
    Manager.NO_VERTICAL_SCROLLBAR) {}
    public void paint (Graphics graphics)
    {
    Graphics.Clear;
    graphics.drawBitmap (0, 0, deviceWidth,
    deviceHeight, _backgroundBitmap, 0, 0);
    Super.Paint (Graphics);
    }
    };

    subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR) {}
    protected void sublayout (int maxWidth, maxHeight int) {}
    int displayWidth = deviceWidth;
    int displayHeight = deviceHeight;

    Super.sublayout (displayWidth, displayHeight);
    setExtent (displayWidth, displayHeight);
    }
    };

    mainManager.add (subManager);

    This.Add (mainManager);
    }
    }

    Worked for me

Maybe you are looking for