Image control synchronizing scroll bars

Hello, I have a LabVIEW program using Vision that I want to use multiple Image controls in a VI.  I would like to be able to synchronize the movements of the scroll bars.  If a user scrolls left in one window, I want the other window(s) to also scroll left the same amount.  Is this possible?  I know it can be done with 2D picture controls but I would like to do this with a Image control (not external).  It would also be helpful to zoom synchronously.
Thank you.
Solved!
Go to Solution.

-I think we can enable/disable the scrollbars through property nodes. Let's see if anyone else has idea on programmatically moving scrollbars for image control.
-For zoom you can use zoom property node of selected image control and write the same to other image controls.
Thanks
uday,
Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
Certified LabVIEW Associate Developer (CLAD) Using LV13

Similar Messages

  • When and How to get the Text.ScrollPos value of a String control when scroll bar position changed

    Hi, 
    I'm working on a feature triggered by scroll bar position of a string control changed.
    But I could not find a good way to catch the scroll bar position changed event, 
    the scroll bar is controlled manually by mouse down → mouse move → mouse up, I want the get the Text.ScrollPos value when user mouse up, and compare with the maximum value.
    But the problem is,  mouse up on the scroll bar could not trigger String: Mouse up event!
    So I have to get the Text.ScrollPos continuously in the background in Timeout event, but I think it’s not efficient.
    Do you have any better idea on when to get the correct destination value of Text.ScrollPos?
    I plan to store the value of Text.ScrollPos in the bottom(maximum value) in a shift register, then compare the current Text.ScrollPos value with the max one.
    If it comes close to the bottom(90%~100% of the maximum value), then the close to bottom LED will turn on.
    Attachments:
    scroll bar pos changed.vi ‏15 KB

    Hello Cecilia,
    I don't think there is any build-in event for this.
    One solution would be to create your own user event at the initialisation of you main and launch a thread which is going to be pulling the value of your scrollbar position:
    Then you can build your main as if they were a scrollbar move event.
    And dont forget to close the thread and destroy the event at the end.
    Hope it helps.
    Attachments:
    Scrollbar event.PNG ‏10 KB

  • Multi-image (300+) horizontal scroll bar buttons

    I am new to DreamWeaver, and need some guidence: I need to
    create 300+ square image buttons in a horizontal scroll bar, but
    haven't been able to find how to yet. Can someone direct me to
    where I may find out how to create this?

    So what are you having trouble with exactly -- Making 300 +
    images with
    your image editing software or making a horizontal scroll bar
    in DW?
    Why exactly do you want to make people scroll through 300+
    image buttons?
    Is this supposed to be an image gallery or something? Sorry
    for all the
    questions but it's hard to picture what you're trying to do
    without more
    facts.
    --Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com
    "J. Donovan Smith" <[email protected]> wrote
    in message
    news:fc1iks$4td$[email protected]..
    > I am new to DreamWeaver, and need some guidence: I need
    to create 300+
    square
    > image buttons in a horizontal scroll bar, but haven't
    been able to find
    how to
    > yet. Can someone direct me to where I may find out how
    to create this?
    >

  • Reportviewer Control vertical scroll bars

    Hi,
     I am using report viewer control to display reportins in a web application. For some reason I am not able to get the vertical scroll bars to show up. As a result the lower portion of the report is getting hidden. This was working in VS 2005 but it breaks in VS 2008. I tried some combinations of Size to Report Content, Asynch Rendering etc., but have not found any combination that works. Can anybody please help?
    Thank you

    I can't repro this. If the report doesn't fit the control height, ReportViewer shows vertical scrollbars. In my case, ReportViewer is configured as follows:
    Code Snippet
    <div style="padding-top:10px">
    <rsweb:ReportViewer ID="reportViewer" runat="server" Visible="True"
    Width="100%" Height="100%"
    ondrillthrough="reportViewer_Drillthrough" BorderStyle="Inset"
    BorderColor="Silver" BorderWidth="1pt"
    ExportContentDisposition="AlwaysInline" AsyncRendering="True">
    </rsweb:ReportViewer>
    </div>

  • Controlling Cursor/Scroll Bar

    Hi All,
    I have a long interactive report which is stretched to many pages, now when I click on any of the lines in any page it gives me more data below that line as in hierarchy. I have the problem when I click on any such line which is not displayed in the first page, cursor is again set to the first page(after the report is displayed as the report is rewritten) and I have to scroll down to find my line.
    Can anyone have any idea how can I set the report in such a way that I need not scroll down to find my line. I have tried with "Set Cursor line sy-lilli". Any other ideas & how?
    Thank You All in advance.
    Cheers....

    Please see this example. It's not perfect, but you get the idea.   You must create the gui-status and assign function code "LINE".
    report zrich_0002 no standard  page heading
                     line-count 10
                     line-size  80..
    data: begin of imara occurs 0,
          check type c,
          matnr type mara-matnr,
          end of imara.
    data: position type i.
    data: page type i.
    start-of-selection.
      set pf-status 'LINE_NUMBER'.
      select * into corresponding fields of
                 table imara from mara up to 200 rows.
      perform write_list.
    at user-command.
      case sy-ucomm.
        when 'LINE'.
          scroll list to page page.
          set cursor line position.
      endcase.
    at line-selection.
      position = sy-lilli.
      describe list line sy-lilli page page.
      read table imara with key matnr = imara-matnr.
      if sy-subrc  = 0.
        if imara-check = space.
          imara-check = 'X'.
        else.
          imara-check = space.
        endif.
        modify imara index sy-tabix.
      endif.
      perform write_list.
      set user-command 'LINE'.
    *       FORM write_list                                               *
    form write_list.
      sy-lsind = sy-lsind - 1.
      loop at imara.
        format hotspot on.
        write:/ imara-matnr.
        if imara-check = 'X'.
          write:/ 'this material has now been expanded'.
        endif.
        hide: imara-check, imara-matnr.
        format hotspot off.
      endloop.
    endform.
    Regards,
    Rich Heilman

  • Can the picture control appear scroll bar(further, automatically appear is what i want most) ?

    i use the picture control to draw linr or text in it,but when the line or text's position exceed the border,i must use mouse to stretch the picture control's border to see the line or text all,my question is :did the picture control can appeart scrollbar automatically ,or .can stretch or extend border automatilly ?
    Attachments:
    how_to_auto_scroll_for_picture_control.vi ‏26 KB

    Dear pyi,
    i tried to put scrollbar, it seems this is not possible.
    But other solution is that i can make picture control larger than the line co-ordinates. I am attaching the same vi with few modifications.
    Hope it helps. Your feedbacks are welcome.
    Best Regards,
    Nirmal
    Attachments:
    how_to_auto_scroll_for_picture_control.vi ‏30 KB

  • Issue in table control scroll bar

    Hi experts,
    In Table control I used the following code,
    Refresh control 'TCDATA' from screen '200'.
    If i use this code i cant able to  scroll the data when the table control having multiple lines.
    Can any one suggest me?. what i need to do for this..
    Edited by: sai.bala on Sep 17, 2010 12:22 PM

    Hi ,
    try this...
    Refresh control 'TCDATA' from screen '200'.
    "write this statement below refresh table control
    * Describe lines of internal table to extend the table control Vertical
    * scroll bar
      DESCRIBE TABLE <tablename> LINES TCDATA-lines.
    prabhudas

  • Table control scroll bar issue

    how to set the scroll bar for table control for the transaction code va42 for billing plan tab.
    i have added few custom fileds for the table control, when i m re-arranging the columns for the table control, the scroll bar is fixed for one field( as standard) and the scroll bar starts from that place. how to fix the scroll bar or control the scroll bar and sets it position for the desired column.

    HI,
    Table control ahs a property called FIXED_COLS. You ave to pass the column number to this property.

  • The scroll bar for Firefox cannot be controlled by the mouse, the only way I can scroll is with the arrow keys, help!!

    I have a brand new Dell Alienware laptop running Windows 7 and I just installed the latest Firefox browser. My problem is that the scroll bar for the browser does not work when using the mouse... the mouse cannot control the scroll bar either by clicking the up or down arrow or by dragging the bar with the mouse. The only way for me to scroll using Firefox is to use the arrow keys on my keyboard.

    Alternatives to Reset Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Start here to find your country, and how you can contact Apple:
             Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Support in your country and ask to speak to Account Security.
              Customer Service: Contacting Apple for support.
    How to Manage your Apple ID: Manage My Apple ID

  • Scroll bar in Content Viewer

    Hello everyone,
    I have place three different height images into a frame and applied scroll bar using Content viewer. I am calling each image through a button.
    My question is:
    Can we control the scroll bar height limiation as per the image's height. Right now its taking the largest image's height as a reference, when i click and check the small height image, i see lot of white space in it.
    Thank you very much.
    Regards,
    Shiva

    What do you mean you added a scroll bar? Do you mean a scrolling frame?
    If so, no, you cannot adjust the size of that dynamically. That said, I still don't totally get what you're doing.
    You can't click to move content in a scrolling frame, only an MSO.
    Bob

  • WD ABAP scroll bars and buttons don't appear

    If I test a transaction and the control or scroll bars don't appear when I test the service via SICF, how can I modifiy it to ensure the controls appear in SAPGUI versus webgui?
    Thanks
    Mikie

    >
    mbrogan wrote:
    > If I test a transaction and the control or scroll bars don't appear when I test the service via SICF, how can I modifiy it to ensure the controls appear in SAPGUI versus webgui?
    >
    > Thanks
    > Mikie
    What? I'm really confused by your question. Is it even about Web Dynpro ABAP?  You are talking about SAPGUI vs. Webgui. What does that have to do with Web Dynpro ABAP?

  • Image Gallery & Scroll Bar

    Just exploring flash as a beginner, still.
    I've come across this website:
    http://www.jeremiahshoaf.com/
    I'm a fan of the scrolling portfolio idea the designer has used in the centre of the website's front page.
    Any ideas how this is produced?
    My presumption would be a MovieClip with images various other MovieClips inside (holding images etc) and then a scrollbar controlling how far across the screen the images are shown with actionscript?
    Knowing me I'm wrong, but any ideas would help me out to explore and learn further.
    Thanks for your great advice, as always.
    .. Also, I wondered if this could be produced, and as well as the scrollbar, the ability to add scrolling with the keyboard, left and right keys? Again, only a presumption, but I was thinking this might be simple with actionscript? Simply a piece of code to tell the scrollbar to move to the next MovieClip, if my initial presumption was correct.
    The above is only a small side note for those who feel they can assist - but thanks again for any help you can provide!
    This forum has been a huge help to me, in learning Flash so far.
    Thanks a lot.

    Well first you need a really long MovieClip with some graphics inside on it. That should be simple enough to do. Then you need a scrollbar. Just a rectangle should do for now. On this MovieClip give it a MOUSE_DOWN event listener and on that event use the "startDrag" function to add dragging functionality. Add a MOUSE_UP event listener to the stage and when that happens call "stopDrag" on the scroll bar clip. Then you can have an ENTER_FRAME event that actually updates the scrolling. On this event, check the scrollbar's x position and do some math to figure out the percentage you have scrolled. It might look like this:
    var percent:Number = scrollbar.x / (stage.width - scrollbar.width);
    Then update the main image container by the percent:
    var minPosition:Number = -500;
    bigImage.x = percent * minPosition;
    Hopefully that should be enough info to get you started.

  • How to get transparency scroll bar to view background image of canvas.

    HI, 
    How to get transparency to path in canvas to view background image in canvas using scroll bar control.?
    This is my present output:
    My Xaml Code:
    <Grid Height="auto" Name="grid1">
    <TabControl Background="Bisque">
    <TabItem Header="Tools">
    <Grid Height="1000" Width="1000" Name="grid">
    <Border BorderThickness="0.2" BorderBrush="Black" Height="820" Width="820" ClipToBounds="True" Margin="90,99,90,81"></Border>
    <Grid>
    <Button Content="Original Size" Height="23" Name="btn_Original" Width="75" Click="btnOriginalSizePosition" Margin="4,4,921,973" />
    <TextBox Height="20" HorizontalAlignment="Left" Margin="62,49,0,0" x:Name="txtNoOfZones" VerticalAlignment="Top" Width="49"
    MaxLength="2" PreviewTextInput="txtNoOfZones_PreviewTextInput"/>
    <TextBox Height="20" HorizontalAlignment="Right" Margin="0,71,890,0" x:Name="txtSec" VerticalAlignment="Top" Width="49" PreviewTextInput="txtSec_PreviewTextInput" MaxLength="3"/>
    <Button Content="OK" Height="32" HorizontalAlignment="Left" Margin="117,59,0,0" Name="btnNoOfZones" VerticalAlignment="Top" Width="39" Click="btnNoOfZones_Click" />
    <Label Content="Zone Number selected :" Height="28" HorizontalAlignment="Right" Margin="0,0,451,0" Name="lblZone" VerticalAlignment="Top" />
    <Label Content="Sector Number in selected Zone :" Height="28" HorizontalAlignment="Right" Margin="364,22,451,0" Name="lblSector" VerticalAlignment="Top" />
    <Label Content="Filled Color applied in selected sector :" Height="28" HorizontalAlignment="Right" Margin="336,44,451,0" Name="lblColor" VerticalAlignment="Top" />
    <Label HorizontalAlignment="Left" Margin="569,0,0,0" Name="lblZoneNumber" Height="28" VerticalAlignment="Top" />
    <Label Height="28" HorizontalAlignment="Left" Margin="569,22,0,0" Name="lblSectorNumber" VerticalAlignment="Top" />
    <Label Height="30" HorizontalAlignment="Left" Margin="569,44,0,0" Name="lblFillColor" VerticalAlignment="Top" FontWeight="Bold"/>
    <Label Content="Sectors :" Height="28" HorizontalAlignment="Left" Margin="7,67,0,905" Width="69" />
    <Label Content="Zones :" HorizontalAlignment="Left" Margin="13,44,0,928"/>
    <TextBlock Height="23" HorizontalAlignment="Left" Margin="4,32,0,0" Text="Change No.of Zones, sectors below and click OK button" VerticalAlignment="Top" Width="294" FontFamily="Cambria" FontSize="12" FontStyle="Italic" FontWeight="Bold" />
    <RadioButton Content="Single Sector" Height="16" HorizontalAlignment="Left" Margin="744,24,0,0" Name="rBtnSingleSector" VerticalAlignment="Top" GroupName="Selection"/>
    <RadioButton Content="Sector Zone" Height="16" HorizontalAlignment="Left" Margin="744,44,0,0" Name="rBtnSectorZone" VerticalAlignment="Top" GroupName="Selection"/>
    <RadioButton Content="Circular Zone" Height="16" HorizontalAlignment="Left" Margin="744,64,0,0" Name="rBtnCircularZone" VerticalAlignment="Top" GroupName="Selection"/>
    <RadioButton Content="Panning" Height="24" HorizontalAlignment="Left" Margin="744,4,0,0" Name="rBtnPanning" VerticalAlignment="Top" Width="74" GroupName="Selection"/>
    <Border x:Name="clipBorder" BorderBrush="Black" BorderThickness="0" ClipToBounds="True" Height="810" Width="810" Margin="95,104,95,86" CornerRadius="10">
    <Canvas x:Name="CanvasPanel" Height="800" Width="800" Background="Transparent" ClipToBounds="True"></Canvas>
    </Border>
    <RadioButton Content="Random Color" HorizontalAlignment="Left" Margin="868,5,0,979" Name="rdBtnRandomColor" GroupName="rdbtnGroupFillColor"/>
    <RadioButton Content="Red Color" Height="16" HorizontalAlignment="Left" Margin="868,24,0,0" Name="rdBtnRedColor" VerticalAlignment="Top" GroupName="rdbtnGroupFillColor" Foreground="#FFF81010" FontWeight="Bold" />
    <RadioButton Content="Green Color" Height="16" HorizontalAlignment="Left" Margin="868,44,0,0" Name="rdBtnGreenColor" VerticalAlignment="Top" GroupName="rdbtnGroupFillColor" Foreground="#FF175F17" FontWeight="Bold" />
    <RadioButton Content="Adjacent" Height="16" HorizontalAlignment="Left" Margin="435,81,0,0" Name="rdBtnAdjacent" VerticalAlignment="Top" GroupName="Selection" />
    </Grid>
    </Grid>
    </TabItem>
    <TabItem Header="Change Background">
    <Grid Height="1000" VerticalAlignment="Top" Background="Bisque">
    <Button Height="70" Width="70" Margin="6,1,892,929" Name="btnBrowseImage" Click="btnAll">
    <Image x:Name="browseIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\img.png" MouseLeftButtonDown="Image_MouseLeftButtonDown_1"/>
    </Button>
    <Button Height="70" Width="70" Margin="92,1,806,929" Name="btnCenterPoint" Click="btnAll">
    <Image x:Name="centerIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\center.jpg" Width="54" Height="48" />
    </Button>
    <Button Height="70" Width="70" Margin="179,1,719,929" Click="btnAll">
    <Image x:Name="boundaryIcon" Source="D:\WPF\Projects\TabControlVRI_18_12_2014\Images\Path_Simple.png" Height="44" Width="49" />
    </Button>
    <Image Name="imgBackground" Height="800" Width="800" MouseLeftButtonDown="imgBackground_MouseLeftButtonDown">
    </Image>
    </Grid>
    </TabItem>
    </TabControl>
    </Grid>
    C# code:
    OpenFileDialog op = new OpenFileDialog();
    ImageBrush ib = new ImageBrush();
    private void Image_MouseLeftButtonDown_1(object sender, RoutedEventArgs e)
    op.Title = "Select a picture";
    op.Filter = "All supported graphics|*.jpg;*.jpeg;*.png|" +
    "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" +
    "Portable Network Graphic (*.png)|*.png";
    if (op.ShowDialog() == true)
    ib.ImageSource = new BitmapImage(new Uri(op.FileName));
    imgBackground.Source = new BitmapImage(new Uri(op.FileName));
    CanvasPanel.Background = ib;
    Please help me out to get transparency for path in canvas to view background image in canvas.
    The complete code is in below link:
    https://onedrive.live.com/redir?resid=876CFAE94C306176!112&authkey=!AC1sQIYwyoRYT_o&ithint=file%2crar
    Regards,
    Viswa.

    Hi ViswAmmu,
    >>Please help me out to get transparency for path in canvas to view background image in canvas.
    If I'm not misunderstanding, I think you just need to loop through all Canvas.Children and set Opacity property for them:
    private void Image_MouseLeftButtonDown_1(object sender, RoutedEventArgs e)
    //Loop through all children items
    foreach(UIElement v in CanvasPanel.Children)
    v.Opacity = 0;
    op.Title = "Select a picture";
    op.Filter = "All supported graphics|*.jpg;*.jpeg;*.png|" +
    "JPEG (*.jpg;*.jpeg)|*.jpg;*.jpeg|" +
    "Portable Network Graphic (*.png)|*.png";
    if (op.ShowDialog() == true)
    ib.ImageSource = new BitmapImage(new Uri(op.FileName));
    imgBackground.Source = new BitmapImage(new Uri(op.FileName));
    CanvasPanel.Background = ib;
    Screenshot:
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Menu, Scroll Bar, Etc. Images Getting Scrambled

    First, the essentials:
    OS X 10.7.5 (11G63)
    MaBook 13-inch, Aluminum, Late 2008
    Memory: 8GB, 1333 MHz, DDR3
    Pictures describe the issue much better than words: http://imgur.com/a/OWwtQ
    As you can see from the above images, my control-click menus, scroll bars, etc. are getting scrambled.
    To me it looks like some image pointers are getting messed up. I happen to be running VirtualBox 4.1.1.18, which seems like it might be related, but I haven't been able to determine this for sure.
    My question is two-fold: first, has anyone encountered a similar issue?
    And, what are some recommendations for narrowing down the cause?

    I had the same issue and after some futzing around I realized its profile related and therefore based on some option. After resetting "gfx.font_rendering.directwrite.enabled" back to false in about:config and restarting ff the problem seems to have subsided.

  • How to activate the Vertival Scroll Bar to Table control

    Hi All,
    I Have created a Module pool table control(Wizard) with Input control,where user can enter the values in the screen.
    In my screen 15 lines are visible,once i enter all 15 rows,vertical scroll bar is active,but rest of all lines are in deactivate mode.
    My requirement is:Once i enter all the visible lines,the remaining lines should be in activ mode(In put control).
    I appreciate your response.
    Best Regards,
    Seshadri

    DATA : BEGIN OF IT_MARA OCCURS 1,
           MATNR LIKE MARA-MATNR,
           ERSDA LIKE MARA-ERSDA,
           ERNAM LIKE MARA-ERNAM,
           MTART LIKE MARA-MTART,
           MBRSH LIKE MARA-MBRSH,
           V_FLAG TYPE C,
           END OF IT_MARA.
    DATA :  WA_MARA LIKE it_MARA .
    CONTROLS TABLE TYPE TABLEVIEW USING SCREEN 100.
    MODULE POPULATE_100 INPUT.
      CASE SY-UCOMM.
        WHEN 'DISP'.
          SELECT MATNR
                 ERSDA
                 ERNAM
                 MTART
                 MBRSH FROM MARA INTO WA_MARA .
            APPEND WA_MARA TO IT_MARA.
          ENDSELECT.
          DESCRIBE TABLE IT_MARA LINES V_TEXT.
          TABLE-LINES = V_TEXT.
          CLEAR IT_MARA.
    Regards..
    Balaji  ( assign if this helps u ..)

Maybe you are looking for

  • My lock button no longer works on my ipod touch and now i have all kinds of problems with it freezing and kicking me out of apps. Is there any way to get this fixed and were would i go to get it fixed?

    Please Help!!!! I have an ipod touch 4th gen.  and since the last update the lock button no longer works, this has caused it to have a lot of problems now like freezing all the time, kicking me out of almost all my apps, some times even when if locks

  • Format Into File bug, repost#2

    Dear All, I have found a strange bug/feature in Format Into File.  A 3 digit integer number argument (eg. 123) together with the format string " %04d" should result in " 0123" being written to file but instead fails with error cluster; STATUS=TRUE CO

  • Export of KM favorites

    Hi all. Does anybody know of an easy way to export the KM favorites of all portal users - and import them into another portal containing the same users? When logged on to the portal as an administrator, I navigate in KM to root > userhome. But I can

  • Obiee nested case when statements

    Hi Obiee Experts, I need to retrieve amounts for 'last september' so i created a column using this case statement: case when MONTH(CURRENT_DATE) <= 9 then (YEAR(CURRENT_DATE) -1) * 100 + 9 END  --  now i want to retrieve the amount for last september

  • Syntax error in GP_ERR_RSAPTD1

    I encountered this error while attempting to activate my InfoSource for 0fiar_C02 cube "Syntax error in GP_ERR_RSAPTD1_____________, row 25 (-> long text) Message no. RG102 Diagnosis "DTFIAR_1" must be a flat structure. You cannot use internal tables