|
-
Apr 25th, 2002, 10:21 AM
#1
Thread Starter
Hyperactive Member
simulating a scroll bar via picture box... but how to make it continous?
I have two picture boxes and a multiline textbox (with text in it)..
am using the picture boxes as scroll bars (up and down), using the MouseDown event.
this.. for going down the text box... (3 lines at a time)
Private Sub Picture2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Text1.SetFocus
SendKeys ("{down}")
SendKeys ("{down}")
SendKeys ("{down}")
End Sub
and similar for going up...
anyway... does anyone know a way so that it will contiune to go down (or up) as long as the mouse is down on the pictrue box? instead of having to click repeadidily .... am trying to make it behave like a scroll bar.
Abe
1+1=3
make life simple, use a calculator!
-
Apr 25th, 2002, 10:24 AM
#2
-
Apr 25th, 2002, 10:26 AM
#3
Thread Starter
Hyperactive Member
re:
yep
but I want to make my own kind...
idea is to blend the textbox in a nice graphical form... and the standard scroll bar does not look good in it.
Abe
1+1=3
make life simple, use a calculator!
-
Apr 25th, 2002, 10:29 AM
#4
Need-a-life Member
Set a timer on the mousedown event, and disable it on the mouseup event. Call the sub Scroll on the timer's event:
VB Code:
Private Sub Scroll()
Text1.SetFocus
SendKeys ("{down}")
SendKeys ("{down}")
SendKeys ("{down}")
End Sub
Do you get the idea, or you need the whole example?
Emiliano F. Martín
If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
Encourage the person who helped you to keep doing it, and give him the points he deserves.
MP3 Organizer: Freeware to logically organize all your MP3s.
-
Apr 25th, 2002, 10:47 AM
#5
Thread Starter
Hyperactive Member
thanx
thanx 
got the idea
Abe
1+1=3
make life simple, use a calculator!
-
Apr 25th, 2002, 10:48 AM
#6
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
|