List Box display to synchroniz​e with Scroll bar.

I will like to know if anyone here can help to amend or advise on the attached VI in order to allow the List Box display to synchronize with the Scroll bar.
As the VI is in run mode, i would like to see 9.CD, 10.Troja, 11. Red... and so on to be displayed as it is being executed.
Thanks.
Attachments:
try.vi ‏13 KB

Hi Gelb,
Glad to hear you've got it working
I realised afterwards that my code will not work correctly if the last line is partially hidden, ie the list box does not display an exact number of lines. So I've added a +1 after the array size function to correct this, see attached vi.
You'll notice that I read the NumRows property of the listbox - I've done this so that if you decide to change the listbox height the code will still work without you having to go in and change anything. In your code you would have to change the constant (currently a 7) before the comparison primative to the new height. Also, in my new vi I've assumed the listbox height isn't going to change during the time it gets populated so I've move the NumRows property out of the for loop and read it only once - saves a bit of time
Using a for loop with auto indexing rather than a while loop also means that I don't need to index the input array every time or worry about when the loop will stop.
Hope this all helps
Dave
Message Edited by DavidU on 06-26-2008 08:59 AM
Attachments:
Scroll Listbox 2.vi ‏15 KB

Similar Messages

  • Problems with scroll bars in list view

    Hello,
    I am using Xcelsius 2008 (Build Number 12,2,166).  I am still having trouble with scroll bars on my list view control. Other list views in my dashboard seem to be ok. It seems that this list view is not ignoring the blank cells in my excel file. I have gone through many things to correct this problem. I have added a new list view, I have copied other list views that work correctly but still no success. It seems that the "Ignore Blank Cells" property is not working correctly. Does anyone have a solution for this?
    Much Thx!

    Hi Yusufel,
    Please check the data whether the cells are really blank or having any space which could not be seen, etc.
    With best wishes
    BaaRaa.

  • Error Box displays in JClient Form with no text (preview 9.0.3)

    I am using Preview 9.0.3, with a JClient Form, running as an applet. When I execute the applet within JDeveloper, an Error box displays, but has NO text. When I try to close the box, it just keeps redisplaying, with no text. I am using the -Djbo.debugoutput=console, and the last statement to be logged is the SELECT statement from the Entity Object I am working with.
    Is there any other diagnostic logging I can turn on to find out what the error is?
    Any ideas?

    I am using Preview 9.0.3, with a JClient Form, running as an applet. When I execute the applet within JDeveloper, an Error box displays, but has NO text. When I try to close the box, it just keeps redisplaying, with no text. I am using the -Djbo.debugoutput=console, and the last statement to be logged is the SELECT statement from the Entity Object I am working with.
    Is there any other diagnostic logging I can turn on to find out what the error is?
    Any ideas? You may turn on the diagnostic on BC4J to see where things are breaking.
    Open up Project settings. In the Runner panel, provide runtime option : -Djbo.debugoutput=console

  • Limit List-box displayed entries

    Hi.
    This is the story:
    I have created a Dialog scren and defined a field (let's call it FieldA) based on db field (e.g. PA0001-PERSG).
    Now since the db field has Check-table, FieldA has F4 functionality attached.
    Since I don't fancy the F4 functioanality (it takes too long to come up and a lot of resources) I changed FieldA type to "Listbox".
    Now all the values that would appear in the F4 screen are showing as a List-box (AKA Drop-down or Combo-box).
    So far so good, but the problem is this:
    I don't want all the possible entries in my List-box, just a few.
    I know how to control it in the F4 but not as a List-box.
    Any ideas anyone?
    Regards.
    Ayal.

    Hi....
      Why should u r not trying this...
    In the PAI event of that screen...
    > FIELD F1 MODULE create_dropdown_box.
    And in that module....
    >MODULE create_dropdown_box INPUT.
    >
    >  TYPE-POOLS : vrm.
    >
    >
    > DATA : BEGIN OF f1_info OCCURS 0 ,
    >               f1_ac(20) ,
    >         END OF f1_info .
    >
    >  DATA : vid TYPE vrm_id.
    >  DATA : itab1  TYPE vrm_values,
    >              itab_1 TYPE vrm_value .
    >
    >  REFRESH f1_info.
    >
    >    f1_info-f1_ac = 'ENTRY1' .
    >    APPEND f1_info .
    >
    >     f1_info-f1_ac = 'ENTRY2' .
    >    APPEND f1_info .
    >
    >     f1_info-f1_ac = 'ENTRY3' .
    >    APPEND f1_info .
    >
    >   vid = 'F1'.
    >
    >  LOOP AT f1_info.
    >    itab_1-key  = f1_info-f1_ac .
    >    itab_1-text = f1_info-f1_ac .
    >    APPEND itab_1 TO itab1.
    >  ENDLOOP.
    >
    >
    >  CALL FUNCTION 'VRM_SET_VALUES'
    >    EXPORTING
    >      id                    = 'F1'
    >      values                = itab1
    >  EXCEPTIONS
    >    ID_ILLEGAL_NAME       = 1
    >   OTHERS                = 2
    >            .
    >  IF sy-subrc <> 0.
    >  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    >          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    >   ENDIF.
    >
    >  REFRESH itab1.
    >
    > ENDMODULE.                 " create_dropdown_box  INPUT
    Here actually iam used hard coding.. for entries..its good for less than 5 or 6 entries...
    You can modify code according to ur requirement...
    and get back to me if u want any clarification on this...
    Thanks,
    Naveen.I
    Edited by: Naveen Inuganti on Jul 1, 2008 11:16 AM

  • List box display depand upon another list selection

    hi all
    i m trying to generate a listbox depanding upon the selection of first list box. like if i select option 1 in first listbox it should display a database table in other list box, if 2nd then display other db table & so on.
    is it possible.
    plz give some suggestion or code
    regards

    in the list box selection event call submit function [\b]and pass the value to DB which queries against that value and populates the required list box.

  • CSS -- background color doesn't show with scroll bar

    I have a nav bar with a background-color that shows up fine if the image opens to the right size.  If, however, the window opens small and I have to use the scroll bar to move things over, the color for the nav bar isn't there.
    Any thoughts would be appreciated.
    Here's the code:
    HTML:
    <body>
        <div id="Global">
            <div id="navHeader">
                <div id="navBar">
                    <ul class="navStyle">
                        <li>Home</li>
                        <li>Chamber Info</li>
                        <li>Event Galleries</li>
                        <li>Contact Us</li>
                        <li>Join</li>
                    </ul>
                </div>
            </div>
        </div>
    </body>
    CSS:
    @charset "utf-8";
    /* CSS Document */
        padding:0 0;
        margin:0 0;
    body{
        background-color:#f1eee3;
    #Global{ margin:0 auto;}
    #navHeader{
        width:100%;
        height:40px;
        margin:0 auto;
        background-color:#bfbfbf;
    #navBar{
        margin: 0 auto;
        width:960px;
        text-align:center;}
    .navStyle{
        font-family:"Eras Medium ITC",Arial, Helvetica, sans-serif;
        font-size:18px;
        padding-top:10px;
    .navStyle li{
        display:inline;
        padding-left:20px;
        padding-right:20px;

    Does this help?
    #navHeader{
    width:100%;
    min-height:40px;
    _height:40px; /**for IE6 only**/
    margin:0 auto;
    background-color:#bfbfbf;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • The problem of using timer in long windows with scroll bar

    Hello everybody!
    There is a problem of using timer in windows with scrolling. Lies in the fact that at the moment of the trigger "when-timer-expired", is "jumping" on the active field in the form (where the cursor). If the user scrolls at this moment unscrewed to view another location below, or higher, then it will then "jump" from the viewing area.
    I tried to fix the problem by replacing the timer in Forms, a timer in the JavaBean.
    It did not help. At the moment of the trigger WHEN-CUSTOM-ITEM-EVENT of JavaBean, anyway there is a jump.
    I have not a few forms, but only one form. With one long window.
    I use Oracle Forms 10.1.2.3.
    The forum discussing this problem. But it has not been resolved, I think. It is also proposed to destroy and recreate the timer at the transition between the forms. But the form I have just one!
    Has anyone encountered this problem? What are the solutions?

    CraigB wrote:
    Could you explain the overall affect you are going for? Perhaps if we knew what you were trying to achieve we could offer potential solutions that don't involve using a Timer or perhaps a differnt way to use the Timer.
    Craig...No.
    In different tasks, different purpose of timer. Can I use the timer without jumps?

  • ESS Display/Print pop-up missing scroll bar

    We are on EP 6.0 SP 17 and trying to implement the ESS ERP2004 business package.  Under Travel and Expense -> My Trips and Expenses, when we select an existing expense report and hit the Display/Print button, the expense report launches in a new window but depending on the user's desktop screen resolution, the scroll bar may not appear even when scrolling needs to occur to see the entire expense report.  Has anyone encountered this issue and found a resolution?  We cannot control a user's screen resolution.
    Kim

    You can now find the pop-up block icon on the right side of the location bar.

  • Since 10.4.4 safari has problem with scroll bar visualization...

    after the install of x.4.4 i have a strange occurance with safari. as seen here: http://dcxkid.case.edu/Picture%201.png the scroll bar becomes part of the web page image, and scrolls with the page, but becomes dysfunctional as a scroll bar. if i scroll back up, it sometimes goes away... if i wait when the page first loads, the scroll bar may completely disappear. what gives? any ideas or suggestions?
    pb 12''' 1.5 768mb ram   Mac OS X (10.4.4)  

    The same thing happened to me sometime in November, I think. It was working, and now it only zooms in except when I spin the wheel rapidly down through multiple detents (logitech mouse). Double checked it in a newly created account. Same thing happens. Works fine in Firefox but I like using Safari.

  • How can I get a tab to open in an oversize jpg image in its original size with scroll bars when I click on a link?

    I have a small program for storing my genealogy names and jpg images of the census pages where each name is found. The images have a thumbnail link that opens in a new tab to view the actual oversized census page. In the new tab the census page is small and not readable. How do I get the jpg image to appear in its original size with schroll bars so I can read the census in the firefox browser without using the zoom feature. It takes several clicks on the zoom to get the image to a readable size and that is time consuming, especially when I have several images opened.

    That works, thank you!
    Could I suggest that this feature (the ability to turn off or turn on the auto-resize of images) be part of the Options tab on Firefox? I think it's a setting that some users might want to change fairly often--even toggle back and forth on. It's a little annoying to have to go into about:config every time to do this.

  • How to dynamically resize a display component to avoid vertical scroll bars?

    Hi,
    I have a Flex 2 chart embedded within my html page. I have a
    hard coded height and width for the object tag. The problem is that
    my Flex 2 chart application is created dynamically based on the
    meta-data and as such may or may not be bigger in size than the
    size that I have set. In such cases, Flex shows the scroll bar.
    On creationComplete, I want to be able to detect the true
    size of the flex app i.e size that includes both the view area and
    the area that is hidden but scrollable. I have tried height, width,
    verticalScrollBar.maxHeight etc. but none of them give me the
    height and width of the whole app. Is there a way to get that in
    ActionScript?
    Thank you,
    AN

    Hi!
    Try to read this:
    http://blogs.sun.com/winston/entry/button_header_table
    I hope it will help You.
    Thanks,
    Roman.

  • EDGE and HTML dynamic text in a "box" with scroll bar

    I'm new to EDGE, a win7pro master collection cs5.5 suite owner. I'm mainly in the Film/Video post production field (mostly AE, PPro, Pshop, IA) but have been branching into web design the last couple of years.  I use Dreamweaver, Fireworks, Flash. While I'm a expert user with all the Film/video apps, I would say I only have intermediate ability with the web apps. While I understand a lot of programing logic bulding blocks I'm not a coder.
    So since we're told "flash is dead",  my interest in Edge is to try to do some of the things that I can currently do in flash in  EDGE. I was excited when Edge first came out but lost interest when it became obvious that Adobe was not going to offer Edge and Muse to "suite owners" but only in their force feeding of the "Cloud". Better known as the "golden goose" for adobe stockholders and a never ending perpetual hole in the pocket for users. Anyway....
    I spent the last couple of days doing some of the tuts and messing with the UI. It's matured a lot since I was here last.
    I've been working on a flash site for a sports team where one of the pages is a player profile page where college recuriters and other interested parties can view recuriting relavent info/stats about players. This is how it works. While on the "Team" page a users clicks on  a button labled "Player Profiles" . (Animation) A "page" flies in and unfurls from the upper right corner (3d page flips effect created in AE played by flash as a frame SEQ). Once it lands filling most of the center of the screen there is a bright flash. As the brightness fades we see the "page" is a bordered box with a BG image of a ball field(End). (Animation) from behind the border in fly small pictures (player head shots with name and jersey number). They stream in and form a circle like a wagon train and the team logo zooms up from infinity to the center of the circle(End). As the user mouses over a player's pic it zooms up a little and gets brighter (like mouseover image nav thumbs for a image slider). If the user clicks on a player's head shot it flips over and scales up to become a text box with a scrollbar. The content of the box is a mix of images, static and dynamic text fields populated from data in an "player info data base" XML file, and some hyperlinks. It's all kept updated dynamicaly with current stats, info and images from the XML file. There is also a "PDF" button that allows the user to open/save/print a PDF of the player's profile (the PDF's are static files for now but the choice of which pdf to retrive is dynamicaly supplied via the XML file.
    So.... Is Edge now able to do something like this?  Would it need to be a collection of small animations? could these be "assembled" and connected as an asset in dreamweaver ?
    I thought I would approach this from the end (ie click on an image and display a box with dynamic TEXT fileds. ) since that is the most important part, ie displaying the dynamicaly updated profile info.  Sooooo....
    Can Edge display a scrolling text box with Images, static text, and html dynamic text in it??
    Joel

    The code is in composition ready. Click the filled {}

  • In version 16 and 17, I can't open a list box from a site, but with version 15 (and bellow) that works just fine.

    In a site I have a box, with a list of values, but in version 16 and 17 I can´t open that. Version 15 and bellow didn't have any problems to open the list of values.

    Any errors in the Web Console (Web Developer > Web Console;Ctrl+Shift+K) or Error Console?
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Proposal list not displayed correctly when selected with a layout

    Dear All
    I have an issue with payment proposal list.
    When i select EDit tab on F11o and click on proposal list, i can see the proposal list for all company codes selected in parameters.When i click on change layout the system asks me maintain variant and when i click on yes it shows me the list only for one company code.
    the new layout only shows me list for exception items and does not include payment proposal items from another company code...
    can somebody please help
    thanks
    sanjeev

    Early implementations of the POJO Factory set the default display size to 12, which caused corruption in the display starting from the 12th character when the size exceeded the display size.
    Would you try specifying the MemberColumnDisplaySize property for that column in POJOResultSetFactory to reflect the actual size?
    Sincerely,
    Ted Ueda - Developer Support

  • ADF table - problem with scroll bar

    Hi all,
    I am using Jdev 11.1.1.0.1. I have a Read only View object that retuurns more than 2 million records. When i add this VO to the jspx page as an ADF read only table, scrollbars are not applied. Here is the page layout.
    <f:view>
    <af:document>
    <af:messages>
    <af:form>
    <af:panelGroupLayout layout="scroll">
    <af:table inlineStyle="width:100%; height:400px;">
    </af:table>
    </af:panelGroupLayout>
    </af:form>
    </af:document>
    </f:view>
    the table's range size is set to 25. What could be the wrong here? I have also tried using ContentDelivery - Immediate and AutoHeightRows - 20. But that also didn't work. this approach worked fine for tables that have less number of records.
    Pls help me with this.
    Thanks.

    Can you try and print out the estimated row count on the page to get the real number? #{binding.Iteratorname.estimatedRowCount}should do it.
    If this gives the right number you can try to find out if it is a bug in the framework by overwriting the method getQueryHitCount in the VO in question and just return a fictive number
        public long getQueryHitCount(ViewRowSetImpl viewRowSet)
            return 5000;
        }If you then see the scrollbar you can increase the number and find out when the scrollbar disappears.
    Timo

Maybe you are looking for

  • Non - ASCII characters in textinput box

    Hi, I have a flex application where I have a TextInput box. If you paste the following (non-ascii characters) into it: "" ''¡¢£¤¥¦§¨©ª«¬ ®¯°±²³´µ¶·¸¹º®¯°±²³µ´¶µ·¹¸º»¼½¾¿ÀÁÈÉÊËÌÍÏÎÐÒÔØÖöõôóòññó" all you are left with is: I am guess its some configurat

  • Can not add events in my calander

    Hi i can not add events to my calander since i updatet my ipod touch to ios 5. Can you help me ?

  • I need to turn bonjour on for my iphone to connect to itunes

    when i try to connect my iphone4 to itunes it says i cannot connect because my moblie device is not started, then it says something about bonjour needs to be turn back on

  • Can't connect to WRV200 config from Win 2k3 server

    We have 2 servers running Win 2k3 Server, both of which I can not connect to the configuration on our WRV200 router. Here is our current setup. DSL > WRV200 > 8 Port Linksys Gigabit switch > Servers and Other Gigabit switch to all workstations. When

  • How do i start mozilla-mail ?

    hey there, back in my Debian days, i would start mozilla from the run line (fluxbox) by typing mozilla-mail, mozilla-browser, etc. i am wondering if i can find a way to still do that. right now i can start mozilla by entering mozilla and that calls u