Ask field repositioning and screen layout reset

Hello!

I am confronted with 2 questions:

1. I have a table constructed using ListField and there are cases where the width of the table is longer than the width of the screen of the device. For this reason, I want to move the table to the left or the right. I do it by keeping a variable shiftX and on navigationMovement I increase / decrease this shiftX with a positive / negative. Then this variable shiftX is used in Manager of ListField in sublayout by calling the setPositionChild method. I have to ask the Manager of re-paint call manager.invalidate () once I set variable shiftX. The problem is that manager.sublayout () is not called upon in this case. To force repaint them (and sublayout), I delete the ListField, add it back anf then call manager.invalidate (). But this solution seems ugly to me and it slightly affects the user experience as X-moving is a little laggy.

2. by the first question:

The manager that contains the ListField has following structure:

HorizontalManager - where I put a colorful header.

Label - text

Table - created using ListField

The scope of the list is vertical scollable and if I scroll to the last line, the screen only shows me the last line only (due to the scrolling). If I scroll to the first line I see the first line of the table, but I can't see the HorizontalManager (the screen header) and the label, only the ListField. I tried to make it the active HorizontalManager, but it does not help also. The only solution that works (gets me to the initial state) is to remove the listfield, add it again and then call manager.invalidate (). But once again, it seems ugly and hacky. What are my options?

Kind regards

Gunnar

1. I did something similar, but I actually dealt with the shiftX in my drawListRow.  In the case that I had, the data were given text, then I moved to left and right a character at a time, although of course I could have painted the drawListRow on a Bitmap and then moved to the pixel with a treatment at the time.

2. the best way I think is to have the 'head' in a part not scrolling and scrolling of the Table, so that the header is still visible.  If this isn't what you want, then put a Null field above you HorizontalFieldManager.  He is active, so will take focus, so the screen scrolls upward.  A hack, but I still think a hack better remove the ListField.  You can also make the active header.

Tags: BlackBerry Developers

Similar Questions

  • What is the best way to manage fields on a screen to draw in paint () or manage through managers and their layout() method?

    Hi all,

    Sorry if this is a stupid question, but I'm kind of confused because of my friends on my code examination. I just thought that this forum is the right place have the answer

    I develop a very simple screen but I m using feeders to quidon all the placement of objects on the screen.

    I has a high HFM which has 2 tags that is exterme right and the other is on the far left of the hfm screen.this is added to the screen

    There is a value for money including two labels and two basicEditFields.

    There is an another HFM which has two button in what should be at the centre of the screen.

    This button HFM is add in the optimization of the resources that are directly added to the screen

    Now all the alignment of the manipulated by the sublayout methods of the manager.

    According to my friends, I should HAV done this VIA object not via too many Manager and their layouts...

    I want to know are right? or you can suggest a better way?

    Concerning

    In General, having too many managers slows down things. It is generally recommended to have as little as possible nesting Manager.

    That being said, your friend is too complicate things. Managers are there for a reason and you use them for good reasons (to quickly, glancing at your description, this can be done via a single Manager custom without using a lot of nesting of the optimization of the resources/HFM).

    Managers will take care of the tune-up, scrolling, etc.. Fact all through painting is stupid for this use case.

    With the help of de facto managers save time, makes it easily manageable code, reduced the number of errors and makes things simpler to support/extend in the future.

    There are cases where the surrogate object and made everything yourself is preferable, is not. For this particular case, your friend is wrong.

  • I returned my iPhone5 to factory default and gave it to my granddaughter.  She wants to download games etc but the itunes store guard asking my ID and PW.  How can she save herself?  I received and email to say that PW tried to reset

    I returned my iPhone5 to factory default and gave it to my grand daughter as a Christmas gift.

    • She wants to download games etc but the itunes store guard asking my ID and PW.
    • How can she save herself?
    • I received and Apple to say that someone had tried to reset my password by e-mail.
    • It is probably her mother because she also asked me to tell him my PW and ID.
    • I currently use my PW and ID on my new 1Phone6 and do not want to share this.

    Can you please help.

    Julie Bateman

    She needs to log out of your Apple ID in the store and just connect with hers. Go to settings, iTunes and App Store and tap on the Apple ID, then select Disconnect.

  • Back to the screen with reset

    Hi people,

    in my application, there are two screens:

    -screen--> a listfield with several check box and button

    -screen B

    Users can select the checkboxes and can push a button that call anti-pop method with new screen B as an argument. When users escape in screen B key, it automatically returns to A screen with already activated checkboxes.

    My question is, how do I return to the screen in its original state (unchecked checkboxes and cuestions another)?

    I hope that I explained

    Thanks in advance,

    Kind regards!

    F.F.: Sorry for my English

    Try like this example:

    Example of display:

    public class Def extends MainScreen
    {
        public Def()
        {
            createGUI();
        }
        public void createGUI()
        {
            EditField editField=new EditField("Enter: ", "");
            add(editField);
    
            ButtonField click=new ButtonField("Click", Field.FIELD_HCENTER);
            click.setChangeListener(new FieldChangeListener()
            {
                public void fieldChanged(Field field, int context)
                {
                    UiApplication.getUiApplication().pushScreen(new SamplePopupScreen(Def.this));
                }
            });
            add(click);
        }
    }
    

    and the popupScreen is:

    public class SamplePopupScreen extends PopupScreen
    {
        Def def;
        public SamplePopupScreen(Def def)
        {
            super(new VerticalFieldManager());
            this.def=def;
            createGUI();
        }
    
        private void createGUI()
        {
            add(new LabelField("Popup Screen",Field.FIELD_HCENTER));
            //Write your code to display on screen;
        }
        public boolean onClose()
        {
            def.deleteAll();//These three steps are for reset the screen;
            def.createGUI();
            def.invalidate();
            UiApplication.getUiApplication().popScreen(this);
            return super.onClose();
        }
    }
    

    Enter something in the edit field, and then press the click to see the difference that the screen is reset or not;

  • Re: Tecra M9 and screen compatibility

    Hello

    I was wonderuing if anyone knew if a M10 screen is compatible with a model M9 that I have been informed that the M9 screen became EOL and cannot be imposed.

    Thank you
    Peter

    Hey,.

    I think that this question can't be answered here because it s only a user to user forum. In this case, you will need to ask a service provider authorized or let's say a laptop technician. They should be able to tell if the screen fits.

    By the way: year ASP can order all the original parts of Toshiba and a display for Tecra M9 I also think. Just ask for this and they will try to help you.
    On the Toshiba site, you can search for an ASP.

  • Substantive themes of screen and screen savers

    Hello

    I tried to copy a profile to another user by using the Advanced Settings tab of the user profiles on a WinXP SP2 desktop computer--> and while other settings such as DESKTOP shortcuts have been through, I didn't see parameters as the 'Background Desktop themes and screen savers' movement overall.
    Is this a normal behavior when copying user profile? OR what can I do to ensure that the 'Background Desktop themes and screen savers' cross!

    Thank you
    D

    Aubie

    Hello

    I tried to copy a profile to another user by using the Advanced Settings tab of the user profiles on a WinXP SP2 desktop computer--> and while other settings such as DESKTOP shortcuts have been through, I didn't see parameters as the 'Background Desktop themes and screen savers' movement overall.
    Is this a normal behavior when copying user profile? OR what can I do to ensure that the 'Background Desktop themes and screen savers' cross!

    Thank you
    D

    Aubie

    Hello

    On what you want to transfer? Did you select only migrate settings orfiles or both ?

    Here's a video on how to use file transfer Wizard and what you can and what not:

    http://Windows.Microsoft.com/en-us/Windows7/transferring-files-and-settings-frequently-asked-questions

    NASS - http://www.nasstec.co.uk

  • I tried the clean boot and now the hard drive works simply and screen went black. The mouse still moves around the screen without any outher work keys? That is what it is?

    I tried the clean boot and now the hard drive works simply and screen went black. The mouse still moves around the screen without any outher work keys? That is what it is?

    Hello

    You will need to reverse the clean boot, as it is either incidental compared to
    the real cause of the problem. What, where you try to fix initially using the cleanboot?

    You can access Mode safe? Repeatedly press F8 as you start? If so you can try the configuration - control panel
    The Device Manager - graphics card - Double click on - driver tab - click the driver UPDATE - then
    Right click on the device and UNINSTALL - REBOOT.

    Another method to try to get to the desktop (try in normal Windows Mode without failure) is
    CTRL + ALT + DEL and the processes tab find EXPLORER.exe and COMPLETE the PROCESS on this subject - and then
    on the Applications tab - lower right - new task - type in EXPLORER.exe. Safe mode is reached
    by tapping F8 as you start several times.

    First check this thread in case it is simple and if not to come back to this thread.

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/50247d5e-0ae0-446c-A1bd-11287fd1478a

    Black screen problems are extremely difficult to repair and all patch is usually on a base hit or miss.
    That there is no information on a black screen as it is on a blue screen just adds to the
    Difficulty. Often using a restore point or Startup Repair will have no effect. You can try a
    Google to see the proposed repairs, whom some have worked however these cover a wide
    field efforts.

    Here's a video of one of them.

    http://www.Google.com/search?hl=en&q=black+screen+of+death+Vista&btnG=search&AQ=f&OQ=&AQI=G1

    Here's another fix
    http://blogs.PCMag.com/SecurityWatch/2008/12/the_mysterious_black_screen_of.php

    You have a Vista disk? You can try restoring the system to it. If you don't have the disks your
    system manufacturer will sell them at low prices. Or try in safe mode if you can get there.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    You can create a recovery disc or use someone even version (making the system restore it)
    must be bootable).

    How to create a Vista recovery disk
    http://www.Vistax64.com/tutorials/141820-create-recovery-disc.html

    ------------------------------------------------

    These require the correct Vista discs since you can not start safe mode.

    Try the Startup Repair tool-

    This tells you how to access the System Recovery Options and/or with a Vista disk
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    Try recovery options Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    -----------------------------------------------

    Here are a few Google searches where many have found different solutions:

    Vista black screen - check that a 1st
    http://www.Google.com/search?hl=en&source=HP&q=Vista+black+screen&AQ=f&OQ=&AQI=G10

    Vista black screen Solution
    http://www.Google.com/search?hl=en&q=Vista+black+screen+solution&AQ=f&OQ=&AQI

    Vista black screen Fix
    http://www.Google.com/search?hl=en&q=Vista+black+screen+fix&AQ=f&OQ=&AQI

    -----------------------------------------------

    If necessary and you can access all ordinary Windows.

    You can try an In-Place Upgrade (hopefully save programs and data) or a repair installation
    (if all goes well, the data records and need to reinstall programs). Don't forget to make a good backup or
    3.

    You can use another DVD that aren't copy protected but you you need to own
    Product key.

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    If nothing works, you can do a repair installation that needs to save the data, but you will
    to reinstall the programs. This also requires correct Vista disks especially for OEM versions. You
    will need to know your product Code.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    ---------------------------------------------------------------------------

    Another method that works sometimes: at the command prompt, type of Vista startup disk:
    (type in a single line or copy / paste a line at a time and then press enter - enter a bracket )
    or "BOLD")

    c:

    cd\

    CD c:\Windows\System32\winevt (there is a space between cd and C :)

    Ren LogsOLD Logs (there are spaces between ren and newspapers and Logsold)

    RESTART Windows

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How do you determine the steps to use when they need to change the info in the diaglog box "WINDOWS SECURITY" of win 7, which asks the user and the password?

    My background: I can only see this dialog box titled WINDOWS SECURITY when I want to access my log to router with my office router connection. The dialog box refers specifically to my router, and asking a user and a password.

    A long time ago that I asked to remember and, of course, I forgot it and the location that I wrote. Now I am unable to determine what I thought, would be a simple reset and the steps that allow me to perform a reset. After a series of search phrases on Bing, and in the community of the SP as well as Win 7 Pocket administrator index I can't find the steps because the dialog box, it seems with the title of the WINDOWS SECURITY is too general.

    I need to install a new router and need to change the user and password. I don't know if user and password are unique to the company of router or Microsoft Win 7. Nevertheless, I can reset thinking them they are unique to me and Microsoft because there is no query such as, "you forgot your password?', whereby get you a temporary.  These steps are already stationed in the community and I just can't get into the research phase right? (What is related to IE 11?) Thank you.

    > I need to install a new router and need to change the user and password.

    Do you want to connect to your old router?  If Yes, most routers have built-in switch you tripping with a paper clip or similar to force a reset to the factory settings.  You can then access the default connection.

    If it's the new router, it should be accessible with the factory default login. If you don't know please post that make the exact and the model of the router.

  • I have a LOT of different Indesign CS6 documents that are field guides, and I would be able to export only the names of species (bold italic)

    Hello

    I'd appreciate any help I can get.  I have a LOT of different Indesign CS6 documents that are field guides, and I would be able to export only the species names (in bold italics) of documents so that I can put in excellent to make a comparison and produce a comprehensive list.  There are several areas of text for each page/species.  The species name is in a single text box, so it is possible to somehow only the bold italics to export a document?  I have a bad feeling, but I thought I'd ask anyway. Thanks in advance for your time and interest.

    Maggie

    Also, sorry if my original question has not obtained the Chief... I'm new to this forum.

    It would certainly be a job for a written custom script. Without scripts, I might consider using the Index feature in InDesign. Indexing is manual work very well.

  • I can't add some widgets to a page of screen layout. What Miss me?

    I am using HR 10.0.1.292. I am able to add most of widgets on screen for a phone screen provisions, but there are a few that are grey. When you use the editor in design mode screen layout, widgets that are not available in the toolbar are:

    -Results of the research area and the area of search results (small screens)

    -Topic

    -Browse all the widgets of sequence

    What step am I missing to get these permits?

    You can use one of the widgets in search results once a page layout. You have probably already used either of these widges on a page. The page where you add this widget automatically becomes the page containing all search results.

    You can use the widget theme once a page layout. Happens with widgets in search results. Of course, a thematic page can host no search results, and vice versa.

    The BRS buttons should be available on all pages, except the one with the search results wiget (but I'm not 100% sure this limitation). Functionally speaking, you should only use BRS widgets on the page with the widget of the topic.

    Take a bow

    Willam

  • Transitional and clear picture reset event

    Hello

    Sometimes, we create the transient table so that the data stored in RAM, and the attached event is "Claire on Reset."

    That is why I would ask why we need CLEAR ON RESET event attached to the transient data? Because on the reset of the card, things on the RAM will be automatically deleted. It seems redundant to have the LIGHT ON RESET event.

    Could you specify using the event CLEAR ON RESET in this case?

    Thank you

    Mike

    He is there to differentiate clearly on the cmdlet to clear and reset of the card. If you did not have a flag, they would all be clear about reset.

    See you soon,.
    Shane

  • If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?

    If you ask the question and then choose a solution, the thread will be closed or still can you ask more details?
    (sometimes, someone answers my question, and I want to mark it as the solution and am not yet quite ready for the thread be closed...)

    If you still experience this issue, you can return to this thread.
    But, you must clear the flag solved .

  • Retrieve text messages from old iphone with another carrier and its been reset?

    Is it possible to retrieve text messages from old iphone with another carrier and its been reset? I have an iphone 4 that was with att then I switched to tmobile and I reset it as I was planninging on selligg, but I face some legal issues and I was wondering if it was still possible to be able to retrieve these messages? I also have an iphone 4S that I used after that id like these old messages tmobile too and I am currently usin g an iphone 5 c If anyone knows or can help make em let me know please thanks

    If you have a backup of the 4 from iTunes or iCloud, messages can be in there.

  • I asked a question and I received a confirmation e-mail; where can I find my question?

    I asked a question and I received a confirmation e-mail; where can I find my question?

    Your message would have provided you with a link. But you can find your comments and answers to them via the 'My Contributions' link. (you must be logged in)

    https://support.Mozilla.com/questions?filter=my-contributions

    You will find at the top of the page by removing the question number leaving

    https://support.Mozilla.com/questions/

    More tips by clicking on my profile, Avatar, or my name to the left of this message.

    This message was also sent to your Inbox, if you see it here first, then you will see a small black box with the number of messages unread in it next to the "Inbox" in the upper part where you see your name or when you "Sign In" or Out. David McRitchie

  • Y at - it a lens which corresponds to Iphone 6 + with case and screen shield attached?

    Does anyone know of a lens wide angle for Iphone 6 + which allows that you keep the protector case and Iphone screen still in place? Most of those I've seen State the case and the shield cannot be still attached.

    Thank you

    As each case and screen protector can be a size and a different shape, I doubt there will be an iPhone lens that could correspond with them on.

Maybe you are looking for