Making a Group or Panel Scroll

I have an application that builds a dynamic group object with controls shown in rows based the number of fields returned from an xml file. The window looks something like this:
GROUP
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
checkbox | statictext | edittext| checkbox |
I cannot control how many fields are returned as it is variable for each publication. The problem is that the UI grows vertically to match the size using the autolayoutmanager and may push the window size outside of the screen. I can constrain the Group UI object by setting the maximumSize = [400,400], but if the size of the controls in the group overflow there is no way to make them scroll. So they get clipped. So I thought it might be possible to create a group container that contained a scrollbar and a inner group object that would house the gridrows and use the onDraw method of most scriptUI controls. But I am finding this hard to do. Has anyone encountered a similiar situation or can help guide me on how to do this?
I have attached a prototype that I was working on below
var resUI =
"dialog{ alignChildren:'stack', \
outerContainer: Group{ \
groupContainer:Group{\
orientation:'column', \
maximumSize:[400,400] \
scroll:Scrollbar{ \
preferredSize:[20,400] \
var dialog = new Window(resUI);
with(dialog.outerContainer.groupContainer)
for(i = 0; i < 25;i++)
add("button",undefined,i);
//When the user changes the scrollbar determine
//how to make the groupContainer scroll to match the appropriate
//viewport
dialog.outerContainer.scroll.onChange = function()
var ticks = this.value;
//gfx = dialog.outerContainer.groupContainer.graphics;
var groupContainer = dialog.outerContainer.groupContainer;
for(var i =0; i < groupContainer.children.length;i++)
if(i < ticks)
groupContainer.children[i].visible = false;
else
groupContainer.children[i].visible = true;
dialog.layout.layout(true);
dialog.show();

Here is another example of ScriptUI scrollbar experimentation:
http://www.indiscripts.com/post/2010/12/scriptui-challenge-jpeg-links-explorer
@+
Marc

Similar Messages

  • The app icons and font on my iPhone 4 just went to massive making it difficult to even scroll how can I change it back, where do I go which menu? Thanks in advance

    The app icons and font on my iPhone 4 just went to massive making it difficult to even scroll how can I change it back, where do I go which menu? Thanks in advance

    Next time you accidentally use 3 fingers it will zoom again. Unless you need the feature you're better to turn it off

  • Keyword panel scrolls too fast

    When I try and drag a top-level keyword to keyword folder, the keyword panel
    scrolls by at light speed. I keep going up/down/up/down to try and stop at
    the correct folder, and as I add keywords, this task will become even more
    tedious. Is there an easier way to organize my keywords into folders?
    Best,
    Christopher

    I have found this to be a problem as well. Like other products, the scroll speed should start slow, and only speed up if the user moves the cursor further outside the panel.
    Vista on Dell XPS 710.

  • Front panel scroll bars are missing

    Hi
    Can somebady tell me how to get my front panel scroll bars back. Block diagram is showing them but front panel is not. i can probably open another vi and copy and paste my application. Thanks

    suni wrote:
    Can somebady tell me how to get my front panel scroll bars back. Block diagram is showing them but front panel is not. i can probably open another vi and copy and paste my application. Thanks
    What is your LabVIEW version?
    All the above responses only apply if your front panel does NOT contain splitter bars. Once you have splitter bars, things get a bit more complicated and you can easily create a situation where the scroll bars are also off in edit mode and the VI properties cannot get them back directly.
    What you need to do is right-click in the splitter bar and select e.g. right pane (or whatever) as follows:
    Message Edited by altenbach on 09-17-2008 03:56 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    recoverScrollers.png ‏17 KB

  • When I select a local adjustment, how do I make the new adjustment panel scroll with the default panels

    In lightroom, in the Develop module. When I select a local adjustment for example the brush tool or the gradient tool, the adjustment panel for the particular tool comes up in the sidebar where I can make adjustments to these tools (shown in figure below).
    Now my question is with this adjustment panel, it seems to be overlaying on top of the other default adjustments (e.g. the "Basic panel" - the exposure, contrast etc.) and when I scroll down on the other adjustments, the brush tool or the gradient tool adjustment panel is always on top and does not scroll with the default adjustments.
    I would like to change the setting of this so that the adjustment panel is part of the other default adjustments in the develop module and scrolls with them,
    I know this is possible because I've seen videos online where this is the case and my lightroom on another machine does this.
    Would anyone know how would I change the setting for this?

    It seems to depend on the actual size of the Lightroom window. Just messing around with both LRCC and LR5 on my MBP 15" retina, with a 1920 x 1200 external monitor, and both Lightroom versions will happily scroll the Adjustments panel as well as the others, but only if the size (i.e. height) of the Lightroom window is below a certain level. So on the retina screen, when the display is set to "Best for Retina", the adjustments panel scrolls with the others. But if I change to the native 2880 screen resolution, and expand the LR window to fit, then the adjustments panel does not scroll.
    Similarly if I move LR to the external monitor, same thing, i.e. adjustments panel does NOT scroll when the LR window in maximised, but it does scroll when I lower the height of the LR window (seems to be round about the 1600 pixel mark)
    It's the same using LR5, and the same on the Windows platform. I suspect it's somehow based on the height of the adjustments panel in relation to the overall height of the LR window, i.e. the adjustments panel does not scroll when there's sufficient overall space in the right-hand panel to allow sight of the one or more of the other tools below. 

  • Hide/Show a Panel group or Panel Box with a command link

    I need to show and hide a panel group/box that has a lot of components inside ..with a command link ...I need to do this with partial submit ....please advise.
    <af:commandLink >
    hide the panel box with all the comps inside it ..change commandlink text ....
    use the same command link to show the panel box and change the command link
    text back
    </af:commandLink>
    <af:panelGroup layout="vertical">
    <af:panelBox>
         <af:panelGroup>
    ALOT of components .......
         </af:panelGroup>
    </af:panelBox>
    </af:panelGroup>
    I tried with partial trigger ..I tried everything i know ..it did not work .....it only worked I do a I full submit and setting some processScope(session) variables ..
    Thanks.

    Hi,
    - have a managed bean in session scope
    - define a boolean variable that is set to true
    - expose the variable through a public method
    - use EL on the panelBox rendered property to link to this boolean method
    - define an action listener on the command link and set the autosubmit property to true
    - use the action listener to set the boolean value
    - define a value for the ID property of the command link
    - set the ID vaule to the PartialTrigger property of the panelGroup component
    Frank

  • Adobe Reader Bookmark panel scrolling

    We have documents with a large number of bookmarks. We would like to be able to scroll through the bookmarks but there is no scroll bar on the bookmarks panel. The mouse wheel allows us to perform this action, however we are using a smartboard to display the pdfs so that's not an option.
    Is there a way to display a scroll bar in the bookmarks panel or enable clicking and dragging in the panel to make it easier to scroll through the bookmarks?
    Thanks

    I had the same issue and this post was the first result on Google. After seeing no replies I immediately gave up searching and instead dropped into Adobe Reader's View menu and started tinkering.
    SOLUTION:
    It turns out Adobe Reader changes some settings on installation if it detects certain hardware (eg. a touchscreen). In this case the offending option is 'Touch Mode.' To get to the option (in Adobe Reader Xl v11.0.07 on Windows 7) go to 'View'->'Show/Hide'->'Toolbar Items' and click on 'Touch Mode.' There's a checkbox next to it that is always checked on my system but clicking it does seem to toggle a vertical scrollbar in the bookmarks pane.
    I have no idea why someone at Adobe decided it would be a good idea to disable the scrollbar at all, ever. It makes it impossible to navigate large PDFs like technical manuals and there's no notice at all to the user that settings have been "optimized" for a touch interface.
    It would be nice of the program to ask before doing in the future. But instead the distinctions between malware and products like Adboe Reader (with all its many issues, vulnerabilities and shady behind-the-scenes operations) continues to blur year after year. I hope this helps someone else having the same issue and maybe someone from Adobe might read this and take my advice to heart.

  • How to define area of front panel scroll bars so that you can't scroll to empty areas?

    The front panel of my executable VI has scroll bars.  Is is possible to set the scroll bars so that one
    cannot scroll to areas where there isn't anything present?  Can I define the usable area of the front
    panel to labview?
    Thanks...
    -Umar.

    Hello...
    Try this one==>>      File - VI Properties - Window Appearance - Select Custom - Customize - Deselect Show Scroll Bars - Save VI
    Hope this will help you...

  • Dynamic group spark with scroller component

    Hi,
    I am creating a dynamic group(mygrp) spark and adding elements using addElement function. I need to add a scroller to the main group object dynamically. I tried with same method [myScroller.addElement(mygrp)]. But that is not working. Please help me to resolve this issue. Basically I have a main contaner group object. Insided that some other group object, label, buttons using for loop. I need to give scroller for main group object.
    Many Thanks in advance

    Hi,
    I am creating a dynamic group(mygrp) spark and adding elements using addElement function. I need to add a scroller to the main group object dynamically. I tried with same method [myScroller.addElement(mygrp)]. But that is not working. Please help me to resolve this issue. Basically I have a main contaner group object. Insided that some other group object, label, buttons using for loop. I need to give scroller for main group object.
    Many Thanks in advance

  • Dynamic group spark with scroller

    Hi,
    I am creating a dynamic group(mygrp) spark and adding elements using addElement function. I need to add a scroller to the main group object dynamically. I tried with same method [myScroller.addElement(mygrp)]. But that is not working. Please help me to resolve this issue. Basically I have a main contaner group object. Insided that some other group object, label, buttons using for loop. I need to give scroller for main group object.
    Many Thanks in advance

    Hi Shailendra, the articles below should provide some guidance on how to go about this:
    http://www.systemcentercentral.com/creating-dynamic-computer-groups-using-regular-expressions-in-opsmgr/
    http://social.technet.microsoft.com/wiki/contents/articles/7205.operations-manager-dynamic-group-examples.aspx
    https://technet.microsoft.com/library/hh212842.aspx
    If you've found this post helpful,  please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    MrChiyo | My blog: Technical | Twitter: MrChiyo

  • Scrolling menu panel scrolls whole stage content, how to restrict EventListener to mouse.y 90 ?

    hei folks,
    the snippet attached works great, it scrolls (parallaxed) my
    menu horizontally left to right, when I move my mouse horizontally
    over the menu panel.
    But if I klick on the menu buttons nested inside this menu
    panel, they do appear, unfortunatly does the content also scrolls
    horizontally if I move to the menu to select another Button :(
    I am not able to modify this code-snippet from user kglad,
    that it doesnt scroll the whole stage but the panel itself.
    Can someone please give me a hint, on this menu I have spent
    hours, bloody learn curve.
    source of this code: user
    kglad - thank you very much kglad btw.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=665&threadid =1324923&highlight_key=y&keyword1=scroll#4807043

    thank you very much, even though the following problem
    remains, I'm sure that there is just a minor misconception of mine:
    this mc is horizontally scrolling a menu if the mousesY is 90
    and 250 (its row of buttons is longer than the stage) the buttons
    and their common timeline are nested inside the front_mc. if I go
    sidewards over the menu and its scrolling left/right & I hit a
    button the content is drawn, but when I head back to the menu and
    it's scrolling, so does the drawn content analogue to the menu
    (synched).
    I must have organized it wrong.
    front_mc.addEventListener(MouseEvent.MOUSE_MOVE,f);
    var t:Timer=new Timer(30,0);
    t.addEventListener(TimerEvent.TIMER,moveF);
    function f(e:MouseEvent) {
    if(root.mouseY > 90 && root.mouseY < 250) {
    t.start(); }
    else {
    t.stop();
    var speed:Number = .9;
    function moveF(e:TimerEvent) {
    front_mc.x
    =speed*front_mc.x+(1-speed)*(stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidt h;
    back_mc.x =
    speed*back_mc.x+(1-speed)*(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
    if (Math.abs(front_mc.x-
    (stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth)<1
    Math.abs(back_mc.x-(stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth)<1)
    front_mc.x =
    (stage.stageWidth-front_mc.width)*root.mouseX/stage.stageWidth;
    back_mc.x =
    (stage.stageWidth-back_mc.width)*root.mouseX/stage.stageWidth;
    t.stop();
    e.updateAfterEvent();

  • Static Group headers while scrolling "Down"

      Finally got Row Header to stay present while "scrolling down". 
    Now I would like to have the 1st group row also remain present while scrolling down in the details.  Any
    options?

    Hi Marzipan24,
    Sorry for misunderstanding you question in my former reply.
    In a table, if we want to freeze column header, we should make the changes in the first Static row group in Row Groups pane with Advanced Mode. For more details, please see:
    In the Grouping pane, click the arrow that appears to the right of the Column Groups label, and click Advanced Mode to display all groups. You have done this according to the picture you posted.
    In the Row Groups sections, click the first Static group, and then in the Properties window, set the RepeatOnNewPage property to True.
    The following screenshot is for your reference:
    Besides, if we want to freeze column header in a matrix, we can enable “Repeat header columns on each page” and “Keep header visible while scrolling” options in Column Headers in Tablix Properties dialog box.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • AD integration, making AD groups members of OD groups

    Hello everyone!
    I have a 10.4.8 server bound to AD. It is an OD master. On order to define Mac OS X preferences for my users/client computers, I need to work with OD groups.
    So I create a new OD group, and grab the appropriate AD user groups and make them members of the OD group. Then, if I define this OD group as the one authorized to log-in to a specific machine (in the OD machine groups), and manage the login preferences for that machine so that it shows the list of authorized users at login. No go! Nothing happens.
    If I add a single AD user to the OD group, all is well, and it shows up in the list of users at the login screen of the machine.
    So, Open Directory does not seem to be able to see the members of Active Directory groups. Bummer!
    Ideas anyone?

    Well, this issue really seems to be limited to a specific area.
    In my testing, I was able to assign specific permissons on a shared folder to an AD group. The members of that AD group were able to connect to the mac server and have only the permissions I gave them on that folder, which is hosted on the Mac server.
    So in that case, the AD members are 'seen' by the Mac server. But not when it comes to populating a login screen list.

  • Making JTree custom renderer panel scalable

    Hi, everyone. I have made custom TreeCellRenderer which extends JPanel. Panel's background is in different color than JTree's backgound. I need to get my panel rendering the nodes to fill the whole space JTree has in it's parent panel horizontally. For now I have put static width to nodes and it looks fine, but it's not scalable. If I don't put any sizes the panel takes only the size it needs in cell and the outfit is crappy because of panel's different bgcolor. Is there any easy way to make rendering panel use the width which JTree has in it's container. I have implemented getPreferredSize() method in custom TreeCellRenderer and now it returns the static width and height of the rendering panel. Do I have to get JTrees container panel's width every time and pass it to renderer and get size somehow from there or is there some easier way.
    -e

    Yes, there is a reason. Different levels of nodes contain different components. Example main level nodes have print and save buttons on the most right of the panel. Only leafs have same bgcolor as the tree has and those are already now scalable, because size is not set for them.

  • I need help making tab groups.

    I have selected tab group and a box comes up with all my tabs on it. The tabs are very small and will not let me drag them off. It moves the whole box around . I can not make the box or tabs larger. I can click on them and it brings up the site but I can not drag them off to make a group out of them. On the video the tabs or large showing the page . Mine are just the icons showing that will not let me drag off. How do I the tabs in groups. Thanks

    As far as I know this will be included in the next ISO release. I solved it by manually bringing the dmraid package to the install and wrote a guide on installing your root system on dmraid. However when the system crashes I have the slight inconvenience of having to install dmraid and manually mount the sets to do a recovery. I guess this is the part you want to get rid of aswell. I decided to wait until the next holy ISO.

Maybe you are looking for

  • Error while Deleting Software Component

    Hi All, I am getting following error while deleting Software Component Version: Unable to Delete object DELETEDEMO_COMPONENET, 1.0 of delete. You cannot delete a sotware component version if it contains imported interfaces. Is there any shortcut isnt

  • Want to get a popup when sales order is created or saved

    hi all ,          I want to get a popup when sales order is created or saved .Is there any  user exit for the same? thanks in advance , Naval bhatt

  • My Itunes can't see my music on my NAS /synology

    My Itunes 10.1 cant see my music on my NAS. For a period it could only see videos on my nas and n o music, but now the NAS is completely gone. The NAS is functioning quite well on other platforms - but not the new version of Itunes. Ahat is the probl

  • Where could i place the RTF file (locally or in server custom top)

    Hi guys, I am very new to xml report publisher and I completed one RTF template successfully and i am accessing oracle apps through my client instances which is in USA. I dont knw where to place the RTF file whether in my local system or in the custo

  • PO output with Manufacturer Part number

    Hi, We created PO with Mfr Part number and Manufacturer. But in the PO output (print) we are not able to see this information. Why we are not able to see this? Can somebody help on this. Thanks, Venkat