New bug in drop-down list in 0.9.2?

Hi guys,.

could someone confirm this new bug:

I create a menu drop-down again:

iceCoDD1 = new DropDown();
iceCoDD1.rowHeight = 40;
iceCoDD1.rowCount = 8;
...
iceCoDD1.dataProvider = new DataProvider(CoTypes);
addChild(iceCoDD1);

But I don't want this drop-down list to be editable at any time, so I used the following commands in 0.9.1 to toggle the menu drop-down:

iceCoDD1.enabled = true;

iceCoDD1.enabled = false;

Disabling still works, but re-locking does not work. It has no effect. The element remains Gray and unclickable.

Is this a bug or expected behaviour?

The second thing 'strange', that I noticed about qnx, drop-down menus, which was already present in 0.9.1 is positioning (z-index). The open menu is displayed behind all elements that were added after the drop-down list (addChild). I currently use this ugly workaround (at the end of my GUI function):

...
setChildIndex(iceCoDD2, numChildren-1);
setChildIndex(iceCoDD1, numChildren-1);

biggerCC,

RE: the problem with the menu drop-down appears behind all other components defined after him:

Why did you write this code snippet (below)?  could not just do addChild (iceCoDD1) as the last statement in your function so that the drop down menu is before all other elements?

just to be clear, I don't oppose not what you did - I have the same problem with the fall down, and I'm just trying to understand why you coded this...

setChildIndex(iceCoDD2, numChildren-1);setChildIndex(iceCoDD1, numChildren-1);

Tags: BlackBerry Developers

Similar Questions

  • RH7: Project showing only Times New Roman in drop-down list of fonts

    Hello

    I have problems with a project which has been very well a few weeks ago. For now, the only option in the drop-down list selection of fonts is "Times New Roman"... a nice font, but we write our documentation in Arial, so it takes a little that for the moment we can't select any font for our documents, only TNR.

    I'm not very experienced with HR, but I checked the style sheet (seems to be linked properly and the content is the same as style sheets to projects that have no problems), the models seem ok too... I'm puzzled.

    Other things happening (apparently at random):

    -new themes are created without associated style sheet

    -new topics have TNR 12 as default font size (our models wear 9 Arial)

    -old open subjects without a style sheet; Add in the HTML code required for the style sheet doesn't seem to help.

    All this happened on my colleague PC, I can't replicate them on mine. Whatever it is, on our two PC the only display of fonts is TNR.

    This can be important: projects have been added recently to Robo SourceControl. Can it be linked to that?

    I'd appreciate any help, especially since we have a big release coming next week and all documentation must be in top form by then

    I have reproduced this problem by deleting the file rhfontset.apj in a test project (and the removal of the DPC). Theoretically, you should just be able to copy the file from one of the samples project.

  • Download the news of a drop-down list for a field of text box

    Its that simple! That's all I need to know! The code to add to the information in a drop-down list (_cb) to a text field. I need to know wear put on the script IE in the action on the _cb layer. Your all!

    on the timeline that contains your combobox with instance name _cb that you can use:

  • How to remove entries or register a new in the drop-down list of the Anyconnect client?

    I have a user who uses Anyconnect for quite awhile now, and we have activated the ASA profiles a few times over the past year.

    My client seems very well, but maybe also because I have a new laptop without the previous hidden settings.

    The problem: old entries in the 'box' connection to still appear and if I type a new entry it will connect but not save it as a connection profile.

    If I start from scratch by uninstalling the client, ranging on the external right site (vpn.mydomain.com), it will automatically install the customer very well yet.  But the client install still just shows the old entries and not the correct (what should the list as vpn.mydomain.com).

    I deleted the entries in personal profile under c:\users\username\appdata\local\Cisco and that to remove an entry, but the other is still there and I can't find where on the system, it is stored.

    However, the great thing is that it does not save the correct entry of vpn.mydomain.com in the list of connections, so the user must either enter it and click on connect manually or if they have to go to the website https://vpn.mydomain.com and connect via the site itself.

    Any ideas on how to get this fixed so that his client only shows the correct host in the customer?

    On Windows, see C:\ProgramData\Cisco\Cisco AnyConnect guarantee mobility Client\Profile. profile entries must complete this directory.

    New connections should add profiles or you can construct one manually using the following simple model, replacing it with your values where I typed xxxx:

    http://schemas.xmlsoap.org/encoding/">."

    xxx

    xxx.xxx.xxx.xxx

    SSL

    There are many more entries in option, but it's a bone at naked one.

  • Show drop-down list field hide selection in another drop-down list box

    Hello I need to create two drop-down fields on a dynamic PDF in LiveCycle. The first field contains three choices. When a user selects an item in the drop-down list first I would like to a new field of drop-down list has been shown. For each item in the first drop-down list appears a new field drop-down list with unique values. If the user chooses blue drop-down list of blue shades indicate in this menu drop-down will be various shades of blue to choose for. If the Red is chosen, Shades of Red dropdown with appearance and if yellow is displayed the same occurs. Also if the user must go back and change their selection in the first drop-down list, they can do the same. Any suggestions?

    Thank you in advance.

    There are 2 ways you could do this. The first is just to have the 3 drop-down lists for the second box to separate and do them all hidden. The output of the first dropdown event would then have the code that would make it the second box become visible, something like (in formcalc):

    If ($ == 1) then

    dropdownRed.presence = "visible".

    dropdownBlue.presence = "hidden".

    dropdownYellow.presence = "hidden".

    ElseIf ($ == 2) then

    dropdownRed.presence = "hidden".

    dropdownBlue.presence = "visible".

    dropdownYellow.presence = "hidden".

    ElseIf ($ == 3) then

    dropdownRed.presence = "hidden".

    dropdownBlue.presence = "hidden".

    dropdownYellow.presence = "visible".

    endif

    The other option is just to have a dropdown that dynamically changes its options based on the results of the first box. So in the second box preOpen event you might have something like (in formcalc):

    If (dropdown1 == 1) then

    $. clearItems()

    $.setItems ("light red, dark red")

    ElseIf (dropdown1 == 2) then

    $. clearItems()

    $.setItems ("sky blue, dark blue")

    ElseIf (dropdown1 == 3) then

    $. clearItems()

    $.setItems ("light yellow, dark yellow")

    endif

  • create the mailing list option missing from 'File', 'New' drop-down list in the 38.3.0 version

    Hi all

    I'm trying to create a mailing list using the steps described in the online documentation, but the "Mailing List" does not appear in the fly-out drop-down list. What I am doing wrong?

    In addition, what is the best way to import a mailing list I have in Eudora?

    TIA

    straysaver

    Thank you for your response. New list appears, under address book.

  • How to disable the address drop-down list when you write a new?

    I don't want my previous addresses drop-down list when I start to write a new one.

    • Firefox (Tools) > Options > privacy > address bar: when you use the location bar, suggest: nothing
  • Contacts drop-down list in new email Outlook 2007

    When I open a new email and click on the: type a letter in the name I want a drop-down list appears.  This list is added whenever I get a new email address.  I found that it is not connected to the contacts folder. How can I remove the names from this list.
    How to activate the small book icon left of the Word address to: and CC:

    I have windows XP with Office 2003, which had presented the program of upgrading compatibility added.  This problem has been most always good there.
    Help, please

    Hello

    To remove these name, you highlight (Type the first character and press the arrow down) the name falling down and press Delete on the keyboard, it will remove the name of the cache.

    If you want to remove / clear the entire list, you need to delete *.nk2 file in your C:\Documents and Settings\change

    I hope this helps.

  • bug in the drop-down list

    I want to retrieve a value that I select my drop-down list. When I run my plants of code with the debugger to step to retrieve the index of the selected item. Please help if you are looking for a problem

    public class Day extends MainScreen {
    
        public ObjectChoiceField hourField;
        public  String day[]= {"Monday","Tuesday", "Wednesday", "Thursday", "Friday", "saturday", "sunday"};
    
        public Day()
    
        {
            super();
            LabelField title = new LabelField("DAY",
                    LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);
            setTitle(title);
            add(new RichTextField("Choose the day"));
            add(new SeparatorField());
    
            ObjectChoiceField listday = new ObjectChoiceField("Days :", day);
            add(listday);
    
        }
    
        MenuItem Validate = new MenuItem("Validate", 100, 0) {
            public void run() {
    
                int i =  listday.getSelectedIndex();
                String str = (String) hourField.getChoice(i);
    
                UiApplication.getUiApplication().pushScreen(new Show());
    
                UiApplication.getUiApplication().popScreen(getScreen());
    
            }
        };
    
        protected void makeMenu(Menu menu, int instance) {
    
            menu.add(Validate);
    
            super.makeMenu(menu, instance);
        }
    
        public boolean onClose() {
            Dialog.alert("Goodbye!");
            System.exit(0);
            return true;
        }
    
    }
    

    Thank you for all

    I solved it I just replaced

    ObjectChoiceField listday = new ObjectChoiceField ("days:" day);
    Add (listday);

    with

    listday = new ObjectChoiceField ("days:" day);
    Add (listday);

    Thank you arkadyz

  • drop-down list new folder option is no longer on the desktop

    Hello dare how Yall are

    I got a few Yes troubel

    drop-down list new folder option is no longer on the desktop

    I don't know what to do dat

    Thank you Sha

    You have installed chrome? It is an update of Chrome, (mid), is responsible. Here are two patches.

    How to remove and restore the default context Menu items 'New' in Windows 7 and Windows 8
    http://www.SevenForums.com/tutorials/28677-new-context-menu-remove-restore-default-menu-items.html

    If still no joy, see the 'response' by Linda Yan in this thread.
    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/thread/97de8a2a-12f2-4381-A409-a78f4ae551cf/#99395761-56de-4a76-8C2A-eab498ad735a

    Tip: When you save the text in Notepad, the default file format is .txt. Replace all files.

  • I don't like the new drop-down list of suggestions, how can I disable it?

    for some reason now in google search bar, there are suggestions of sites in a drop-down list when I type in the search bar. I don't like, it just started and I would like to know how to disable

    Thank you

    Heidi

    Disable search suggestions by right clicking the text field in the search bar and remove the mark in front of "Show Suggestions".

    Click the search engine button and open "manage search engines".

    At the bottom of this window, there is a box of [X] "see search suggestions."

  • Drop-down list conditionally new drop-down list

    Hello world

    I am very bad at Java, I can usually get good reading but don't know enough syntax to write anything.  I read to the last hours of the couple and can not find any tutorial or the discussion for the script that I am creating.

    I want to have a dropdown menu with 3 options: phone, Email, Fax

    If the user selects by e-mail or fax drop-down list of other is hidden

    If they user selects phone I want another set to appear with 3 options such as cell phones, home, office, so they can choose which phone

    If anyone can point me in the right direction or help me with a script, it would be greatly appreciated.

    I found some scripts by using the checkboxes and I tried to adapt to this, but I'm not sure if I select both boxes when you change the script or only one or the other.

    Thank you!

    PS I use 8.0

    The text of your drop-down entries matching the text you have in the script in the stated case? Its case.

    Otherwise might be easier to view the form somewhere and can take a peek

  • New to LiveCycle.  Need help with drop-down lists.

    I just started playing with LiveCycle with PDF Forms.  One thing that I wonder if it is possible to do the link of the selections available in the drop-down lists.  For example, on a form with one question on this subject, I have 5 possible answers as the "ranking of your favorite in the order of most loved at least liked fruits".  Then I have a series of 5 drop down list with the first box containing boxes "Apple, pear, fishing, strawberry, grapes.  Is it possible to have someone to make a selection in the first box, their fruit in the list, and then the second box would have four options to choose?  Say if apple was their favorite, only, pear, fishing, strawberry and grape would be selection?  I tried to find an answer, but I'm afraid I don't know enough about the capabilities of LiveCycle, and/or how to work with scripts (I think that's what I see people using).  If someone could take the time to try to push myself through this, I would appreciate it, of course.

    Here's a form to date. I had to get help from a programmer friend, so it is a code evolved. I used a script object to reduce the volume of code.

    Take a look and let me know what you think.

    Paul

  • How to clear a drop-down list box

    OK, been awhile, here goes:

    I have a combobox non-Edition and 3 radio buttons.

    When I select a radio button, I have reset the items in the list and run:
        category.getSelectionModel().clearSelection();
         category.setValue(null);
    The intent is a new list, nothing pre-selected and invited him to display in the text box (?). And it seems to work at first.

    However, when I select the original square, the first list is restored, and the drop-down list box shows my original selection!

    I would like that the prompt as in other radio buttons. I can not even find where the initially select value is stored! It SEEMS that the selection is cleared, as the value, it's the control renderer displays always a selection, even if the previous list, he showed the guest
         templateToggle.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {
                @Override
                public void changed(ObservableValue<? extends Toggle> ov,
                        Toggle old_toggle, Toggle new_toggle) {
    
                    if (templateToggle.getSelectedToggle() != null) {
                        final String tmplType = ((RadioButton) templateToggle.getSelectedToggle()).getText();
                        Preferences.userNodeForPackage(Evidentia.class).put(Const.O_TMPL_TYPE,
                                tmplType);
    
                        Platform.runLater(new Runnable() {
                            @Override
                            public void run() {
                                category.getSelectionModel().clearSelection();
                                category.setValue(null);
                                category.getEditor().setText("");  << was getting desparate
                                ListManager.getInstance().setTemplateCategoryList(TemplateDao.getInstance().findCategories(tmplType));   << template list is the list behind the combo
                            }
                        });
    
                    }
                }
            });
    Thoughts?

    Published by: edward17 on 8 April 2013 11:20

    Published by: edward17 on 8 April 2013 17:11

    Published by: edward17 on 8 April 2013 17:12

    This looks like a bug: you must file a JIRA for her.

    As you said, the State seems to be correctly updated: getSelectionModel () .getSelectedIndex () and getSelectionModel.getSelectedItem () return the correct value.

    The only solution I can find is to define an explicit Circus on the drop-down list box and call setText (null) on the circus to clear the displayed selection:

    import java.util.HashMap;
    import java.util.Map;
    
    import javafx.application.Application;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.collections.FXCollections;
    import javafx.collections.ObservableList;
    import javafx.scene.Scene;
    import javafx.scene.control.ComboBox;
    import javafx.scene.control.ListCell;
    import javafx.scene.control.RadioButton;
    import javafx.scene.control.Toggle;
    import javafx.scene.control.ToggleGroup;
    import javafx.scene.layout.HBox;
    import javafx.scene.layout.VBox;
    import javafx.stage.Stage;
    
    public class SwitchableCombo extends Application {
    
      @Override
      public void start(Stage primaryStage) {
        final Map> comboData = new HashMap<>();
        comboData.put("Beer", FXCollections.observableArrayList("IPA", "Stout", "Porter", "Dubbel"));
        comboData.put("Wine", FXCollections.observableArrayList("Cabernet Sauvingnon", "Zinfandel", "Merlot", "Malbec", "Pinoit Noir"));
    
        final ComboBox combo = new ComboBox<>();
        final ListCell buttonCell = new ListCell() {
          @Override
          public void updateItem(String item, boolean empty) {
            super.updateItem(item, empty);
            setText(item);
          }
        };
        combo.setButtonCell(buttonCell);
        final HBox buttons = new HBox(5);
        final ToggleGroup toggleGroup = new ToggleGroup();
        for (String type : comboData.keySet()) {
          final RadioButton button = new RadioButton(type);
          buttons.getChildren().add(button);
          toggleGroup.getToggles().add(button);
        }
        toggleGroup.selectedToggleProperty().addListener(
            new ChangeListener() {
              @Override
              public void changed(ObservableValue obs,
                  Toggle oldToggle, Toggle newToggle) {
                final ObservableList items = comboData.get(((RadioButton) newToggle).getText());
                combo.setItems(items);
                combo.getSelectionModel().clearSelection();
                buttonCell.setText(null);
              }
            });
    
        combo.getSelectionModel().selectedIndexProperty().addListener(new ChangeListener() {
              @Override
              public void changed(ObservableValue obs,
                  Number oldValue, Number newValue) {
                System.out.println(newValue);
              }
            });
    
        combo.getSelectionModel().selectedItemProperty().addListener(new ChangeListener() {
              @Override
              public void changed(ObservableValue obs,
                  String oldValue, String newValue) {
                System.out.println(newValue);
              }
            });
    
        VBox root = new VBox(15);
        root.getChildren().addAll(buttons, combo);
        primaryStage.setScene(new Scene(root, 200, 400));
        primaryStage.show();
      }
    
      public static void main(String[] args) {
        launch(args);
      }
    }
    
  • Problem with drop-down list: under Windows, it works, on Mac is not

    Dear forum,

    I'm reworking the script MultiPageImporter2.5 by Scott Zanelli; going to add new features.

    So far, I added a drop-down list so that the user could choose which pages to put a pdf/indd file: odd/even/as well.

    my dialog box.jpg

    However, I encountered a strange problem: on Windows, it works as expected, but on Mac, nothing happens when I click on the shortcut menu. When I write a dialog box, I almost always use the automatic layout and never encountered such a problem before. But in this text the author uses a fixed position for the controls so I followed his style of coding:

    dLog.pageSideMode = dLog.pan4.add('dropdownlist', [10,110,180,40], ["Odd and Even Pages", "Only Odd Pages", "Only Even Pages"]);
    dLog.pageSideMode.selection = pageSideMode;
    

    The drop-down list is visible both on Windows and Mac, but on a Mac, it is not clickable. What I am doing wrong?

    Another question: in the script, the author has created three pop-up windows. In the code, each popup has a different height (the last element of the array 'limits') - 60, 88, 33. Does make sense to make them different if on the screen they are exactly the same (I mean height).

    Here's my version of the script.

    I think the easiest solution for me here is to rework the part fixed dialog for automatic layout.

    Thanks in advance.

    Kasyan

    Hello

    I don't think you're doing something wrong. If you change the vertical position of the popup to 90, the popup works if you click at the top, not if you click on the bottom.

    I think that you have found a bug in the previous DAY.

    P.

Maybe you are looking for

  • Apple Store does not not in Apple TV 4 gen

    I bought today 4gen Apple TV, everything works except the App Store after I have updated to the latest operating system, when I go to buy / download any app, I do a click in one of them to download and the application does not open. You can click wit

  • Biometric Coprozessor need driver for Satego X 200?

    What driver is needed for this biometric thing? Computer laptop satego x 200 - 21 d I ve looking for hours...:(

  • Slow down the loading of the Web page after installing updates

    HP Pavilion dv9743cl Notebook PC / Windows Vista / Internet ADSL Hello! I am new to the community and I really hope that someone can help you. Last Friday (04/01/2013), I installed an update for Flash Player and Windows Defender Update definition.  E

  • Why can't I open some .dll files?

    I have an old computer a file called atmcd32d.dll that says typotheque labview vi. When I open it it shows me a library of functions of vi that I need to operate an instrument. I downloaded the drivers updated from the site of the instrument and the

  • Pagefile.sys: it can be turned off the C drive?

    I'm running out of space on C:, and I think I read somewhere that the system works better if the pagefile is not on the same partition as the operating system.  No matter what I do there still seems to be a file called pagefile.sys on drive C.  I use