|
-
Aug 22nd, 2000, 03:18 AM
#1
Thread Starter
New Member
My form needs a scroll bar.It has a few controls which are scattered and I need to show the user all the controls on the screen.
To do this ,I need a scrollbar.
If anybody could tell me how to use the ScrollWindow API I would be extremely grateful.
-
Aug 22nd, 2000, 03:51 AM
#2
Fanatic Member
Look at the API section of the platform SDK at http://msdn.microsoft.com
-
Aug 22nd, 2000, 04:02 AM
#3
Hyperactive Member
You can do it pretty easy without API and just 2 pictureboxes and scrollbars (one picturebox is the size of the form, the "view", the other picturebox is inside the "view" picturebox, and is as large as you need it to be to fit all the controls.).
The scrollmax is the difference in height between those 2 pictureboxes, and in the scroll events put something like
picControls.Top = -Scrollbar.Value
It's pretty easy and works great.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|