Nadya,
I believe that you would have to figure out how many pixels wide a space() character is in the font you're using first, then figure out how many pixels wide your caption is. Next check the width property of your form, then convert the width of the form into space() terms. Then pad your caption with the appropriate number of spaces. Also, you'd probably want to put this code in your resize() method.
HTH
-Matt
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only