Scroll a window programmatically

This is what I want to do. I have a large image that is
larger than it's canvas container. When I click and drag, I want to
move the image around kinda like Google Maps. I know I can
accomplish this task by scrolling the canvas when I receive a mouse
move. I can't figure out how to scroll the canvas in code.
If there is a better way of doing this, let me know.

assuming you are using actionscript rather than flex xml to
create this project, you should look into the 'scrollRect' property
of the DisplayObject. I haven't used this myself, but its purpose
matches your needs... Otherwise it can be done with
masking...

Similar Messages

  • Snagit v10 build 788 - unable to capture input - scrolling active window

    Hello,
    I use Snagit v10 build 788.
    I cannot use the "Scroll Active Window" option on Firefox 4 Beta.
    It does not work.
    I get the Snagit message : "Unable to capture input".
    Using Internet Explorer or on an other PC the Firefox v3.6, the "Scroll Active Window" option of Snagit v10 is working.
    How to solve it ?
    Thanks
    Caius

    FIXED!
    Guys, you will not believe how easy this is to fix! After hours of frustration I finally discovered a Firefox add-on called '''Screengrab'''. Install Screengrab, then right click in Firefox, choose Save, Complete Page - and you get a perfect scrolled page capture!
    Even better, you can open it in Snagit to work on it further (Screengrab saves it as a png)

  • Problem with Java scrolling text window on Mac OS

    The Java scrolling text window created by AWT "TextArea" scrolls in the normal way from the top on Windows, whereas it scrolls from the bottom on the Mac OS. That is, the text file is first displayed from the bottom on Mac, so that the user has to scroll to the top of the file each time a new page is opened, which is a very nuisance. Have you run into this problem and do you know how to over-ride the Mac OS default? Many thanks.

    TextAreas suck in general, this has been discussed many time in the forum. As a duct-tape fix, you might play around with setCaretPosition() after inserting your new text. Good luck

  • Minimize teststand window programmatically?

    How do I get teststand to minimize it's execution window programmatically within a sequence step? How do I mess with any of the window propertys like making it always on top, maximizing, floating, etc...

    Hi,
    Are you talking about the sequence editor? To do this you need to use the Windows API to perform functions on windows. You can call into the User32.lib and call functions such as CloseWindow (minimize) to manipulate the Windows on the screen. Not sure how you would get about minimizing an execution window inside the parent sequence editor window, but I would think it should be possible. Consult MSDN for more information.
    Bob

  • Samsung p2270 scrolling and window lag

    I have a new 2.8ghz xenon Mac Pro with 6 GB of ram. It's attached to a Samsung P2770HD monitor via a DVI cable.
    When I scroll a window in Safari, or drag any window, or even when a new window is opening, it is extremely laggy and redraws the window very slowly. I've tried adjusting all of the monitor settings with no success. I have no options to change in the monitor prefs.
    Any advice??

    I'm using the same monitor on a macpro with the ATI HD 5770 card. I don't have a problem with moving windows but when I set my resolution to 1920x1080 the image goes off the screen. I can't see any of my icons on the far right or left. Do you have that issue?

  • 3D Graph Render Window Programmatically

    Hello!
    does anybody know how to open the "Render window" of a 3D graph programmatically?
    Thanks
    I ask my question for the second time because nobody replied the first time, maybe it was not clear.

    Thanks Darin,
    it's what I'm looking for but I'm not using the same picture control so the idea is quite different. Attached some screenshots to show what I'm using exactly. If you have any idea how to open that Render Window programmatically, that would be really nice.
    Regards,
    Jimmy
    Attachments:
    Find.png ‏88 KB
    Run-Time Menu.png ‏83 KB
    Diagram.png ‏73 KB

  • 3D Graph Render Window Programmat​ically

    Hello Guys,
    you know it is possible to right click on a 3D picture graph object in run-time and get a new movable window with "Render Window". I would like to be able to open directly that window instead of the front panel picture control.
    Actually I have a 2D graph which allows me to see a basic map, I enter a formula for Z(X,Y) and I want to optionnaly show the 3D result. The X,Y plane is more important than the 3D and the XY graph is more efficient, so I don't want the 3D all the time. Actually it works, I just change the Visible property value True/False and it's okay, but the render window is more efficient, the one on the front panel is a bit slow with mouse dragging...
    Do you know if there is any property or method to open, close this render window programmatically?
    By the way, I would like to know if it is possible to manage "Run-Time Shortcut Menu" for any front panel control, as it is possible with VI Menu bar with event structure. There is a reference constant for the menu bar. I don't find the menu reference for a control.
    Thanks for reading,
    Jimmy

    Thanks Darin,
    it's what I'm looking for but I'm not using the same picture control so the idea is quite different. Attached some screenshots to show what I'm using exactly. If you have any idea how to open that Render Window programmatically, that would be really nice.
    Regards,
    Jimmy
    Attachments:
    Find.png ‏88 KB
    Run-Time Menu.png ‏83 KB
    Diagram.png ‏73 KB

  • Scrolling a window

    Is there a way to open a macro in design view and scroll the window to a desired percentage?
    in VBA of course
    Thanks
    50% of programming is coding. The other 90% is debugging

    ​Hi JonWayn,
    >> Is there a way to open a macro in design view and scroll the window to a desired percentage?
    What do mean by "scroll the window to a desired percentage"? Do you want to open a macro in design view? If so, I think you could try to select the macro object and send the key "CTRL +ENTER" to achieve, some key code like below:
    Sub OpenMacroInDesignMode(sMacro As String)
    DoCmd.SelectObject acMacro, sMacro, True
    '-- CTRL+ENTER will open the macro in design view
    SendKeys "^{ENTER}"
    End Sub
    You could turn to the link below for more information about SendKeys
    # SendKeys Statement
    https://msdn.microsoft.com/en-us/library/office/gg278655.aspx
    If you want to scroll the window to a desired percentage, I am afraid that it is not achievable​, you need to scroll the window manually.
    If I misunderstood you, please feel free to let me know.
    Best Regards,
    Edward
    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.

  • Audio breakup when I scroll a window...

    I was listening to some MPEG3 music on my hard drive with Window Media Player 9 whilst browsing the internet when I noticed the sound distorting whenever I used the keyboard cursor keys to scroll down the page. It doesn't happen if I use the mouse scroll wheel or the mouse to drag the bar down!
    I'm using the mainboard's onboard sound via the latest Realtek AC'97 audio codecs as they are better than the ones that came with the nVIDIA nForce driver pack.
    Can anyone please tell me why the sound breaks up when using the keyboard?

    I've just read in PC Gaming Hardware World magazine that the nVIDIA IDE drivers included in their nForce2 driver pack are a bit buggy i.e. not very good and that you should replace it with the Standard IDE driver included with Windows XP so I'm going to see if that resolves the problem. It apparently affects the ability to burn CDs and DVDs too which I've had a few problems with especially with verifying the data.
    Thanks for your help!
    The weird thing about the sound bug is that if you have the Task Manager open and then scroll the window using the keys the sound plays fine!!! Talk about bizarre...

  • Scrolling and windows resizing

    Is there a way to turn off the feature where if you scroll up or down with your mouse positioned over a windows title bar it resizes the window. This "feature" works with both a standard mouse using a scrollwheel and also when using a touchpad with two finger scrolling.

    The only third party program that I use which modifies the mouse is Sizeup and I have rigorously gone through its setting to determine if it was causing this behaviour. Also the behavior persists even when I shut down sizeup so I don't think it is the cause.
    edit:
    I would also add that this behaviour only appeared after I upgraded to 10.8. While I do have a lot of third party programs running and alot of them were updated when mountain lion was released so it is theoretically possible that this is behaviour is comeing from an external source I have no idea why any of the other programs I have running would affect window resizing.

  • Magic Mouse will not scroll in Windows 7 boot camp, but works fine in Mac OS

    I have a Magic Mouse that was working fine it would scroll and everything, then one day it just randomly stopped working in my Windows 7 bootcamp partiontion. I went to the Mac OS to see if there was anything wrong with the mouse, but it works fine in the Mac OS. I already made sure to install all available software updates but that doesnt seem to have helped. Any help would be appreciated.
    Thank you

    My wireless mouse is not recognized by Bootcamp bluetooth.
    Have you been able to solve your mouse issue?

  • Mac Pro - Scrolling/moving windows Really Jerky and delayed....

    Not sure what's happeneing here... This is a brand New Machine, with ProTools 8 Installed as the only major program. There are ProTools Cards (HD2) and a BalckMagic Decklink HD Pro.
    When ever I open a new windown In Finder, Safari, or any other program, the scrolling function is extremely jerky, delayed, and unusable. Moving a window around on the desktop is the same. Otherwise, computer seems fine. ANy ideas onhow to deal with this? This simply can't be right. Myn Other Mac Pro (2008) works just fine.
    Thanks,
    Todd A.

    Are there updates for BlackMagic or ProTools to be more compatible?
    When did you last run Disk Warrior?
    Any problem installing and updating software or drivers?
    Can you do a clean install or have a backup copy and try?
    Last and least desireable, try with just basic hardware and system.
    Your 2009 has a later build of OS X that still isn't out publicly. It should and could be used on your old Mac Pro and you could test it there. But your system from the 2008, that won't run properly at all on this system.

  • Is it possible to disable the magic mouse scrolling in windows 7?

    I've partitioned my hard drive with bootcamp to run windows 7 for a handful of games that aren't mac friendly. The problem is that once I installed the drivers to use the magic mouse, the scroll keeps jumping around at inconvenient times while I'm playing which makes it pretty difficult. How can I turn the scrolling off? I like having the scroll on the trackpad, but I only want the left and right click on the mouse.

    I use MagicMouse on iMac with Windows 7 running (installed through BootCamp). Got sick of annoying horizontal scrolling. The solution described above has helped me to disable it. Here is what I've done in steps:
    1) go to http://www.autohotkey.com/ and download an app (a script editor).
    2) Install and run the program - please note that it will not open as it runs in the background
    3) Rightclick on the desktop -> choose "New" -> "AutoHotkey Script" (a new script file will be created on the desktop) -> name it as you wish (e.g. "Mouse_HScroll")
    4) Rightclick on the file you've just created and choose "Edit Script" from the menu.
    5) Add these three lines below existing text in the file:
    WheelLeft::return
    WheelRight::return
    #MaxHotkeysPerInterval 5000
    6) Save file
    7) Run "Convert .ahk to .exe" program from the package installed earlier and browse the file you've just created, hit ">Convert<" -> .exe file should be created. Run this file -> the scrolling should be disabled now.
    7) You may wish to move this file to Start/"Autorun" folder, so it would be launched automatically each time you reboot your Mac/PC.
    Hope this helps! Good Luck

  • Scrolling log window guff

    Hi,
    I've got an app that executes external processes, monitors the output of each, and puts it in a log window. The problem is, when I append to the contents of the JTextArea, I don't know how to set its preferred size correctly so that the JScrollPane knows how large the TextArea is. I tried using (textArea.getLineCount() * line height), but that doesn't work because word wrap creates more lines than getLineCount() reports -- instead of setting the JTextArea to the proper size, it's always too big or too small (depending on how many lines were wrapped). Here's my code:
    //check and update all the log windows.
    for(int i=0; i < logWindowUpdater.size(); i++)
         javax.swing.JFrame window = (javax.swing.JFrame)(logWindowUpdater.get(i));
         javax.swing.JScrollPane scroll = (javax.swing.JScrollPane)window.getContentPane().getComponent(0);
         javax.swing.JLabel bgImage = (javax.swing.JLabel)window.getContentPane().getComponent(1);
         javax.swing.JTextArea textArea = (javax.swing.JTextArea)scroll.getViewport().getView();
         java.lang.Process process = (java.lang.Process)buildProcessesVector.get(i);
         try
              String processOutput = new java.lang.String();
              while(process.getInputStream().available() > 0)
                   char readByte = (char)process.getInputStream().read();
                   processOutput += readByte;
              textArea.append(processOutput);
              //because of word wrap, this doesn't work correctly!
              textArea.setPreferredSize(new java.awt.Dimension(560, textArea.getLineCount()*25));
              scroll.getVerticalScrollBar.setValue(scroll.getVerticalScrollBar.getMaximum());
         catch(java.lang.Exception e)
              e.printStackTrace();
    Surely there's a way to do this. It's just a simple, autoscrolling log window. Does anyone have suggestions?
    Thanks,
    Jake

    The problem is that I can't properly set the size (or number of rows and columns) of the JTextArea. You see, it is dynamically updated with the output from a running process, which has some unknown number of lines. I can't set the size or rows/columns without knowing how many "lines" are in the process output, and I can't figure that out because word wrap creates some number of additional rows.
    Here's how I create the log window and add the JTextArea:
    private void createLogWindow(String title, java.lang.Process process)
         javax.swing.JFrame logWindow = new javax.swing.JFrame();
         logWindow.setSize(600, 400);
         javax.swing.JScrollPane logScroller = new javax.swing.JScrollPane();
         javax.swing.JTextArea textArea = new javax.swing.JTextArea();
         javax.swing.JLabel bgImage = new javax.swing.JLabel();
         logWindow.setTitle(title);
         textArea.setFont(new java.awt.Font("Monospaced", 0, 12));
         textArea.setLineWrap(true);
         textArea.setOpaque(false);
         textArea.setPreferredSize(new java.awt.Dimension(560, 300));
         logScroller.setViewportView(textArea);
         logScroller.setPreferredSize(new java.awt.Dimension(560,300));
         logWindow.getContentPane().add(logScroller);
         logWindow.setVisible(true);
         //add this log window to the vectors so it can be tracked and updated
         logWindowupdater.add(logWindow);
         buildProcessVector.add(process);
    }Does that make more sense?
    Jake

  • Scrolling the window

    Hi,
    I have Web dynpro page with ALV table and I would like to delete the scrolling of the browser window that appears default when the table is bigger then the screen. Later the scroll will have to be only inside the table. Is it possible to delete the scroll bars from the window? Thanks in advance for your help.
    Best regards,
    Anna

    Hi Anna,
      I am giving the code to set the Visible rows, so that your requirment is fulfill.
    Here i am setting 15 as visible rows. So that it display always 15 rows instead of displaying all at once. if you have less than 15 then it displays some empty lines also. if you have more than that then you will get scroll bar to the Table not for the browser.
    I think this will solve your problem.
    <b>Code:</b>
    <i><b>*... init TableSettings</b></i> 
    data:  lr_table_settings type ref to if_salv_wd_table_settings.
      lr_table_settings ?= wd_this->r_table.
      lr_table_settings->set_visible_row_count( '15' ).
    Warm Regards,
    Vijay

Maybe you are looking for

  • Another user who can't get this thing started, Listener will not operate!!!

    I installed from root, used port 8085 for the database (8080 used by Tomcat) and 1521 for the listener. Logged out, log back in as user oracle. Takes three full minutes to "start" the listener, but netstat -a does not show any listener on port 1521,

  • Importing Draft AR Invoices

    I am importing AR draft invoices, it imports the header fine but not my lines? When I try to re-import to update it gives me the message : Cannot find this opject in B1 application - defined or objectl- defined error odraft I have checked my line wor

  • Different behaviours when exporting pdf

    hi, i'm facing a strange behaviour when trying to export a pdf that is generated from db. i want to make pdfs available via dialog box. i set disposition to attachment in the response header. whereas FireFox shows the dialog box (as expected), IE ren

  • Having trouble re-installing premiere 6.0

    I've had it installed on one computer for 5 years or so, and I tried to burn the program onto a cd to install on my other computer, since I've misplaced the original disc. The cd works and the program shows up but I am unable to install it. I dragged

  • No login page with Solution Beacon E-Business Suite Release12 .1.3 (Vista)

    Hello, I am a new user of this solution, I have a CSI code, and a user account. The problem is that time and now I can not access the login page . I want to now if this is a internal problem server? If the problem persists there is another free versi