Listbox row 0 and vertical scrollbar issue

Hi,
I tried to do simple VI where I can check items in the Listbox control. My problem is that when I click anywhere on the vertical scrollbar or buttons with the triangles, Mouse Down event triggers and check item in the row 0.
Is this an issue or is it just a mistake in code?
For some reason I am not able to attach VI, so block diagram is below.
Thank you for any help.
I use LV 2010.
Duri
Duri
Solved!
Go to Solution.

Here is a demo VI that handles listbox selection like this with a single click.  Saved in 2011, uses OpenG array.
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.
Attachments:
Listbox Item Selection Demo.zip ‏55 KB

Similar Messages

  • How to have horizotal and vertical scrollbar similtaneously in form

    Hi,
    I my prj I have a main normal content canvas and in top of content canvas there is stacked canvas which fetches the data from datablock.By seting the scrollbar properly in datablock its possible to set horizontal or vertical scrollbar.However I need both the horizontal and vertical scrollbar.Is it possible to have both the scrollbar?How can it be done.In datablock propertly its possible to set either vetical or horizontal scrollbar.

    This might help you
    +Create the Detail Data Block setting Show Scroll Bar property to Yes and Scroll Bar Orientation property to Vertical. Add some fields from the Detail Block on the Content Canvas.
    Create a Stacked Canvas and put the other needed fields from the Detail Block on it. For the Stacked Canvas set Show Horizontal Scroll Bar property to Yes.+

  • Htp.p( pre )  and vertical scrollbar

    Greetings,
    Carl used the code below for an OnDemand Process in
    http://apex.oracle.com/pls/otn/f?p=11933:13:3295006254376178
    Can I set the height and have vertical scrollbar with the pre tag?
    I've tried a div tag with no success.
    declare
    l_Id varchar2(4000);
    l_String varchar2(32767);
    begin
    select DESCRIPTION into l_String from "RANDOMDATA" where id = v('TEMPORARY_ITEM');
    htp.p('<pre>'||l_String||'</pre>');
    end;
    Thanks,
    Tim
    Edited by: Tim Arnold on Jan 18, 2009 8:14 AM

    I am just gessing but wouldn't this work:
    DECLARE
       l_id       VARCHAR2 (4000);
       l_string   VARCHAR2 (32767);
    BEGIN
       SELECT description
         INTO l_string
         FROM "RANDOMDATA"
        WHERE ID = v ('TEMPORARY_ITEM');
       HTP.p ('<div style="width:1000;overflow-y:scroll">' || l_string || '</div>');
    END;?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Spark list and vertical scrollbar

    Hi,
    i have this problem (that seems a common problem):
    I have a List that is bound with an ArrayCollection that is populated with a push data provider that send to me a sport event (with a lot of properties).
    I have also an event map where i put the event into (a simply hashtable).
    If the event doesn't exists in the map i'll add to an ArrayCollection, if the event exists i'll change only its properties (a code snippet):
    var event:LiveEvent = tableMap[changedEvent.row_id];
    if (event) {
         if (changedEvent.active==false) {
              events.removeItemAt(getEventByRowId(events,event.row_id));
              tableMap[changedEvent.row_id]=null;
         else {
              var i:Number;
              event.signgroups = changedEvent.signgroups;
              event.name = changedEvent.name;
              event.betstatus=changedEvent.betstatus;
    after this i force a refresh to the dataprovider (events.refresh();) that cause the verticall scroll bar of the list to jump up.
    I've read into a previous post (that was using a datagrid and not a list) that the refresh is needed only when thare are new UID, so in my case if only the properties changed its value it "should" not needed. But if i don't put the refresh my list is not updated.
    I've also tried to get/set the vertical scroll bar position using:
    eventList.scroller.verticalScrollBar.value = myOldPosition
    but there is someone (i bet some events) that change the scrollbar position after my function.
    How i can prevent to change the scrollbar position or (would be great) avoid the refresh() call?
    this is my list definition:
    <s:List dataProvider="{events}" changing="setItem()" id="eventList" width="300" itemRenderer="itemsrenders.EventItemrender" height="{this.height-90}">

    LiveEvent is a remote object class:
        [RemoteClass(alias="com.isitech.live.beans.Event")]
        public class LiveEvent
            public var row_id:Number;
            public var name:String;
    so event that is a private var is not bindable. Should i declare it global and make it Bindable?

  • Dynamic table with header locked and vertical scrollbar problem.

    Hi,
    I have created a dynamic table with header locked.The sample code is as below.
    <div style="width:910px ; overflow-x : scroll">
    <h:panelgrid ...for header populated by binding to pagecode/>
    <div style="width:910px ; height:200px ; overflow-y : scroll">
    <h:panelgrid ...for data populated by binding to pagecode/>
    </div>
    </div>
    The above piece of code serves the purpose.
    There is an overflow in both x as well as y directions and scrollbars appear.But the y scrollbar can be seen only when the x-scrollbar is moved to the extreme right.
    Does anyone have a solution so that both the scrollbars can be seen as soon as the table loads without the need to move x to the extreme right to see y?

    wa_layout-grid_title = text-039.
        wa_layout-sel_mode = 'A'.
        APPEND wa_layout TO gs_layout.
        wa_layout-grid_title = text-039.
        wa_layout-sel_mode = 'A'.
        APPEND wa_layout TO gs_layout.
        wa_layout-grid_title = text-039.
        wa_layout-sel_mode = 'A'.
        APPEND wa_layout TO gs_layout.
      CALL METHOD gr_alvgrid1->set_table_for_first_display
          EXPORTING
            is_layout       = gs_layout
          CHANGING
            it_fieldcatalog = it_fieldcatalog1[]
            it_outtab       = <l_table>.
    i am using like but its not accepting more than one line header in is_layout, is there any possibility to take like this.
    Regards,
    Mallikarjuna.

  • Problem with panelbox and af:table scrollbar issue and panelstretchlayout

    Hi,
    <af:panelStretchLayout >
    <f:facet name="center">
    <af:panelSplitter orientation="vertical" positionedFromEnd="true" inlineStyle="vertical-align:inherit;">
    <f:facet name="first">
    <af:subform default="false" id="xyz">
    <af:panelBox background="light" text="Advance Search" inlineStyle="color:InactiveCaption;" type="default">
    <af:panelGroupLayout layout="scroll">
    <af:commandButton text="Search" id="advSearch" actionListener="#{ADFStandardsLeftMenu.getAdvancedSearchData}"/>
    <af:spacer width="20"/>
    <af:commandLink text="Search Tips" id="searchtips2" inlineStyle="font-weight:bold;" partialSubmit="true" clientComponent="true">
    <af:showPopupBehavior triggerType="click" align="afterEnd" popupId="advSearchPopupId"/>
    </af:commandLink>
    </af:panelGroupLayout>
    </af:panelBox>
    </af:subform>
    </f:facet>
    <f:facet name="second">
    <af:panelBox background="light" text="Basic Search" inlineStyle="color:InactiveCaption;" type="default">
    <af:spacer height="20"/>
    <af:panelGroupLayout layout="scroll" >
    --- some inputtext command buttion, dropdowns...selectonechoice..are there inside this
    </af:panelGroupLayout>
    </af:panelBox>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelStretchLayout>
    problem:
    (we have 2 panels) of vertical
    when i run this application it is working fine. But when we minimise the browser(half size) or if we add more no of toolbars in browser (important) obviously browser size will decrease,
    that time 1 panel getting decreased second panel is maintaing fixed size, not resizing.
    I tried to give fixed size (percentage) for both panels wt ever the operation does.
    and 2nd issue
    ========
    <af:panelStretchLayout>
    <f:facet name="center">
    <af:panelSplitter orientation="vertical"
    positionedFromEnd="true" >
    <af:panelBox background="light" text="Search For Standards" inlineStyle="color:InactiveCaption;vertical-align:50%;" >
    <af:table value="#{ADFStandardsLeftMenu.mostCommonAgencySelectedList}"
    id="t1" width="100%" var="stdURL"
    emptyText="<html><b><font color='red'><center>No Records Found</center></font></center></b></html>"
    disableColumnReordering="true"
    columnSelection="multiple"
    rowSelection="multiple"
    inlineStyle="text-align:left;"
    verticalGridVisible="true"
    horizontalGridVisible="true">
    <af:column>
    </af:column>
    ---- we have more 8-10 columns
    </af:table>
    </af:panelbox>
    </af:panelsplitter>
    </f:facet>
    </af:panelstretchlayout>
    problem: that time im getting by default horizontal and vertical scrollbar, but if user add toolbars in browser (view->customize)add toolbar no of say 10-15 that time window size decreasing
    so, table size is crossing panelbox size, and bottom scrollbar is not visible (hiding under site bottom layout say site is divided into 4 parts (leftmenu, body(2 panels), right, bottom) (im not using any right layout)
    regards,
    sandeep

    Hi,
    if minimises browser window(half) or by adding more no of toolbars, i given an option as panelgrouplayout layout=scroll.
    it is working fine for 1st panel.
    but 2nd panel scrollbar not coming.
    thanks in adv.
    regards,
    sandeep

  • Cuatom Forms: Loosing the Vertical scrollbar when resizing the Window

    Hi All
    I have developed a Custom Form. In that there is a Content Canvas and on the top of that I have put a Stacked Canvas so that i can get both the Horizontal and Vertical scrollbars. the form has more than 40 fields to display.
    Folder tool functionality has also been added to the Form.
    The form works absolutely fine and scrollbars too.
    But when I am resizing the window (making the window size bigger or smaller by dragging the window on the Oracle Apps screen), at that time I am loosing the vertical Scrollbar. Other than Vertical scrollbar everything works fine.
    Is there any way (any code) by which the Vertical Scrollbar will not disappear.
    I would really appreciate if any one could guide me on this.
    Thanks
    Madhu

    Madhu,
    Please post your message in the Oracle E-Biz forum. This forum is for Non-EBS Forms development and everyone here may not have EBS Forms development experience.
    That having been said, I encountered this about a year ago. If I remember correctly, we were able to resolve the issue by applying a Forms server patch to the Apps Tech stack. Please check Metalink to verify.
    Craig...

  • Vertical scrollbar does not appear

    Hi all!
    Here is my problem.
    I have a JPanel on a JScrollPane (called: container).
    I have an other class which extends JPanel (called: component).
    I have a JButton which adds a new from component to container on every click. (container's layout is null, and I use the setBounds method on component).
    After every adding I've just set a new height to the container (setSize(container.getWidth(), container.getHeigth()+100)), but vertical scrollBars of JScrollPane does not appear.
    I tried to call the revalidate, repaint methods on the container but it did not work.
    Please help me!

    Which JScrollPane constructor are you using? If you're using one that does not specify scrollbar policy parameters, horizontal and vertical scrollbars only appear if the component's contents are larger than the view. You can of course set a JScrollPane's scollbar policies by calling the appropriate mutator methods: setVerticalScrollBarPolicy and setHorizontalScrollBarPolicy.

  • How to make vertical scrollbar visible for listbox which shows one entry only?

    I have resized listBox to display only one entry of char* items. As there is only one item displayed vertical scrollbar is not visible. Is there a way to show the scrollbar when listbox display is sized to show only one item?
    Using up/down arrow it does scroll through other entries.
    CLD,CTD

    The only problem using ring instead of listbox is that when there is a lot of items it pulls down the ring and hids all the other GUI items behind it. 
    Real estate was one reason of using list box and displaying one value. I did change the list box as a control instead of indicator but still cant get the scrollbar funcitonality.
    ANy other suggestion, thanks!
    CLD,CTD

  • Remove vertical scrollbar from multi-row af:inputText

    Hi,
    Is it possible?
    I'm using JDeveloper 11.1.2.1
    I have two text field (af:inputText) and field 2 is a multi line row, which automatically adds extra width for the vertical scrollbar, and throws off the right alignment
    field 1 |________|
    field 2 |_______|v|
    I need both field 1 and 2 to be left and right aligned
    i.e.
    field 1 |_______|
    field 2 |_______|
    Is there a way to do this? I was thinking this could be achieved by removing the vertical scrollbar, but I'm not sure how to do this.
    Also, the application needs to be viewed in both mobile device (iPad) and desktop. Since iPad doesn't use scrollbar (hence it's not rendered), setting both fields to have fixed width won't achieve what i need, because it will be correct in one version, but not both.
    Thank you for any information.
    Regards,
    Andi

    Hi Navaneeth,
    Code:
    <h:panelGrid columns="2" id="pg1">
    <af:outputLabel value="Field 1" id="ol5"/>
    <af:inputText value="#{bindings.ModelCode1.inputValue}"
    required="#{bindings.ModelCode1.hints.mandatory}" columns="#{bindings.ModelCode1.hints.displayWidth}"
    maximumLength="#{bindings.ModelCode1.hints.precision}"
    shortDesc="#{bindings.ModelCode1.hints.tooltip}" id="it4">
    <f:validator binding="#{bindings.ModelCode1.validator}"/>
    </af:inputText>
    <af:outputLabel value="Field 2" id="ol4" shortDesc="#{bindings.Comments.hints.tooltip}"/>
    <af:inputText value="#{bindings.Comments.inputValue}"
    required="#{bindings.Comments.hints.mandatory}" columns="#{bindings.Comments.hints.displayWidth}"
    maximumLength="#{bindings.Comments.hints.precision}" shortDesc="#{bindings.Comments.hints.tooltip}"
    id="it9" rows="#{bindings.Comments.hints.displayHeight}">
    <f:validator binding="#{bindings.Comments.validator}"/>
    </af:inputText>
    </h:panelGrid>
    Current layout:
    http://img607.imageshack.us/img607/4282/fieldalignmentproblem.jpg
    Desired layout (To have it aligned as per the green line):
    http://img338.imageshack.us/img338/7865/fieldalignmentdesired.jpg
    Thanks,
    Andi

  • Width of vertical scrollbar on multicolumn listbox

    I am working on a touchscreen enabled user interface and need to "übersize" all the controls for fat-fingered individuals such as myself.  For the life of me, I can't figure out how to widen the vertical scrollbar and make the change permanent.  I can adjust the width customizing the control and everything is great...  Until I close the .vi and reopen it.  Then the scrollbar width reverts back to its normal skinny self.  I've tried making the custom control a typedef, but it doesn't help.  How do I make this change stick?
    Thank you,
    Greg

    Greg,
    I've just modified a MCLB's scroll bar width (customising the control) as you describe, saved the VI, then reopened the VI...
    With LV 7.0 the customised control stays modified - fine.
    With LV 8.0 the reloaded customisation of the control is "erroneous" - it appears that instead of reloading with the scroll bar wider, it reloads with the scroll bar normal but with the central object area box expanded to meet the scroll bar (or something like that).
    There has to be a problem there with LV version 8 - I think you should get on to NI support and report this issue.
    Mark.

  • Stocked array vertical scrollbar'​s theme mixed between modern and system??

    I enabled the vertical scrollbar for an array display in the front panel and apparently the modern themed array control has a system themed scrollbar. Also, the vertical and horizontal scrollbars from the modern control palette are also system themed controls. Did NI puposeply implemented it that way?
    In the mean time, What can I do to replace the array veritcal scrollbar with a modern style, shown on the second image. The difference themed scrollbar is very distracting - take a look at the Compare.png image. Please help.
    Thanks in advance,
    James Pham
    Message Edited by VRspace4 on 09-18-2007 01:25 AM
    Attachments:
    Mismatched Theme.png ‏5 KB
    Proper Modern Theme.PNG ‏5 KB
    Compare.png ‏378 KB

    Christian -- No you are not missing anything, there is no system array container.  What Elizabeth meant to say was to use a system listbox and a modern/classic array with a system control inside it.
    James -- Unfortunately there is no way to change the way the array scrollbar looks.  The modern listbox has the same style scrollbar as the modern graphs.  I can only assume that as the array scrollbars were added in a later version this was overlooked.
    Interestingly enough the classic controls consistently use the same scrollbar type (see screenshot).
    Another option would be to use a modern scrollbar placed over the modern listbox in leu of the built in scrollbar.  This would require a little programming to implement (namely wiring the value of the scrollbar to the listbox's "TopRow" property and then possibly some more code to account for the length of the array/scrollbar) but it is an option if you prefer the look of the modern controls.  This would look something like this:
    I hope this helps and, as Elizabeth mentioned above, this has been reported to R&D as something we need to look at.
    Regards,
    Simon H
    AE Team Manager
    National Instruments
    Message Edited by Simon H on 09-19-2007 07:17 PM
    Attachments:
    Screenshot4.png ‏32 KB
    Screenshot5.png ‏8 KB

  • My vertical scrollbar sometimes resizes my window, and I have to exit out of Firefox when this happens. Why?

    Sometimes, when I try to move my vertical scrollbar up or down, the entire window will shrink or expand, and the only way to make this go away is for me to exit out of Firefox and then re-open Firefox. It seems to happen randomly, and often happens several times a day.

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Label display issue in Tree component when it is having vertical scrollbar

    I am using tree component as dropdown factory for combo box. When i open dropdown, it doesn't have vertical scrollbar and all the root nodes are getting displayed correctly(in closed mode). Now if i try to open any node, i am getting vertical scrollbar as the child nodes are more. Now the problem is if scroll down, some of the nodes(labels) are not getting displayed but i am able to see the icon. If i keep on scrolling bottom to top and top to bottom, some of the nodes are showing labels and some are not(It is inconsistant).
    I have not used any custom item renderer for tree control. I used my custom dataDescriptor which i have implemented from ITreeDataDescriptor. Also I tried extending DefalutDataDescriptor, but no luck.

    Does it work if the tree is not in a combobox?

  • Hello' I am having an issue with my iPhone 5 display. 2 days before i've noticed some horizontal and vertical lines on the display. Minor but noticeable. Specially in dark wallpapers and on full brightness. Is it normal?? Please Help!!!

    Hello' I am having an issue with my iPhone 5 display. 2 days before i've noticed some horizontal and vertical lines on the display. Minor but noticeable. Specially in dark wallpapers and on full brightness. Is it normal?? Is this a software bug or Hardware problem?? Please Help!!!

    Hello,
    No, it is not normal. Follow this article:
    http://support.apple.com/kb/ht1414
    If this doesnt solve the issue your iPhone will need service.
    Burcu

Maybe you are looking for

  • Error in goods receipt with PO

    Hi experts,   I am getting the following error,when trying goods receipt with Purchase Order using BAPI_GOODSMVT_CREATE. "No goods receipt possible for pruchase order XXXXXX". What may be the reason for this,its urgent please help. Thanks & Regards K

  • [SOLVED] Konsole does not close when pressing Crtl+D / defunct bash ?

    Dear all, Since a few days, when I type exit or Crtl+D in a KDE konsole to close the bash session, konsole often does not close itself anymore automatically. I tried to close it manually using the GUI (File>Close tab), but then I have the following m

  • Change Cost Center Group - Error

    Good day all We are trying to change the cost center group for a cost center. We get the following error message: "Change range must cover complete existance period". How do we fix this? Thank you in advance. Kind regards Lu.

  • MS Excel 2010 takes long to open with Hyperion Smartview 11

    Hi, the MS Excel 2010 takes about 20 sec to open a blank sheet when is with a user without Internet access. It is automatically open with Internet access. This behaviour started after the installation of Hyperion Smartview.  Can you help? Ant K.

  • Duplicating iPad calendar events

    How do I duplicate a specific event iPad calendar (ios8), and move it to multiple non-regular repeating events in the future?