Right mouseclick in "Multicolumn Listbox"

Hi
Programming my application I want to be able to right click in a multicolumn listbox to pop up a small menu concerning the actual row. With normal event structure right click does not change the index. Any solutions??
Thanx Vagn

Hi,
look forum:
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000085910000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
JCC

Similar Messages

  • How can I justify text in a multicolumn listbox cell dynamically

    I use a multicolumn listbox with two columns to display an event list. Then number of events is different and can exceed the number of displayed rows. I need to justify the text in the first column to right dynamically.
    Is there any way?

    I would split the listbox in two different listboxes, each one with its specific format (make it static).
    Doc-Doc
    http://www.machinevision.ch
    http://visionindustrielle.ch
    Please take time to rate this answer

  • Entries into Multicolumn Listbox/Safing Data in .txt-file

    Hello. I haven't found anything helpful for my problem or better to say problems. I have to do a task that I have no idea how to solve. It isn't helping that I was never good with programming. Here is what I have up till now:
    I want to write seven strings indivudally into a multicolumn listbox with seven columns. The first shall be a running number, increasing for every row. For this I'm using right now a Case Structure. And there is my first problem. I don't know how to realize that whenever a row is completed the next string is written into the next row instead of overwriting one in the completed row.
    This has to go one for as long as the user wants to. Then there has to come a Pop Up Window - if that's the correct term - and shall ask the user if he/she wants to safe the created list into a textfile. And that's my next problem. I have no idea how to program that.
    I know it's probably rather easy to program these things in LabVIEW 8.0 (which I'm using) but as I've already said I'm anything but good in programming at all and to make things even more complicated I don't want to do this task, therefore not putting all my energy into it as a result.
    Please, can someone here help me?

    Does it have to be a multicolumn ListBox?
    Seems like a table might be more appropriate, if it's only for display purposes.
    Either way, you need to use a FOR loop inside a FOR loop to generate a 2-D array of strings.
    The INNER loop generates the strings for each column in a row, the OUTER loop generates each row.
    You wire the 2-D array directly to a TABLE indicator, or to the ITEM NAMES property of a ListBox.
    Attached is a pic.
    Message Edited by CoastalMaineBird on 08-21-2007 01:52 AM
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks
    Attachments:
    TwoLoop.png ‏226 KB

  • Migration of multicolumn listbox from 7.1.1 to 8.5

    I recently migrated a VI containing a multicolumn listbox from LV 7.1.1 to LV 8.5. Interestingly the 3D-headers got lost and the hight of the rowes changed.
    Left in the picture is the LV 7.1.1 version and right is the LV 8.5 version. The font is set to Lucida Console 14 bold.
    I got CAR 119444 for this conversion bug.
    Message Edited by waldemar.hersacher on 07-10-2008 09:02 PM
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions
    Attachments:
    multicolumnlistbox.png ‏2 KB

    Hi Vicky,
    No worries my friend
    We have not done this upgrade and do not have any current plans to do so. I am
    always, always, always slow to move along the upgrade path. This may be a bad thing
    but it has saved us some great pain as well over the years. Our current versions are;
    CUCM - 7.1(3b)su2
    CUC - 7.1(3b)su2
    We have found these versions to be very stable. I have spent a fair bit of time looking at people's
    migrations to 8.5(x) here @ CSC and have not seen or heard of too many horror stories. This is one bug you'll
    want to look out for.
    CSCtn61453            Bug Details
    Applying 8.5.1 software as patch results in corrupted CUC installation.
    Symptom:
    After fresh installation of 8.5.1 software, we can notice several problem symptoms.
    - Connection services and Connection DB does not start
    - System cannot be accessed via web page
    - Informix error messages for certain CLI commands
    Example :- show cuc cluster status
    com.informix.asf.IfxASFException: Attempt to connect to database server (ciscounity) failed.
    Command failed
    Conditions:
    It is observed during fresh installation of Unity Connection product when installation was
    started with earlier version of software and 8.5.1 software was applied as a patch during the setup process.
    Workaround:
    First, perform a fresh installation of earlier version of software using the install media. Then after verifying the installation, proceed with the upgrade to 8.5.1 as a separate process.
    Status
    Open            
    Severity
    2 - severe
    Last Modified
    In Last 3 Days        
    Product
    Cisco Unity Connection         
    Technology
    1st Found-In
    8.5(1)ES1
    Best of luck with your changes.
    Cheers!
    Rob

  • Is it possible to make a line of a multicolumn listbox active?

    I currently have data entered into multicolumn listbox.  While the program is running, is it possible for a row of the listbox to be selected and then give the index number of that row?  From there I will want to use that index number to reference other arrays, but right now I'm just dealing with getting the index number I need from the user's row selection. 

    lmtis wrote:
    The I32 is the default numeric constant, I didn't see the need to change it for this purpose.
    You missed my point. The output datatype of the Value property node is an I32. You are wiring to an I32 indicator, but shoving it through a TypeCast function. This is pointless.
    Message Edited by smercurio_fc on 06-20-2008 12:12 PM
    Attachments:
    Example_VI.png ‏4 KB

  • Disable horizontal scroll in multicolumn listbox

    I'm using a Multicolumn listbox and I programmatically change the cell to be edited using UP, DOWN, RIGHT and LEFT keyboard keys.
    Everything is working exept for the rightmost column: when I press the RIGHT key, the cursor moves to the next cell inside the rightmost column but all the table scrolls to the right (even if not really necessary) preventing the user from seeing the first column (leftmost). Is it possible in some way to lock or totally disable the horizontal scroll?
    Every idea would be welcome.

    I don't think there's a way to completely disable scrolling (once you ask the MCLB to show you a cell, it will probably do whatever it can to show it to you), but you can start by making the scrollbar invisible and by setting the Top Left Visible Cell property to [X, 0] every time you move a cell. If this doesn't work, you should upload your code. We play better when we have what to work with.
    Try to take over the world!

  • Labview 8.0 multicolumn listbox

    hi guys,
    i want to add the names in the multicolumn listbox by right-clicking on the corresponding row and column .from the menu list that is displayed when i right click .
    help me in doing so.....
    Thanks & Regards
    J.Venkatesh

    Hi Venkatesh,
    See here for more idea...
    Sorry for delayed attachment, net is slower here today, in my off...
    - Partha
    LabVIEW - Wires that catch bugs!

  • Multicolumn listbox scrolling problem

    Multicolumn listbox contains test data. As user starts test, it is required that the horizontal scroll bar move to the right edge so that the right most column is viewable. Second, as the tests are running the multicolumn listbox is supposed to scroll to the test row being run. I have achieved it through the Top Left Visible Cell property. But then user can disable autoscrolling feature. When it is re-enabled, the row being currently run becomes the top row (by scrolling). Here is the problem (with horizontal scroll bar). Suppose user has scrolled horizontally to a certain position. How do I let it remain/retain while scrolling the verticalbar to the currently running row. As I set the Top Left Visible Cell property, the horizontal bar is forced to a position defined by Top Left Visible Cell property's column parameter, that is, I want to make the currently executing row visible, by scrolling to it, but not move the horizontal scroll bar?
    Thanks in advance.

    Yes that is exactly what I am doing. But the problem is that doing so adjusts the horizontal scroll bar with the left edge of the left most visible column, that is adjusts the moves the horizontal scroll bar to left and what is desired is that it be left where user has positioned it (that is maybe not coinciding with the left most edge of the left most visible cloumn). (Is that even possible?).
    Second, how do you position the scroll bar to the right most edge of the multi column list box, whenever such is required, without making the not being used right columns (that is not scrolling beyond the boundary of right most data column) visible?
    Thanks for your replys guys.

  • Multicolumn listbox

    I need an object to store lab-measurements and are wondering, if it’s possible to use a multicolumn listbox.
    My problem is that, I need to know the row number of the active row. By ‘the active row’, I understand the row belonging to the cell activate by user scroll using arrows/ or mouse click.
    Background for my question:
    I want to store the sample number I the first column. The sample numbers are imported from Excel.
    The measurements for the actual sample should come in, in the cells to right in the same row.
    The samples are not always ordered, which means, that I might need to scroll to the correct sample number.
    In order to place the output from the measurement coming from my labView program, I need to know what is the row number of the activate row. But how ?
    Is it possible using multicolumn listbox, or is there another object, which can do the trick?
    In c# it’s possible to do as described using datagridview.
    Solved!
    Go to Solution.
    Attachments:
    example file.jpg ‏19 KB

    I have added some code to your VI.
    The event structure needs to be i a loop, otherwise your program will stop after the first double click
    You need to initialize the array before you start replacing elements, because it is not possible to replace non existing elements
    The Top Left property of the list box can be used to determine the index of the top left visible cell of the list box
    I used now the double click as trigger to change the content of a cell, but you could use a user generated event instead, an fire this event each time a new measurement is available.
    Attachments:
    multicolumn listbox.vi ‏15 KB

  • Adding a single line to a multicolumn listbox?

    Hi Community,
    I have a multicolumn listbox which tens of thousands of lines where each line is color coded and represent a cycle with a pass/fail status. The only way I have found to add lines to a multicolumn listbox is to read its ItemNames property which is a 2D array of strings, add the new line to the 2D array and then write then new array back to the ItemNames property.
    The problem is that after couple thousands of lines this get more and more slow.
    Is there any way to speed this process up, maybe by adding the line to the listbox in a different way?
    thx.

    The Listbox, and Multicolumn listbox controls got many UI performance improvements in 2013, what version are you using?
    https://lavag.org/topic/17009-labview-2013-favorite-features-and-improvements/
    But even if you are on an old version there are many tricks to making the UI more responsive, like using defer panel updates, and virtual multicolumn listboxes.
    https://lavag.org/topic/15289-virtual-multicolumn-listbox/
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How can I automatically word wrap a string placed in a (multicolumn) listbox ?

    Hello,
    Using LabView 7.0:
    I need to automatically wrap text inserted in a multicolumn listbox.
    The size of the listbox is fixed and I don't know the legth of the string that will be inserted. But the whole string must be visible, because it's Information is important
    I'm not allowed to use a fixed width font. :-(
    Has anyone any ideas (or a solution already?)
    How can I compute the length of a string in pixel to calculate to position to wrap?
    Thanks in advance,
    best regards,
    Rainer

    Hi Veena,
    The trick is to use the Get Text Rect.vi to calculate where to wrap your text string. There's no feature to automatically wrap the string for you, so you will have to split you string into sections/lines, that doesn't exceed the width of the column in the listbox.
    Good luck!
    - Philip Courtois, Thinkbot Solutions

  • How can I set font size of a column of Multicolumn Listbox at one time in edit mode?

    HI,
    I want to creat a Multicolumn Listbox with different font size in diffrent columns.
    But  I can only modify all cells or one cell font size at one time!
    How can I do?
    THANKS!

    My labview version is 7.1.
    I can't open the .vi you deliver.
    And in LV7.1, I can't  find  fontsize setting in property node.
    thank you all the same!
    Attachments:
    1111.JPG ‏27 KB

  • Inserting an image in a column of a multicolumn listbox

    Hi,
    How can I insert an image in a column and row of a multicolumn listbox? Is it possible?
    Thanks,
    ToNi.

    To change any property of a cell, you must first select it using the Active Cell Property node, a cluster of row and column indexes. Setting the indexes values to -2 select the entire row/column/table, including the headers, setting the indexes to -1 select only the headers.
    Changing a column foreground color without affecting the header color is therefore a 3 steps operation :
    - set the active cell property to -1, n (n being he column index); read the foreground color
    - set the active cell property to -2, n; write the new foreground color
    - set the active cell property to -1; write back the previously read foreground color
    Since you cannot change programmatically the images in a ring, the pict ring array cannot be used if you want to load new images at run time.
    Use instead a picture array, as shown in the attached vi. I still use a pict ring, but that's just as a convenient image source. Replace it with your own source (file dialog for instance...)
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    ListBox & Picts.vi ‏1 KB

  • How to change the text size of a multicolumn listbox ?

    I would like to have all text in my multicolumn listbox biger and bold. I don't find anything with property node.

    Hi
    Use the Positioning tool to select the entire Multicolumn Listbox. Then use the Text Settings in the LabVIEW toolbar to change the font, style and so on. You will see that the font of all the items in your Multicolumn Listbox (including its label) are changed at once.
    If you want to change only one item, than you can use the Text tool.
    Luca P.
    Application Engineer
    National Instruments
    Regards,
    Luca

  • How to read 'clicked header' AND selected row from multicolumn listbox?

    I have a multicolumn listbox filled with 6 columns and about 500 rows.
    I want the user to be able to click on a column header, and sort the listbox alphabetically on that column. I've written the code for that, and that works. (using the 'itemnames' en 'get clicked col hdr' properties.)
    However, I also want to include the option, that when a user highlights a row, and then clicks on the header, that after the listbox gets sorted it scrolls down to the selected row.
    (So that the user doesn't have to search for it)
    And that's where things go wrong, because the value of the listbox changes to zero when you click on a column header. No I idea why it does that, but it's rather
    annoying. Can I change that behaviour somehow?
    Or any ideas how to get around it?

    My thanks to you and Jared.
    Seems I got a working solution now.
    Did take a while to figure out why your solution worked. Basicly, you're reading the row from a few iterations before.
    As soon as I understood that, I simplified it a little. Look at the attached file... I think it does the same. :-)
    Jared asked for the sorting routine. As I don't seem to be able to attach files when replying to comments, I took the liberty to include it here also.
    Basicly, I just use the 'sort 1D array' that comes with Labview 6. To be able to sort a 2D array, I convert every row to a cluster. That's something the 'sort 1D array' VI can handle nicely.
    To sort on the correct column, I just cut all columns in front, and paste them behind again. A
    fter sorting, I reverse the process.
    Anthony.
    Attachments:
    copy2_of_multicolumn.vi ‏26 KB
    sort_2d_string_array.vi ‏34 KB

Maybe you are looking for

  • Can i stream a tv show from a macbook to atv???

    new to apple tv2. wondering if i can stream a tv show from the network website from my macbook to my atv???

  • Urgent!Poor performance in Entity beans

    we're using Weblogic 5.1, Oracle 8i.(both installed in Solaris 5.8) We found that the performance of our entity beans is poor, the reason we guess is because when we issue a select statement, the jdbc, at the same time, issue a update statement, that

  • MY CS5 does not support my new Canon 7D Mark II camera Raw files on my Mac - what needs to be downloaded?

    I'm having trouble getting the CR2 files from my new Canon 7D Mark II camera to CS5/Bridge - it says the files are not supported by the installed version of RAW.  The DNG Converter dos not seem to help (I noticed it works for CS6 & CC only)  What nee

  • Tabstrip: Protected title for tab index

    Hi all,   This is the first time I am trying my hand on tabstrips so the problem may be elementary but I am unable to solve it. I've defined a tabstrip using the wizard with 6 tabs and when I run the program the tabstrip appears fine. But I also get

  • IDVD project

    I used IDVD for my photos and videos, but when I burn them in them the video and audio does not synchronize