Skip navigation
LeRhum42
Currently Being Moderated

how to align text with a shape

Aug 14, 2012 5:06 AM

Tags: #horizontal #vbs #align #center #vertical

How i can align vertical center and horizontal center a single line text to a shape (in vbs) ?

thank you

 
Replies
  • Currently Being Moderated
    Aug 14, 2012 11:16 AM   in reply to LeRhum42

    get the bounds (top/left and bottom/right) of both your shape and your text, then get the width/height of both and divide by two to get the center point, then based on your findings move either or both into place.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points