|
-
Jan 31st, 2001, 06:12 PM
#1
Thread Starter
Fanatic Member
I have a picture box which when the mouse moves across it the Twips are counted. The box is grided every 55 twips. What I would like to do is to move a Number say 410 up by 1 every time the mouse total passies 55, 110, 165 etc so if I got to 165 twips the number would be 413 also I would like the number to decrease when the mouse moves back.
Anyone any Ideas?
Spud
-
Feb 2nd, 2001, 11:47 AM
#2
Addicted Member
Spud.
410 + (twips\55)
the \ give integer result.
Darren.
-
Feb 2nd, 2001, 05:41 PM
#3
Thread Starter
Fanatic Member
That would be nice!
Cheers
Spud
-
Feb 3rd, 2001, 12:39 AM
#4
Fanatic Member
Sorry rlculver but VB can do that for you ....
Code:
Private Sub Form_Load()
Debug.Print Me.ScaleX(Me.Width, vbTwips, vbInches)
End Sub
{Insert random techno-babble here}
{Insert quote from some long gone mofo here}
-
Feb 5th, 2001, 04:10 PM
#5
oh Sorry - But would you still like my program Spud?????
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
|