Results 1 to 5 of 5

Thread: Twip Counting

  1. #1

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542

    Question

    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
    Haven't got anything to say that is the least bit interesting.
    www.tartan-underground.com

  2. #2
    Addicted Member darrenl's Avatar
    Join Date
    Jul 2000
    Location
    Portsmouth, UK
    Posts
    148
    Spud.

    410 + (twips\55)

    the \ give integer result.

    Darren.
    Dazzer

  3. #3

    Thread Starter
    Fanatic Member spud's Avatar
    Join Date
    Aug 2000
    Location
    Munster (Germany)
    Posts
    542
    That would be nice!



    Cheers



    Spud
    Haven't got anything to say that is the least bit interesting.
    www.tartan-underground.com

  4. #4
    Fanatic Member
    Join Date
    Sep 1999
    Location
    Bethel, North Carolina, USA
    Posts
    987
    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}

  5. #5
    Guest
    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
  •  



Click Here to Expand Forum to Full Width