Ring control with Tree view dropdown

Is there a programming language that allows dropdown structured with collapsable sections to avoid this kind of very long list? How would we call this kind of control?
Is there a way to do this in LabVIEW?
So a control that shows the selected item only, when we click the arrow button it would show the tree control to let user select his value.

I'm not aware of any, but I don't see any reason in principle why it couldn't be done.
The simplest solution to this is to use a combo box, which gives you the ability to type and does auto-complete.
A more involved one is this (comes from this idea), which allows you to filter the list by typing.
You could do a tree in an XControl, but the major problems with XControls is that:
They need to be contained inside the control owning them. This is actually slightly irrelevant, because if you look at these drop-downs, they actually tend to be separate windows, which aren't even constrained by the window which calls them (also seen in your example). That means the best option might be for the XControl to run another VI to serve as the tree. Which brings us to #2:
There is no "focus lost" event for controls or windows, so there's a problem with deciding when to dismiss the dialog. The easiest solution is to make it modal. Another one might be to try to register for window messages or to do something like polling the Is Frontmost? property of the VI.

Similar Messages

  • Table with tree view on master column

    Hi,
    I'm trying to generate a table with tree view on the master column and I get the table values from an RFC.
    The problem is that I need to control some properties like "expanded" or "isLeaf" and I can't add the value attributes to the model node to control the rows.
    Any ideia on how to overcome this (what i  think is a) problem?
    Thanks for the help.
    Pedro Barbosa

    Hi Subramanian,
    Maybe I didn't explain myself right. I also followed that tutorial with success but in this case i have on my custom controller:
    -MyNode (model node)
      - Output
        - MyTable
          - attribute 1 (model attribute)
    In my context/view controller the only way i can map that node is by using a model node referecing "MyTable" but this way i can't add any of my attributes to same level of the attributes (is that the ideia right?).
    I also tried to recreate the structure in the view with value nodes and value attributes with the same type as the model attributes and then bind them but i always get "Incompatible context element type".
    Am i missing something?
    Pedro Barbosa

  • Issue with Tree view

    Hello experts,
    I am facing a very strange issue with tree view.
    I have created a custom component with a tree view. All data are coming in the tree view. But the strange thing is that the data is not getting displayed on the screen.
    I am sure about the data because, when I am selecting a line from the tree, the data from that line is coming to the main screen.
    Please help!!
    Regards
    Debolina

    Hi experts...
    Any pointers to this issue???
    Please help!
    Regards,
    Debolina

  • SQL editor with tree view

    We are working on some extraordiary long SQL stored procedure. Due to the shear size and IF/ELSE nesting it is very tedious to understand the logic .
    What I am looking for is an SQL editor with tree view, where we can see IF/ ELSE, LOOP etc block as nodes. For example expand a node and see all blcoks of code within it.
    + IF block 1
    expand---
    -IF blcok 1
    +IF block 1.1
    +IF block 1.2
    further expand
    -IF blcok 1
    +IF block 1.1
    -IF block 1.2
    IF block 1.2.1

    Do some Google searches for a text editor that supports "folding".

  • File manager with tree view in main pane?

    I'm looking for a file manager with something similar to Nautilus' list view, with a list and tree structure as a main view.
    The nautilus one is awesome, but nautilus has qwerks if you don't use gnome (wants to control desktop, panels are very restricted, etc.)
    Does anyone know of a file manager with a view similar to this that I can try out?

    I've seen a few things on spacefm, and played with it a bit. Took me 3 minutes and 2 segmentation faults to find the setting to change views, and it still doesn't have the ability I want, so still a bit too buggy for me.
    Pcmanfm is a good all around filemanager, but doesn't have that feature either.
    I played with a slew of file managers one day looking for similar things, maybe I should try that again and branch out further than what's in the repos.
    More suggestions?

  • File Manager with tree view

    I've been using Cinnamon with the Nemo file manager for a while now but I'm wanting to remove Cinnamon and have only Openbox and Awesome installed. The only thing that's stopping me now is I'm unsure of what to use for a file manager. The feature of Nemo that I really like is the ability to show folders in tree view in the main pane when in detailed list view. I know that most of them probably have the tree feature in a side pane but I want it in the main pane.
    I'd like something with as few dependencies as possible since I'm wanting a more minimal approach to my system. Nemo requires Cinnamon, I'm guessing that Nautilus has the feature that I'm looking for as well but that requires Gnome.
    Can anyone recommend another file manager with this feature? Or is there any way to install Nemo/Nautilus without their desktop dependencies?

    drcouzelis wrote:It doesn't look like Nemo requires Cinnamon. What do you mean?
    claire ~ % pacman -Qi nemo
    Name : nemo
    [snip]
    Depends On : libexif gvfs dconf desktop-file-utils exempi python2
    cinnamon-desktop gnome-icon-theme libnotify libxml2
    cinnamon-translations
    I think this is what is meant.
    d72 wrote:Can anyone recommend another file manager with this feature? Or is there any way to install Nemo/Nautilus without their desktop dependencies?
    Not really, since those libraries are required to run the respective file manager.

  • [Win/CS3] Problem with tree view nodes display In Release Version of InDesign

    b [Win/CS3]
    Hi All,
    I am Facing a problem from last few days.I have a dialog on which i have a treeview ListBox.I am filling this listBox dynamically.On a Button click Event.
    My requirement is to show Some text value on the node and Index value on the back end.So When i select String1 the index1 should be Selected.
    b This Listbox is working fine ON Debug Version. But Crashing On Release Version.That seems Strange to me..........?????????
    b in DialogObserver::Update on button click event
    NodeID node = IDCGridNodeID::Create(IndexX);
    treeMgr->NodeAdded(node);
    b and in TreeviewMgr::ApplyDataToWidget
    TreeNodePtr<IDCGridNodeID> nodeID(node);
    PMString IndexNo= nodeID->GetName();
    I am going to database and retrieving string value according to that
    IndexNo.
    WCHAR Buf[200];// this contains value retrieve from database
    Then i am converting WCHAR[] to CHAR[] BY using
    size_t origsize = wcslen(Buf) + 1 ;
    const size_t newsize = 100;
    size_t convertedChars = 0;
    char nstring[newsize];
    wcstombs_s (&convertedChars, nstring, origsize, buf, _TRUNCATE);
    PMString StringToDisplay(nstring);
    //Till here its working fine
    But when i am setting this value as Node name
    style.Translate();
    setNodeName( widgetList, StringToDisplay, kIDCTVTextWidgetID );
    and function return kTrue; statement executed The application is crashing.
    With error showing
    b INdesign Encountered a problem Needs to close.
    I Am not able to find out why this is not working on Release while it is working fine on debug version..???????????????????
    Is I am missing or Made some changes For release version..????
    Thanks,

    Hi Michael,
    Thanks for your reply.
    The lines
    NodeID node = IDCGridNodeID::Create(IndexX);
    treeMgr->NodeAdded(node);
    are working fine for Both Debug N Release version.The Application Is crashing In tree view manager class as i explained.
    while it works fine without having even a single warning in debug version.
    I read the document and i find out if i want to add node in treeview i have to call
    treeMgr->NodeAdded(node);
    which will call manager
    b and in TreeviewMgr::ApplyDataToWidget
    i am getting my node name as
    TreeNodePtr<IDCGridNodeID> nodeID(node);
    PMString IndexNo= nodeID->GetName();
    I don't think that something is wrong in this but i am not sure becoz i am new in indesign development.
    for adding nodes i referred the SDK examples.I found the same code for adding.

  • Problem with tree view

    Hello and good morning,
    i´ve got a problem with a tree view in one of our web dynpro applications.
    The tree view act´s as a menu. For example:
    the highest element is: personal
    If you open personal you see:
    recruiting
    payment
    and so on...
    Our Problem is...
    You can open the tree element by clicking on the little box left from the tree-element text.But we want that the tree-element is also "line-sensitieve". This means, the next elements should not only appear by clicking the box, also by clicking simply the line.
    Is this possible.
    PS: Sorry for this bad application, but i don´t know how to explain it better

    method ONACTIONTOGGLE .
      data:
        Elem_Context                        type ref to If_Wd_Context_Element,
        Stru_Context                        type If_Menu_Tree=>Element_Context ,
        Item_IS_OPEN                        like Stru_Context-IS_OPEN.
    data parent_key type string.
        data children_loaded type wdy_boolean.
    data x_node type ref to IF_WD_CONTEXT_NODE.
    * get context via lead selection
      Elem_Context = wd_Context->get_Element(  ).
    * get single attribute
      Elem_Context->get_Attribute(
        exporting
          Name =  `IS_OPEN`
        importing
          Value = Item_Is_Open ).
      if Item_Is_Open = abap_true.
        Item_Is_Open = abap_false.
      else.
        Item_Is_Open = abap_true.
      endif.
      Elem_Context->set_Attribute(
      exporting
        Name =  `IS_OPEN`
        Value = Item_Is_Open ).
    endmethod.

  • How to relate ring control with multiple codes

    Hello everyone,
    I've been searching everywhere without finding answer, please apologize if its already in a post. What I am trying to do is to gather different codes and put them together. These pieces of codes control certain devices and currently I am using different interfaces for each device, so I want to control them in the same interface. I am using a ring recessed menu ring in order to select the appropriate device for the desired application. So, if someone could possibly tell me how to put the ring control to work I would appreciate.
    Thanks,
    LM

    Hi LM,
    Let me start by ensuring my understanding of your question.  You have multiple devices, each which require different code to operate them.  You are currently using different programs to control each instrument and would like to combine into one.  You want to allow the user to select from a Ring Control which device to use then execute the correct code.  Is this correct?
    Assuming it is, this is fairly straightforward.  Add the labels and values to your Ring Control as well as a GO button to your UIR.  Add a callback function to the GO button.  In the callback function, add conditional code that executes a different block depending on the selected value of the Ring Control.  Let me know if you have questions on this process.

  • Ring control with keyboard shortcut

    Sorry, posted this in the wrong forum!
    Hi all,
    Is there a way to assign shortcut keys to each items in a ring control?  The ring control that I have currently has 40 items.  My intention is to have it as follows:
    [1] Item1
    [2] Item2
    [3] Item3, etc...
    So, once the ring control is active, user can type in "20" to select item #20.  
    I tried EVENT_KEYPRESS, but as soon as the ring control pop-ups, I can no longer trap any key press events.
    Thanks,
    YL
    Message Edited by YL_2009 on 11-19-2009 02:22 PM

    YL_2009 wrote:  Is there a way to assign shortcut keys to each items in a ring control? 
    No.
    The ring control that I have currently has 40 items.  My intention is to have it as follows: 
    [1] Item1
    [2] Item2
    [3] Item3, etc...
    So, once the ring control is active, user can type in "20" to select item #20.  
    I tried EVENT_KEYPRESS, but as soon as the ring control pop-ups, I can no longer trap any key press events.
    Popping up the menu isn't the same as the control having focus for keyboard entry. They are mutually exclusive. One way to do what you want is to  basically have to make sure the ring has KeyFocus so you can use the Input Device Control VIs to read the keyboard. You can, for example, set the KeyFocus on a MouseDown event, and unset it for a MouseUp. Then, in the Timeout case for the event structure you can be monitoring the keyboard to see what keys are pressed and act if the ring has KeyFocus. See attached (LV 8.2) as a starting point. 
    Attachments:
    ring keyFocus.vi ‏28 KB

  • Problem with tree view alignment

    http://tinypic.com/r/34o1wjl/6
    please view the link !!
    i want the tree for the Finished product just below the Raw Material, where as i am not able to achieve it. The raw material gets place in a separate box and finished in another.
    the code for the above is :
    public VBox addVBox()
    VBox vbox = new VBox();
    vbox.setPadding(new Insets(10)); // Set all sides to 10
    vbox.setSpacing(8); // Gap between nodes
    TreeItem<String> inventoryRM = new TreeItem<String> ("Raw Materials");
    inventoryRM.setExpanded(false);
    TreeItem<String> itemRM1 = new TreeItem<String> ("Add Raw Material");
    inventoryRM.getChildren().add(itemRM1);
    TreeItem<String> itemRM2 = new TreeItem<String> ("Edit Raw Material");
    inventoryRM.getChildren().add(itemRM2);
    TreeItem<String> itemRM3 = new TreeItem<String> ("Delete Raw Material");
    inventoryRM.getChildren().add(itemRM3);
    TreeItem<String> inventoryFinished = new TreeItem<String> ("Finished Product");
    inventoryFinished.setExpanded(false);
    TreeItem<String> itemF1 = new TreeItem<String> ("Add");
    inventoryFinished.getChildren().add(itemF1);
    TreeView<String> treeRM = new TreeView<String> (inventoryRM);
    TreeView<String> treeFinished = new TreeView<String> (inventoryFinished);
    vbox.getChildren().addAll(treeRM,treeFinished);
    return vbox;
    }

    If I understand correctly, you're looking for a single tree with two top-level nodes "Raw Materials" and "Finished Product".
    You can achieve this with
    public VBox addVBox()
      VBox vbox = new VBox();
      vbox.setPadding(new Insets(10)); // Set all sides to 10
      vbox.setSpacing(8); // Gap between nodes
      TreeItem<String> inventoryRM = new TreeItem<String> ("Raw Materials");
      inventoryRM.setExpanded(false);
      TreeItem<String> itemRM1 = new TreeItem<String> ("Add Raw Material");
      inventoryRM.getChildren().add(itemRM1);
      TreeItem<String> itemRM2 = new TreeItem<String> ("Edit Raw Material");
      inventoryRM.getChildren().add(itemRM2);
      TreeItem<String> itemRM3 = new TreeItem<String> ("Delete Raw Material");
      inventoryRM.getChildren().add(itemRM3);
      TreeItem<String> inventoryFinished = new TreeItem<String> ("Finished Product");
      inventoryFinished.setExpanded(false);
      TreeItem<String> itemF1 = new TreeItem<String> ("Add");
      inventoryFinished.getChildren().add(itemF1);
      TreeItem<String> rootNode = new TreeItem<String>("");
      rootNode.getChildren().addAll(inventoryRM, inventoryFinished);
      TreeView<String> tree = new TreeView<String> (rootNode);
      tree.setShowRoot(false);
      vbox.getChildren().addAll(tree);
      return vbox;
    }

  • Problems with Tree View

    I am using Forms 6 to display a hierarchical tree strucure in a departmental application. I am able to use it for displaying the hierarchy but unable to do anything programatically with the tree. Could somebody help me please, with some insight - which would be much appreciated. Thanks in advance.

    Hi Sumer!
    U can do any thing with the tree programatically.
    Tell me which tree u r using if it is activex provided by forms.
    U can find all the methods and functions in the forms help search for Heirarchical trees topic.
    Even u r facing any problem write me I will get u the solution.
    Mayank Sharma
    [email protected]

  • Tree view clears after application switch

    Hi All,
    I am facing a problem with tree view. I have a dialog with tree view and I select an item. With dialog open I switch to some other application. When I switch back to InDesign, I see that tree view is empty. What could be the reason?
    Thanks,
    Pete

    Hi Ghubsch,
    When you run the Edit Page, 4000:4150, in Tree View, are any errors reported on your page, possibly in Firebug or an equivalent extension in your chosen browser? Are you experiencing this issue for every page in your application, or just one in particular?
    If possible, would you mind providing login credentials so that we can take a look at your workspace.
    Regards,
    Hilary

  • Tree View

    I have a "big" problem with tree view.
    I have a code that it fires when the node has been selected, and it fires correctly if i select the nodein level 1. But if i select the child node for this node the trigger When-Tree-Node-Selected not fires.
    Why can happen this?
    I need a little help.
    Thanx in advance....

    Implement Yahoo! UI Library: TreeView. Mostly javascript and you can get the data from any source.
    http://developer.yahoo.com/yui/treeview/

  • Tree view control - populating speed - over 100 nodes

    I have a few questions about a tree view control:
    1. If you put more than approximately 100 nodes in a tree, it populates too slow. There is no change if you try with query or record group. I figured that the populating of the record group makes all problems, but there is no chance to enlarge the array siye of the record group. Developer 6 has some built-ins which can do that, bu after many unsuccesful tries I don't see a solution.
    I tried to make fetches from cursor into a record group (30 nodes on a "page", but it looses a real hierarchy and you should do a lot of programming). If anybody knows how to make the population of the tree faster or have some template / please forward.
    2. After we put the patch 5 of developer6, tree view control is totally unpredictable. Usually its when you programmaticaly try to select a node (ftree.set_tree_selection)...Anybody have the same problems?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Natasa Stojovska ([email protected]):
    I have a few questions about a tree view control:
    1. If you put more than approximately 100 nodes in a tree, it populates too slow. There is no change if you try with query or record group. I figured that the populating of the record group makes all problems, but there is no chance to enlarge the array siye of the record group. Developer 6 has some built-ins which can do that, bu after many unsuccesful tries I don't see a solution.
    I tried to make fetches from cursor into a record group (30 nodes on a "page", but it looses a real hierarchy and you should do a lot of programming). If anybody knows how to make the population of the tree faster or have some template / please forward.
    <HR></BLOCKQUOTE>
    Try taking out the 'start with' and 'connect by' clauses in your select statement if you're using them. However, this will mean that you will have to determine the levels of the tree manually and ensure that the data comes out in the same order each time you execute the select statement.
    null

Maybe you are looking for