Problem Manager of vertical area

Hello

I'm currently provide a screen that displays text using a manager of vertical field of the to do. Since that, I recently added a bitmap to the screen. Now the trackball on the Simulator and the current system does not scroll upwards or downwards, and subsequently that half of the image is displayed. This is my code:

You must make your LabelFields ASSETS too.

Tags: BlackBerry Developers

Similar Questions

  • Visual my manager of vertical scrolling

    Hello everyone,

    I use a vertical Manager that contains 7 custom managers (HM) horizontal focusable containing 3 fields each. When I run my application on devices of small screen like the 9300, I see 4 (HM) at a time and the need to scroll down to see the other. expect that the Manager of vertical scrolling only when I reach the last HM? This means when I jump to the 5th HM, I can't see it because the Manager does not scroll. He only scroll when I reach the last of them, and I continued to go down. I want the scroll to be synchronized with the update so that I can see the terrain with the update.

    Thank you for your help

    NOTE: the vertical Manager I use is the standard one that's why I did not add the code. I use it with vertcalscroll and the style of vertical scroll bar

    I solved the problem by defining a focusable fields my manager custom take. It works fine at 100%

    I think that there is much better way to do it.

    Thank you guys for your help.

  • I have updated to ios 9.3.1 now I have no sound for text messages alerts and alert sounds no calendar! I just missed a meeting disaster. Any ideas how to solve this problem, all the settings are correct.

    I have updated to ios 9.3.1 now I have no sound for text messages alerts and alert sounds no calendar! I just missed a meeting disaster. Any ideas how to solve this problem, all the settings are correct.

    Try a reset...

    Force restart your iPhone: tap on and hold the Home and Sleep/Wake buttons for at least ten seconds, until you see the Apple logo.

    If this does not help, tap settings > general > reset > reset all settings

  • My problem is: the photos are listed in descending order. I need them in ascending order.

    * Original title: Photo Arrangement

    I have a real problem with my understanding of photo.

    I am producing a slideshow on my travels in Asia over the period 2008-2015.

    All the photos are in individual folders by year. I also arranged their by the date.

    My problem is: the photos are listed in descending order.  I need them in increasing order - first photo of the last picture taken on a given date. Otherwise, I can't import individual files in my photoshow software because it displays the last picture taken 1.

    I can't find a link or an option to have this way.

    Does anyone know how to get the arranged in ascending order?

    Sunday, July 5, 2015, 13:51:46 + 0000, boongsongum wrote:

    I have a real problem with my understanding of photo.

    I am producing a slideshow on my travels in Asia over the period 2008-2015.

    All the photos are in individual folders by year. I also arranged their by the date.

    My problem is: the photos are listed in descending order.  I need them in increasing order - first photo of the last picture taken on a given date.

    With photos or anything else:

    You can sort the files in a folder by clicking on the header of the
    field you want to sort, such as the Date.

    You can reverse the sort order, down to bottom-up,
    or vice versa, by clicking on the header a second time.

  • How to set horizontal scrolling to horizontal field Manager when fields are added using a loop for?

    The following code snippet contains a horizontal field Manager to which are added five buttons.

    1. I can't the value of horizontal scrolling to horizontal management Manager because of who I am not able to access the keys 4 and 5.

    2. usually, we put horizontal scrolling in the following way:

    container = new HorizontalFieldManager(USE_ALL_WIDTH|HORIZONTAL_SCROLL|HORIZONTAL_SCROLLBAR);
    

    3. so I also tried setting of horizontal scrolling in the following way

       container = new HorizontalFieldManager(Manager.HORIZONTAL_SCROLL|Manager.HORIZONTAL_SCROLLBAR)
                {
    
                    protected void sublayout(int maxWidth, int maxHeight) {
    
                        Field field = null;
                        int x = 0;
                        int y = 0;
                        int maxFieldHeight = 0;
                        int maxFieldWidth = 0;
                        for (int i = 0; i < getFieldCount(); i++)
                        {
                            field = getField(i);
                            layoutChild(field, maxWidth, maxHeight);
                            setPositionChild(field, x/*width-field.getWidth()*/,y);
    
                            x+=field.getWidth();
    
                            maxFieldWidth = maxFieldWidth + field.getWidth();
                            System.out.println("field width"+field.getWidth());
                            System.out.println(" max field width"+maxFieldWidth);
    
                            if(i==0)
                            {
                                maxFieldHeight = field.getHeight(); // height set of the first button since all components have the same height
                            }
                        }
                        System.out.println("final max field width"+maxFieldWidth);
    
                        setExtent(maxFieldWidth, maxFieldHeight);
    
                    }
                };
    

    but it's not working.

    4 I found this property: (position) horizontalFieldManager.setHorizontalScroll; that contains the parameterioo where the post is supposed to be the new horizontal scroll position. I tried passing the coordinate x of horizontal field Manager, but it does not work. I should pass as a parameter position?

    HorizontalFieldManager container = new HorizontalFieldManager()
    {
        protected void sublayout(int maxWidth, int maxHeight)
        {
            Field field = null;
            int x = 0;
            int y = 0;
            int maxFieldHeight = 0;
            for (int i = 0; i < getFieldCount(); i++)
            {
                field = getField(i);
                layoutChild(field, maxWidth, maxHeight);
                setPositionChild(field, x,y);
                x+=field.getWidth();
                if(i==0)
                {
                    maxFieldHeight = field.getHeight(); // height set of the first button since all components have the same height
                }
            }
    
            setExtent(Display.getWidth(), maxFieldHeight);
    
        }
    };
    
    ButtonField button1 = new ButtonField("Button1");
    ButtonField button2 = new ButtonField("Button2");
    ButtonField button3 = new ButtonField("Button3");
    ButtonField button4 = new ButtonField("Button4");
    ButtonField button5 = new ButtonField("Button5");
    
    container.add(button1);
    container.add(button2);
    container.add(button3);
    container.add(button4);
    container.add(button5);
    
    add(container);
    

    Need your valuable comments and suggestions. Please help me.

    I think that there is a bug in the sublayout (your HorizontalFieldManager 0 mode.  Given that the code did what I think WHAT HFM will do anyway, I recommend that you try to do this with a standard HFM, using this style:

    Manager.HORIZONTAL_SCROLL | Manager.HORIZONTAL_SCROLLBAR

    Let us know how you go.

    When I have more time I'll explain the bug, but if you want to investigate something, be aware that the maximum size that you can use in setExtent are the values that are passed to sublayout.  Compare the width as you try to define in setExtent whose width is increased.

  • I can't see the pictures in windows 7, the folder of the image in the library more images in my images. The few I managed to discover are red - terrible! Bring back the XP!

    I can't see the pictures in windows 7, the folder of the image in the library more images in my images.  The few I managed to discover are red - terrible!  Bring back the XP!

    Hi JenniferMaunder,

    ·         Did you do changes on the computer before the show?

    ·         What happens when try to view photos?

    ·         What is the format of the files?

    ·         You get the error message?

    ·         What application you use to see all the photos?

    Follow these methods.

    Method 1: Follow the steps in the article to see the photos with windows photo viewer.

    View and use your pictures in Windows Photo Viewer

    http://Windows.Microsoft.com/en-us/Windows7/view-and-use-your-pictures-in-Windows-Photo-Viewer

    Method 2: Update the latest display drivers.

    Updated a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    For reference:

    Photo management

    http://Windows.Microsoft.com/en-us/Windows7/managing-your-pictures

  • Reinstalled dreamwever cc and now my extensions are not displayed. Any ideas? PS when I open the extensions manager that they are there

    Reinstalled dreamwever cc and now my extensions are not displayed. Any ideas? PS when I open the extensions manager that they are there

    Hi the solution was that I had to reinstall all extensions, then they came. Thank you

    Sincerely

    Dennis Handa

    DHManagement and PR

    www.agentezsite.com

    www.businessezsite.com

    www.flarren.com

    www.keysluxuryliving.com

    321-956-4003.

    2601 Reed Avenue

    Melbourne, Fl 32901

  • I have a problem with CSS vertical align. Help!

    This could be an easy fix, I don't know... but I've been customized style BC Photo Gallery and lightbox on this site that I'm doing for a photographer and I got a problem with the vertical alignment.

    I created my own .css document to replace styles Viewer by default in British Colombia, and now all I'm left with tries to Center vertically the lightbox image. I googled some methods and tried, but had no luck...

    http://michaellaphotography.BusinessCatalyst.com/Gallery-pages/weddings

    Check out the link, and when you click on any thumbnail, you'll see what I mean.

    I know I can't use filling methods, because I work with pictures in portrait and landscape.

    Thanks for your help!

    The light therapy device you use made for the creation of a larger full size of the image.  As a general rule, if you have a portrait image that is larger that the screen of the user enough scroll a little more.

    If you temporarily remove the CSS for "img #lightbox" on line 20 of myStyles.css you'll see how lightbox works in native mode. This should be good since the user wants to zoom and see a bigger picture when they click on it and it will be as big as possible on their screen.

    Once you see what I mean with the changes, I can tell you how to make sure the portrait images do not expand to full height and beyond the viewport. Rather than delete the CSS "img #lightbox" statement like I said before, this time change for:

    #lightbox img {}

    Width: auto;

    height: 100%;

    }

    This will ensure the images in the light therapy device take 100% of the height of the lightbox container and the width dimensionnera automatically to keep the proportion of the image. Landscape photos will be large and landscape photos will not be larger than the viewport.

  • problem with the vertical field Manager

    Hello

    My application has a screen. On this, I add a Senior Manager vertical field. I add new labelfields dynamically to this vertical field Manager.  When I give the text in the constuctor of the etiquette field, each of them is the fine display. But when I tried to draw the text to the painting, it does not appear.

    Here is my code...

    vfm = new VerticalFieldManager(VERTICAL_SCROLL | FOCUSABLE);
            for (int i = 0; i < 4; i++) {
                index = i;
                LabelField labelField = new LabelField() {
                    protected void paint(Graphics graphics) {
                        // TODO Auto-generated method stub
    //                  super.paint(graphics);
                        graphics.setColor(Color.BLACK);
                        graphics.drawText(displayString[index], 0, 0);
                    }
                };
                vfm.add(labelField);
            }
            add(vfm);
    

    Please help me find a solution.

    First of all, stop saying that it is VerticalFieldManager who has done something bad for you. It has nothing to do with it.

    You use the index in your LabelField painting method. Use paint value is the current value of the index at the time of the painting. Painting happens way after you have created all your LabelFields, when the index stopped to change and has the last value of the loop variable (in your case, it's 3).

    This, as well as LabelFields width zero (that you seem to have supported) so are the problems of your original code. Store the value of i in your LabelField somehow if you insist on using the table values. If only check out you them once and do not change them, consider creating your LabelFields with the text from this displayString table.

    Even better: as you do not use the LabelField paint, why not create a custom field received a text and paint your smileys and all? Of course, you have to implement available as well, but it's useful even when your smileys will take a different width than the corresponding symbols.

    To summarize: your current approach is bad. Take a step back, work on the design, and then implement.

  • problem with the vertical field Manager / vertical scroll

    Hello

    I've set up a screen which makes use of a vertical field Manager by using the following code:

    class Main_Menu extends MainScreen {
    
        public class FixedWidthButtonField extends ButtonField{
            private int width;
    
            FixedWidthButtonField( String label, int Width){
                super( label, Manager.FIELD_HCENTER);
                width = Width;
            }
    
            public int getPreferredWidth(){
                return width;
            }
        }
    
        public Main_Menu() {
            setTitle(new LabelField ("Main Menu Screen", Field.FIELD_HCENTER));
            setStatus(new LabelField ("Breakout Game ©", Field.FIELD_HCENTER));
            VerticalFieldManager backgroundManager = new VerticalFieldManager(Manager.USE_ALL_WIDTH|Manager.USE_ALL_HEIGHT|Manager.NO_VERTICAL_SCROLL)
            {
                protected void paint(Graphics graphics) {
                    graphics.setBackgroundColor(0x0000A2E8);
                    graphics.clear();
                    super.paint(graphics);
                }
            };
    
            FixedWidthButtonField playButton;
            FixedWidthButtonField instructionsButton;
            FixedWidthButtonField topScoresButton;
            FixedWidthButtonField quitButton;
    
            playButton = new FixedWidthButtonField("Play",(Display.getWidth() / 2) - 80);
            instructionsButton = new FixedWidthButtonField("Instructions",(Display.getWidth() / 2) - 80);
            topScoresButton = new FixedWidthButtonField("Top Scores",(Display.getWidth() / 2) - 80);
            quitButton = new FixedWidthButtonField("Quit",(Display.getWidth() / 2) - 80) {
                protected boolean navigationClick(int status, int time)
                {
                    getScreen().close();
                    return true;
                }
            };      
    
            playButton.setMargin(40,0,0,0);
            backgroundManager.add(playButton);
            instructionsButton.setMargin(10,0,0,0);
            backgroundManager.add(instructionsButton);
            topScoresButton.setMargin(10,0,0,0);
            backgroundManager.add(topScoresButton);
            quitButton.setMargin(10,0,0,0);
            backgroundManager.add(quitButton);
    
            add(backgroundManager);
        }
    }
    

    The problem I have is that the screen scrolled down to see the empty space after the final touches, and I can't seem to overcome this problem and prevent additional scrolling. I just want the ability to scroll the 4 buttons and have a blue background on the entire screen.

    Thank you

    Just quickly, so watch migth have wrong, but if you have a good overview of this very useful article:

    http://supportforums.BlackBerry.com/T5/Java-development/MainScreen-explained/Ta-p/606644

    I think you will find that you need to add the following at the beginning of your screen manufacturer:

    Super (NO_VERTICAL_SCROLL)

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

  • With the help of vertical area for a LogScreen Manager.

    I don't know, I must be doing something wrong here, can someone me hint. I am doing as a logscreen using vertical field Manager and adding my logs for the Manager as labelfields, but the screen doesn't seem to be scrolling beyond the front view.

    class LogScreen extends MainScreen{
    
        VerticalFieldManager screenManager = new VerticalFieldManager(Manager.VERTICAL_SCROLLBAR | Manager.VERTICAL_SCROLL);
    
        LogScreen() {
            this.setTitle("DEVELOPER LOGSCREEN");
            for(int i=0;i<=40;i++)
            {
                screenManager.add(new LabelField("This is an annoying test to understand the vertical field manager"));
            }
            add(screenManager);
        }
    
    }
    

    A field must be active in order to allow scrolling.  You can create your LabelFields with the style of the FOCUS or add an active NullField between your LabelFields.  The NullField will not visible to the user, but will scroll.

  • Problem Manager on...

    I have two pages on the first page of my application consist of a single button, if you click the button, then it has to go to the next screen. In the second screen, I used my own fieldmanager customvertical with the verticalScroallable occupying half of the screen and the Manager of this vertical field consist of ten boxes. The problem that I am facing is when I navigate to the second screen of the first screen, I see my own verticalfield Manager, but all the checkboxs are riding... When I click on the outside of the own vertical fieldmanager that all things are prepared in a proper way.

    Hey Stef... I am really thankful to you buddy... How can I get the result i'm waiting...

    Kind regards

    s.Kumaran.

  • problem Manager p1a42 vibe p1 Contact save contacts in Arabic

    I am facing some problems with the contract manager
    1. when to use sim card to save contacts in Arabic only except 8 figures, workes .it smoothly until the first reboot then contact show that 8 Arabic numerals
    2 numbers are dublicted in a single contact
    3. very slow in the call log to update of last call
    4. the search option carried over from their efforts to limit the search looking for spasfic counts o all accounts, - contacts for search-

    Note from the admin; edited to be more descriptive subject

    After the update contacts don't open details if less 500m.b of ram
    When I open the contact it showing white screen
    Call log still takes time to think about the last call
    Saved contacts a delay to appear in future calls
    All contacts a dublicted he numbers auto

  • HP/Compaq nc6400 laptop: HP/compaq nc6400 Windows 10 and graphic problem, erasing text in areas of immersive shell.

    I have a laptop nc 6400 product number: RB518UT #ABA uses an ATI mobility Radeon x 1300 graphics card, as well as Intel (r) mobile express chipset available 965 G. I chose to use Classic desktop windows at the moment and no problem at all now. I don't know about Vsync or 2D with any partbut I disabled it Aero, windows 'themes' clear the text, mosaic with not a spec left shaows WHEREAS I could think of and still the text clears using my own slider like gum or disappears and leavesablank. Alsooccasionaly gibberish are more black lines not only any official language, but today I thought that almost a nonsense post script type to some... in some mobile tiles that can refresh, but even that does not work as it always has... I am at a loss I need a decent graphics that I use photoshop and dreamweaver allt/times a day and at least they need to exploit as much as possible. I had no problem with their execution on this computer for the past 4 years or more. It has been now 4 OS on this big machine that has not had any problems over the past 7 years. He 4gig memory and 750 GB hard drive and lack of wellis touchscreen but... not worry Windows when they checked all this to check.  I am beyond my capabilities and need help. Even if I need to build my own divers I Although it will not be the fastest answer, but I can see the need to know how the alter pilots an asset right about now.  Please you all the

    suggestions will be an asset, as I am a "what to do now the level of frustration"and would like that much more about the reason for it. " I was just as lucky as my machine has never had issues that were close to that sort of thing.

    TY for any help, answers, all possible assistance, you may think.  I hope that I have provided a clear problem, and most of the information you need. I never used a service like other instances, that raising any issues that others have as well.  Always helping if I wasn't sure but never as difficult a question as is happening now.

    Ty for any possible assistance or suggestions that can point me in the right direction.

    egcorrell

    Hello:

    The only suggestion I can offer would be manually install the graphics driver Vista support for your laptop and driver, page and see if it works...

    BTW, the nc6400 has the mobile Intel 945 chipset, not the 965.  The 6910p has the 965 chipset.

    Download and run this driver... You will probably get an error of unsupported operating system.

    http://h20565.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=1847705&swItemId=ob_59975_1&swEnvOid=2103#tab1

    Conclusion of any windows error.

    Go to Device Manager and click on the video controller (or Microsoft based Display Adapter) who need drivers.

    Click the driver tab.

    Click on set to update driver.

    Select her browse my computer for driver software option and navigate to the folder of the driver that was created when you ran the file.

    This file will be located in C:\SWSetup\sp38833.

    Make sure that the include subfolders is selected and see if the pilot goes like this.

    Then restart.

    If your nc6400 has this problem with the SMSC Infrared driver with the! Marc, I went into the BIOS, found the menu of Ports and disabled the infrared port, saved and restarted.

    That got rid of the problem of device.

    I don't know of anyone who uses the infrared port anyway.

Maybe you are looking for

  • An automator workflow is running, and I'm not.

    Years, I wrote an Automator workflow to rename the files that I placed on the desktop. Now, I want to get rid of this workflow, but I can't find it anywhere! It runs whenever something happens to my office, and I want to remove it. When it runs, a di

  • iBooks PDF lost after updating to iOS 9.3

    After the update my iPad 2 Air 9.3, all my PDFs in iBooks iOS have disappeared. Someone at - it suggestions on how to recover them?

  • Toshiba 37BV701G - where to find the latest firmware

    Hi, I would like to update my TV firmware. Current is 0.3.5.a. I can't find the file to download. Thank you

  • Automatic Windows update fails to download

    update request to insert the disc for Office 2002 looking for file EXCLUSIVELY. MSI. I have office 2003. There is no file on the disk. Update cancelled by saying - the following updates were not installed Office XP Service Pack 3

  • Flash Player Adobe does not work so I can't see Youtube videos!

    My computer will not run Adobe Flash Player.  After several times to download the Flash Player download update, I get an error message about a missing system file.  Can someone help me diagnose and fix this problem, so that I can see the Youtube vide