Results 1 to 3 of 3

Thread: Making a Screen Ruler

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    414

    Making a Screen Ruler

    I'm not sure if this is API but ...

    I'm making a screen ruler for measuring graphics. I've put the code in the Form_Resize event as follows.

    Private Sub Form_Resize()
    Text1 = Form1.Width
    Text2 = Form1.Height
    End Sub

    Although this does work it doesn't display the new measurements until I let go of the mouse button. I'm trying to have it constantly update the measurements as you resize the form. I've tried using a timer but that doesn't work either. Anyone know how to do this?

  2. #2
    Hyperactive Member
    Join Date
    May 2001
    Posts
    306
    I'm sure you've tried it but i'll mention it anyways....have you tried the MouseMove or MouseDown events of the form? Not sure how you would implement it but could be a start in the right direction.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Posts
    414
    Yes I have. MouseMove, MouseDown and MouseUp. With and without timers

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