Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2005

Tip: Looking for answers? Try searching our database.

Scroll Position

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ChipD - 01 Sep 2005 17:36 GMT
Is there a way to save and set the scroll position in a view (similar to
scrollTop property in DHTML)?

We have several views in our InfoPath form, one that contains a list that
scrolls vertically.  This view contains a button that takes them to another
view. When the user is on this view and moves to a different view, then back,
it would be very nice to restore the user's vertical scroll position so that
they don't have to scroll down to find where they were.

Thanks!
Signature

Chip Davis

Franck Dauché - 01 Sep 2005 19:20 GMT
Hi,

One way to do this is to get the focus to the control where you want to go
by code using code such as :
IXMLDOMNode oNode =
thisApplication.ActiveWindow.XDocument.DOM.selectSingleNode(YourTargetNodePAth);
thisApplication.ActiveWindow.XDocument.View.SelectText(oNode,Missing.Value);

For example, you can write code to "jump" to a textbox or to an optional
section that way.

If you store the path of your source control in a global var, you can use it
to jump back in the right place after you switch back to your original View.

Hope that helps.

Franck Dauché

> Is there a way to save and set the scroll position in a view (similar to
> scrollTop property in DHTML)?
[quoted text clipped - 6 lines]
>
> Thanks!
ChipD - 02 Sep 2005 03:21 GMT
That works great. Thanks!
Signature

Chip Davis

> Hi,
>
[quoted text clipped - 24 lines]
> >
> > Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.