Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programatically scroll form in window.

Status
Not open for further replies.

lamarw

MIS
Dec 18, 2002
223
US
Hi all,
This is the best forum around.
I have a form 22" wide which is in three sections. It is viewed in an unsizeable window approx. 7" wide. I want to click on a button to slide (scroll) the 22" form left or right in approx. 7.33" increments to bring the next/previous section into view.
When the horizontal scroll bar is enabled I can manually do exactly what is needed. Is there a way of doing the same thing programatically?
I've tried using the .move(Left, Top, Width, Height) but that moves the window and the form.
Any ideas/help is always very much appreciated.

Lamar Washington
 


Lamar,

What event would trigger this procedure? How would hitting the 'trigger' be any different than punching the scroll bar?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
How are ya lamarw . . .

Why not use a 3 page [blue]Tab Control[/blue]?

[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
The event would be the button push. Okay, okay, it is a little extravagant but I'm trying to make this as friendly and usable as possible.
This interface is used as the main data entry point. Right now it's a form (I didn't design it) full of fields that is very difficult to navigate. The fields don't correspond to the layout of the form from which the data is retrieved, I'm changing that. The form groups fields together, I'm doing to that as well. At the same time I'm trying to reduce the number of fields that are presented thus the scrolling to the 'Next' group and the buttons to go to Next and previous.
I want, no only to make it much more user friendly but to also add a little 'coolness factor' that will bring the data entry people back to a positive attitude using it.
 
Hi AceMan,
I was thinking of using the tab control, I will as a last resort if there is no way to do the scrolling thing programatically. Any ideas on that?

 
Incidentally, the three tab control will involve alot of recoding, circumvented by the scrolling method...
 
lamarw . . .

Your biggest issue will be [red]getting the 1st column of each group to align on the left[/red] of the form!

Note: there's no law that saids the [blue]number of lines[/blue] in the [blue]detail section of a continuous form[/blue] is limited to one! Actually (with labels included) your talking six lines). A record simply has a taller height and is a matter of appeal. When you use the form wizard this is what access does when you select [blue]Justified[/blue].

An alternative would have 3 lines of labels in the header and 3 corresponding lines of data in the detail section.

[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
I'm sorry, I don't follow. Are you commenting on the scrolling method or the tab control method?
If the scrolling method, I'm envisioning horizontal scrolling.
Incidentally, how did you determine 6 lines?
 
In any event, I just don't know how to get the scrolling action to occur programatically.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top