easy question - position of ScrollBar in listbox problem

Hello once again

This time, my question is simple...

is there a way to set the initial position of a vertical scrollbar to a listbox?

sometimes - if I make more runnings - remain in memory the last position... and if the new listbox is smaller, then the last i see a white listbox and I think that something was wrong in my program


Tags: NI Software

Similar Questions

  • Easy question

    When file sharing / information wirelessly between the computer connected to my network via my home wireless router, not information trip computer to the router to the second computer or information travels from computer to the router via the modem and then return via the modem to the router and then to the second computer?  I hope that it will be an easy question for someone.  Thank you.

    File on your network as you transfer the describe does not mean the modem, router and computer, any computer.

  • Rule to the CSS style question: positioning of block next to the image level

    Hello

    I have this site for example: http://www.ecstechnics.com/modules/page.phtml?dimensionid=18 & pageid = 24 and I had a previous question on this topic: http://forums.adobe.com/thread/427154?tstart=0. Here, I asked for a way to draw a line of fixed length under a header < h1 > (resolved) and a way to draw a line under a heading < h2 > where the line was shortened by an image inline (left or right header, as can be seen in the example of the ecstechnics.com site).

    The problem however is not yet solved for an image on the LEFT of the header. With the above solution and a fixed width line, this line is inspired right through the image to the left.

    I need a solution for a header that is positioned to the right of the image (which I'm floating on the left) and where I want the line to start under the first letter of the heading and extends to the border of the container.

    Thanks for the tips.

    Erik

    From time to time, this is the best approach (question to rephrase in a new thread). But give the existing question some time for people to see. A few hours on a weekend is not generally enough time.

    I did that cause confusion. My apologies, it won't happen.

    Cool. It was kind of fun playing Hunt the answers in the nets - this time only! ;-)

    I hope that this is the method of work (one that we it was).

    --
    Mark A. Boyd
    Keep-on-Learnine :-)

  • Question the security of Apple ID problem

    Hello

    Don't know if I've put this in the right section because it seems not to be Apple support, but nobody knows what can be done if you do not know the answer to your security questions when prompted that I had a problem with conflicting apple accounts I want to sort? I tried to contact apple only to satisfy with "we're sorry. We are unable to respond to your request at this time. Please try again or come back later. "I have"come back later"and there is just no change. I don't even have a number to call in situations like this. It would be helpful if they used randomly different security questions at different times, but they do not. Are the only ones they ask "Where was your favorite job?" and "where was your least favorite job? One or both tell me that my answers are wrong. I don't have an email from rescue set up in situations like that. Anyone has any ideas on what to do?

    Thanks in advance.

    There is a contact link.

    Apple ID support

    Apple ID support (2)

  • ListBox problem highlighting

    I'm having a problem with a listbox in 7.1.1.  I have 'item 1' game selection mode.  Sometimes the item highlighted in the list box is changed manually with a mouse click, and sometimes it is changed programmatically.

    My problem is that sometimes shading that indicates the selected item is "blocked" on a selection, so that the previously selected and the new element, are both put in evidence.  This happens with the selected element manual and programmatic changes.  Over time, several elements are highlighted.  The program corrects itself when the scroll bar of the listbox control is moved.  (Programs properly other functions.)

    It seems that it is a matter of labview, which is fine, but I'll give a try to rework my program.  Or maybe there is a work around to prevent it.  I tried to put some functions of waiting and sequence structures in different places to give labview more time to change the Fermata, but nothing seems to work.  ??

    Thank you!

    Greg

    Who could have a bug in the version 7.1.1 of LV

    Hide/show or node invoke > get picture sometimes helps get LV to refresh the screen.

    Ben

  • Impossible yet easy question to answer (shells)!

    So, I have this huge problem that no one seems to be able to answer. Can't find any clear information online, from motorla no youtube, no forums, not anywhere...

    The question: is there shells for motorcycle g who feels rubbery as the original shell black? Bought a shell but it feels much more plastic and not at all rubbery.

    I don't speak of the hull of the grip...

    How can it really be difficult to find information about this...?

    No problem, the reason why there are two lots is simply because I think that Motorola wrong the first time. Or just a lot of complaints from customers that remove fingerprints from the back is too hard. I don't know why they made him difficult.

    Like to know where to buy the new batch... Well, you'll just have to ask the service customer of the place were you wan't to buy them.

    I live in the Netherlands and here they sell also through shell retailers I contacted them and included the picture of this post and said: if I buy this shell you can assure me that it is the new batch with money M.

    So, my best bet is just to email Amazon customer service and explain your story and include the photo and ask if they can send you the new batch of those who, if they have of course.

  • Can cause of Google Chrome that any general Windows questions as screen freeze or startup problems? Thank you.

    Recently installed Google Chrome and started to add some PC problems. This could be a coincidence, but I was wondering if the Chrome can somehow interfere with the operation of Windows. Thank you for any light on the topic.

    Hi Anoop,

    Thanks for your reply. I checked the links you recommended, but did not find anything of note when I checked the logs events or performance. (I can't seek enough carefully.)

    Fortunately, the problem disappeared in the past few days and he can not Google Chrome to what has caused the occasional screen freezes. To answer your questions, Frost moved not just with Google Chrome, there is no error message and I have not recently updated the latest drivers.

    In any case, at the moment seems to agree, and if a conflict between Windows and the Chrome is not a good experience then it's probably just a coincidence that I met problems with my shortly after its installation.

    Once again, thank you for your help.

    Kevin.

  • using the App: variable scrollbar help and problems

    It is a large amount of code, but please bare with me please.  I would really appreciate the help!

    If I write a financial application where the user enters the initial investment, the compound interest rate period and duration of investment and it calculates the value.  Here is my code: each "screen" that appears on the emulator is its own class:

    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.UiApplication;
    
    public class FinanceApplication extends UiApplication
    {
        //VARIABLES FOR THE INVESTMENT GROWTH
        public double initialInvestment;
        public double interest;
        public int compoundPeriod;
        public int investmentLength;
    
        public static void main(String[] args)
        {
            FinanceApplication firstApplication  = new FinanceApplication();
            firstApplication.enterEventDispatcher();
        }
    
        public FinanceApplication()
        {
            //OPENING SCREEN FOR INVESTMENT GROWTH
            pushScreen(new Screen1());
        }
    
    }
    
    //SCREEN 1 INPUTS *INITIAL INVESTMENT*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen1 extends MainScreen implements FieldChangeListener
    {
    
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
    
            menu.add(_close);
        }
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 1 METHOD
        Screen1()
        {
    
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Homepage ~ Initial Investment", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nThis application acts as a an investment or growth calculator.  The user inputs the amount of money he or she would like to invest originally, input the interest, the compound period, the regular monthly deposit into the investment, and the time her or she will have the investment and this application will calculate how much the investment will be worth.\n\n Please enter initial amount of money you are depositing into the investment.\n$XX.xx", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELDS TESTING!!!!
    
            //INPUT FIELD W/ BORDER
            BasicEditField _input = new BasicEditField();
    
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.DARKGREEN;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _input.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_input);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField pressButton = new ButtonField("NEXT");
            pressButton.setChangeListener(this);
            _fieldManagerButton.add(pressButton);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            // PROBLEM IS HERE, I WANT WHATEVER IS TYPED INTO _input TO BE SET AS THE VARIABLE initialInvestmentFinanceApplication.initialInvestment=_input;
    
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen2());
    
        }
    
    }
    
    //SCREEN 2 INPUTS *INTEREST*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen2 extends MainScreen implements FieldChangeListener
    {
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
            menu.add(_home);
            menu.add(_close);
        }
    
        private MenuItem _home = new MenuItem("Home Page", 110, 10)
        {
                public void run()
                {
                    onHome();
                }
        };
    
        public boolean onHome()
        {
            Dialog.alert("Homepage Selected");
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen1());
            return true;
        }
    
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
    
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 2 METHOD
        Screen2()
        {
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager();
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Page Two ~ Interest", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nNow please enter the interest that will be put on this investment", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELD W/ BORDER
            BasicEditField _input = new BasicEditField();
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.DARKGREEN;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _input.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_input);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField pressButton = new ButtonField("NEXT");
            pressButton.setChangeListener(this);
            _fieldManagerButton.add(pressButton);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen3());
        }
    }
    
    //SCREEN 3 INPUTS *COMPOUND PERIOD*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.ObjectChoiceField;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen3 extends MainScreen implements FieldChangeListener
    {
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
            menu.add(_home);
            menu.add(_close);
        }
    
        private MenuItem _home = new MenuItem("Home Page", 110, 10)
        {
                public void run()
                {
                    onHome();
                }
        };
    
        public boolean onHome()
        {
            Dialog.alert("Homepage Selected");
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen1());
            return true;
        }
    
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
    
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 3 METHOD
        Screen3()
        {
    
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager();
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Page Three ~ Compound Period", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);;
            LabelField _info = new LabelField("\nNow please enter the compound period.\npress spacebar to go through the choices:", LabelField.USE_ALL_WIDTH);;
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //OBJECT CHOICE FIELD
            String choicestrs[] = {"Weekly", "Bi-Weekly", "Monthly", "Quarterly", "Annually"};
            ObjectChoiceField choice = new ObjectChoiceField("Compound Period: ", choicestrs, 0);
    
            //ADD PAGE, INFO, OBJECT CHOIE TO FIELD
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(choice);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField press2Button = new ButtonField("NEXT");
            press2Button.setChangeListener(this);
            _fieldManagerButton.add(press2Button);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen4());
        }
    }
    
    //SCREEN 4 INPUTS *LENGTH OF INVESTMENT*
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.BasicEditField;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class Screen4 extends MainScreen implements FieldChangeListener
    {
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
            menu.add(_home);
            menu.add(_close);
        }
    
        private MenuItem _home = new MenuItem("Home Page", 110, 10)
        {
                public void run()
                {
                    onHome();
                }
        };
    
        public boolean onHome()
        {
            Dialog.alert("Homepage Selected");
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new Screen1());
            return true;
        }
    
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
    
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 4 METHOD
        Screen4()
        {
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager();
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager();
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager();
            HorizontalFieldManager _fieldManagerButton = new HorizontalFieldManager();
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Page Four ~ Investment Length", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nNow please enter how long you will have this investment for?\nPlease enter the amount in months:", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELD W/ BORDER
            BasicEditField _input = new BasicEditField();
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.DARKGREEN;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _input.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
            add(new SeparatorField());
            add(_fieldManagerButton);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_input);
    
            //CREATE BUTTON TO NEXT PAGE
            ButtonField pressButton = new ButtonField("NEXT");
            pressButton.setChangeListener(this);
            _fieldManagerButton.add(pressButton);
    
        }
    
        //BUTTON FIELD CHANGE: ACTIONS
        public void fieldChanged(Field field, int context)
        {
            UiApplication.getUiApplication().popScreen(this);
            UiApplication.getUiApplication().pushScreen(new InvestmentWorth());
        }
    }
    
    //INVESTMENT WORTH
    
    package com.rim.samples.Finance;
    
    import net.rim.device.api.ui.Color;
    import net.rim.device.api.ui.DrawStyle;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.FieldChangeListener;
    import net.rim.device.api.ui.Font;
    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.MenuItem;
    import net.rim.device.api.ui.UiApplication;
    import net.rim.device.api.ui.XYEdges;
    import net.rim.device.api.ui.component.ButtonField;
    import net.rim.device.api.ui.component.Dialog;
    import net.rim.device.api.ui.component.LabelField;
    import net.rim.device.api.ui.component.Menu;
    import net.rim.device.api.ui.component.SeparatorField;
    import net.rim.device.api.ui.container.HorizontalFieldManager;
    import net.rim.device.api.ui.container.MainScreen;
    import net.rim.device.api.ui.container.VerticalFieldManager;
    import net.rim.device.api.ui.decor.Border;
    import net.rim.device.api.ui.decor.BorderFactory;
    
    public class InvestmentWorth extends MainScreen
    {
    
        //DECLARE MENU BUTTONS
        protected void makeMenu(Menu menu, int instance)
        {
    
            menu.add(_close);
        }
        private MenuItem _close = new MenuItem("Close", 110, 10)
        {
            public void run()
            {
                onClose();
            }
        };
        public boolean onClose()
        {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
        //SCREEN 1 METHOD
        InvestmentWorth()
        {
    
            HorizontalFieldManager _fieldManagerTop = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            VerticalFieldManager _fieldManagerMiddle = new VerticalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
            HorizontalFieldManager _fieldManagerBottom = new HorizontalFieldManager(Manager.VERTICAL_SCROLL | Manager.VERTICAL_SCROLLBAR);
    
            //SET TITLE: FINANCIAL APPLICATION
            LabelField title = new LabelField ("Financial Application", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            Font titleFont = this.getFont().derive(Font.BOLD | Font.ITALIC);
            title.setFont(titleFont);
            setTitle(title);
    
            //SET PAGE & INFO TEXT
            LabelField _page = new LabelField("Homepage ~ Initial Investment", LabelField.USE_ALL_WIDTH | DrawStyle.HCENTER);
            LabelField _info = new LabelField("\nHere is the worth of your investment:\n", LabelField.USE_ALL_WIDTH);
    
            //INPUT FIELD W/ BORDER
            LabelField _worth = new LabelField();
            XYEdges padding = new XYEdges(10, 10, 10, 10);
            int color = Color.BLACK;
            int lineStyle = Border.STYLE_SOLID;
            Border inputBorder = BorderFactory.createRoundedBorder(padding, color, lineStyle);
            _worth.setBorder(inputBorder);
    
            //ADD FIELDS AND SEPARATORS
            add(_fieldManagerTop);
            add(new SeparatorField());
            add(_fieldManagerMiddle);
            add(new SeparatorField());
            add(_fieldManagerBottom);
    
            //ADD PAGE, INFO, INPUT
            _fieldManagerTop.add(_page);
            _fieldManagerMiddle.add(_info);
            _fieldManagerBottom.add(_worth);
    
        }
    
    }
    

    So when I run on the emulator, on Blackbery 8520 SDK emulator, it doesn't let me scroll upwards on the first screen to see the rest of the text, it's like the cursor on the button sticks or editing field base so it wont allow to exceed upwards the button or basic edit field , but I can scroll between them.

    Second problem is trying to address (as defined in the first class) variables to different edit fields so when something is typed in (double), it is placed in the variable to use in the rest of the program.  I want to make sure the basic edit fields only allow "double" number entered, otherwise it displays a message 'incorrect type '.   Please help me with this, or give me some advice.

    I would REALLY appreciate it.

    LabelFields will display several lines later the OS, so maybe this isn't a problem.  However, LabelFields are by default not active, so you can't scroll on them.  RichTextFields are active by default.  So either change your LabelFields for et focusable (style LabelField.FOCUSABLE) pr change to RichTextField, as the previous poster suggested.

    I do not understand your second question, what are the numbers 'double '?

    However, I was watching the styles FILTER_ that you can use to BasicEditField or watch extending TextFilter to check the characters that they are entered.  I suspect TextFilter is the right way to go, but I've never done anything like this.  But having a good overview in this field and classes that extends.

  • should be an easy question

    I'm brand spankin' new to Photoshop and I'm stuck. I have an image in grayscale I try to add a few splashes of color paint for. I have installed brushes and stuff. My problem is that when I try to add a color paint, once I have selected the paint color I want, the color turns to gray. I tried to change the mode to RGB image or another option, but then it still won't let me paint with color. This is for me the dialog box 'could not to use history brush because the current color mode does not correspond to that of the State of history"

    Photoshop version is CS5. I hope it's an easy answer, I really appreciate the help

    It seems that if you use the History Brush tool and not normal Tool brush which is above it in the Toolbox. They don't look similar.

  • positioning &amp; lt; div &amp; gt; s problem on Firefox/Netscape

    Hello

    I'm building a site in CS3, it's a simple layout form CSS header and then two passes, then footer. You can visit the site at www.tthonline.co.uk/LBTC - where I have a responsible trial version while I Finnish up stable and get some other content created.

    DW said the code valid and only throws up a couple of compatibility issues - everything that it says could give IE problems - but they do not. My big problem is that, for reasons I can't understand, FF and Netscape set my main content path right - I played with various combinations of CSS positioning to try to solve this problem, but I don't see why it will present not the site as IE does - everything in a box nice 760px neat

    Other small issues are evident with the layout in these browsers too - like the bar behind my main menu - which renders correctly and relight them only (sorry - as expected) on IE as the position of the footer.

    A kick in the right direction would be appreciated creatly.

    Well - despite the deafening silence of the group - thanks guys n girls, I solved my problems - all the bar for which the 'response' was just to delete this - life is too short!

  • Question Express airport w / AP Extreme problem

    Summary...  My extreme AP gen 5 died today. Loss of Internet connection and after vicissitudes of shooting during a certain time that is as it works but not of connectivity. Thought it might be my new provider, even if the performance has been very good for 2 weeks.  Fixed prob was on my end after a call to customer service to see if he had reported outages and also wiring my modem to my iMac. I had the extreme as the main router wireless and wired AP expressly as an Extender. To get a temporality rear wifi, I use the Express instead of the extreme for the night.

    Now my question, if I replace the extreme with another brand of router, can I get a hard wire to Express the other side of the House and use it as an Extender?  I'm prob looking to get a new extreme, but I saw a few new routers about the same price with 8 Sockets Ethernet.  I have most of my game and hard devices streaming already wired with a switch so I can get with the 4 Ethernet ports, just to think about the future because I'll eventually add a configuration of the camera and maybe another game console. Thank you

    ... can I get a hard wire to Express the other side of the House and use it as an Extender?

    Yes. An Express configured to expand "using Ethernet" don't worry this device creates the network. A network "wireless" is a different matter.

    I would not place too much importance on the number of Ethernet ports any particular router offer. Eight ports Ethernet switches are inexpensive.

    I guess you did a "hard reset" of your extreme before giving up on this subject, and you also to reset the cable or DSL modem? They don't die that easily. The most common failure mode is the power supply, indicated by a dark light. The "hard reset" is the gold standard to resurrect the extreme apparently failed, so make sure that you have correctly completed:

    On "hard reset" an AirPort Base Station: Make sure it is turned on, then press gently and his tiny reset button. Do no force more than necessary to feel a tactile click. Hold it down for five to ten seconds, enough until the LED flashes orange rapidly. Release the reset button. Then the led amber for about a minute. Then it will blink slowly, amber, once per second or two, you wait to set it up with AirPort Utility.

  • TZ400 concerns - probably easy questions

    Hello, as I set up my new device I came across a few things that appear worthy of the question.

    1. that I added in my WAN IP addresses, I use several public IP (address objects) the system seems to automatically apply a subnet mask of 255.255.255.255, which is incorrect.  The system also does this for my IP WAN X 1 and the gateway by default under (address objects) even if I put X 1 WAN to have a netmask of 255.255.255.240

    2 should I use (address objects) for all of my destination LAN IP addresses. It doesn't seem intuitive and should be another way?   When creating a new access rule for WAN LAN destination does not allow me to just add an IP address, I have to create a destination, and then name it.

    3. is the correct way for the addition of multiple WAN IP to create a (object Address) for each IP and then use NAT policy to each?

    You need not create the address for each WAN IP address object before you can create a rule from WAN to LAN.

    Simply use the wizard 'Public Server Guide' (top-right corner), and it will ask all the necessary information.

    Greetings,

    Jasiel

  • BlackBerry smartphones frozen screen, possibly an easy Question

    Hi all, I tried to read the FAQ before asking this question, but they do not seem to work now.

    I had my Storm for a little over a week and the screen completely froze and becomes scrambled all by sending a text message.  I restarted the storm by plugging the charger and now it will not load even upward.  I received an error once, which then froze again the screen.  After that, I tried to reboot again, and he brings just to the top of the screen (sometimes garbled, as well) Verizon Wireless.

    Is there a way to fix this without doing a hard reset (and lose all my data)?

    Try this:

    Leave the appliance to charge 2-3 hours and then, always toujours relie connected to the USB cable, remove the battery from the camera a few seconds and plug it back. If it starts - let - the charges to 100% (check the Options > status for the percentage).

    If it does not start - try using a wall charger if you're not. If you are connected via USB to the computer, make sure that you have Desktop Manager (or USB device drivers), you can download it below.

    Make sure that your USB cable is connected to one of the main rear USB ports of the PC. A USB hub, or USB Monitor port not a USB port on the front of the PC.

    Download Desktop Manager here:
    https://www.BlackBerry.com/downloads/entry.do?code=A8BAA56554F96369AB93E4F3BB068C22

  • Questions: Re-installation of Photoshop CS3, problem: "a license for this product has stopped working".

    My old computer has Photoshop CS3 (and Illustrator CS3) installed.  The old computer is dead. I did a Time Machine backup from another computer of backup", who had both of these installed applications.  (2 installs is allowed).  I have records of origin for both applications.  My new Mac lacks a DVD player.  So, I downloaded two applications from Adobe.  Photoshop: I launched the installer, & Photoshop CS3 is not installed.  Then I installed the Photoshop.  When Photoshop is launched, I got the dialog box: (((a license for this product has stopped working.  You cannot use this product at this time.  You must repair the problem by uninstalling and then reinstalling this product or contact your COMPUTER administrator or Adobe customer support for assistance. ()) Adobe fails to phone support for CS3 products.

    How can I get Photoshop CS3 to work?  (And Illustrator CS3)

    Hello

    Please follow error: "License has stopped working". Mac OS

    Hope that helps!

    Kind regards

    Sheena

  • positioning in the new ellipse problem layer

    I created the new layer in my document, then a new ellipse within that layer.

    I am positioning the new ellipse in the upper layer (vertically) and in the center of the layer along the x-axis (horizontal).

    Nothing I have tried seems to move the left object to the starting x position layers (I can move it just fine!).

    I'm confused because my high properties and the height of the layer are negative numbers - but when I look at the ruler, all are above zero?

    What I am doing wrong in terms of positioning of the ellipse in the layer?

    Here is a sample of my script:

    var childLayer = currentLayer.layers[j];
    var xmin = childLayer.pageItems[0].geometricBounds[0].toFixed(2); // top
    var ymin = childLayer.pageItems[0].geometricBounds[1].toFixed(2); // left
    var xmax = childLayer.pageItems[0].geometricBounds[2].toFixed(2); // bottom
    var ymax = childLayer.pageItems[0].geometricBounds[3].toFixed(2); // right
    
    var newBoneLayer = boneLayer.layers.add();
    newBoneLayer.name = childLayer.name.replace(OBJECT_MARKER, "");
    var halfOfWidth = parseFloat(childLayer.pageItems[0].width/2).toFixed(2);
    var boneGuideXPosition = parseFloat(xmin + halfOfWidth).toFixed(2);
    var boneGuide = newBoneLayer.pathItems.ellipse(ymin,boneGuideXPosition, 10.0, 10.0, true, false);
    
    boneGuide.stroked = true;  
    boneGuide.filled = true;  
    boneGuide.opacity = 40.0; // set to 40% opacity
    var newRGBColor = new RGBColor();
    newRGBColor.red = 204; 
    newRGBColor.green = 255; 
    newRGBColor.blue = 255; 
    boneGuide.fillColor = newRGBColor; 
    

    Sorry my bad.

    even in my script, it should be...

    var x = AB[0]+((AB[2]-AB[0])/2);
    

Maybe you are looking for