# scrollPane w image setting horizontal position with mouse

**URL:** <https://forum.kirupa.com/t/scrollpane-w-image-setting-horizontal-position-with-mouse/238839>\
**Category:** Uncategorized\
**Created:** [September 16, 2007, 1:12am UTC](https://forum.kirupa.com/t/scrollpane-w-image-setting-horizontal-position-with-mouse/238839 "2007-09-16T01:12:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvinyorkie](https://avatars.discourse-cdn.com/v4/letter/a/e5b9ba/32.png) [@alvinyorkie](https://forum.kirupa.com/u/alvinyorkie)\
**Post date:** [September 16, 2007, 1:12am UTC](https://forum.kirupa.com/t/scrollpane-w-image-setting-horizontal-position-with-mouse/238839/1 "2007-09-16T01:12:56Z")

</div>

Does anyone know how to position a very wide graphic loaded in a scrollPane component. I’ve tried all of the methods and properties I can think of such as hPosition, setHorizontalPosition, etc but nothing seems to respond.  
What I want to accomplish is to use the scrollPane component as a container to display a mouse controlled panorama such as those readily available in the net. I can make it scroll using the right left arrow keys but I want to be able to set a center position (center of the scrollPane window) and then be able to pan each way using the mouse. Also, I would like to be able to control the speed of the scroll by how far the mouse is from the center of the scrollPane window. Also, if I can get this solved, I would like to set the scroller w/arrows set to invisible.

Any help is sure appreciated. !!
