Click to See Complete Forum and Search --> : Twip Counting


spud
Jan 31st, 2001, 06:12 PM
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

darrenl
Feb 2nd, 2001, 11:47 AM
Spud.

410 + (twips\55)

the \ give integer result.

Darren.

spud
Feb 2nd, 2001, 05:41 PM
That would be nice!



Cheers



Spud

YoungBuck
Feb 3rd, 2001, 12:39 AM
Sorry rlculver but VB can do that for you ....



Private Sub Form_Load()

Debug.Print Me.ScaleX(Me.Width, vbTwips, vbInches)

End Sub

Feb 5th, 2001, 04:10 PM
oh Sorry - But would you still like my program Spud?????