T
Tom
I want to get the 'size' of a line of text so that I can set the width of a
control to show all that text. For instance, say my text is 'The dog chased
the cat around the room' and I want to set a Button control's width equal to
the length of this text so that all the text shows up on the button (I know,
some controls have auto-sizing, but I need to do this manually at run time).
How can one determine and translate the 'size' of a text string into the
proper width for a control? Thanks.
Tom
control to show all that text. For instance, say my text is 'The dog chased
the cat around the room' and I want to set a Button control's width equal to
the length of this text so that all the text shows up on the button (I know,
some controls have auto-sizing, but I need to do this manually at run time).
How can one determine and translate the 'size' of a text string into the
proper width for a control? Thanks.
Tom