N
ngreplies
I am using a label as a tooltip box because I need to be able to change the
background of the box depending on the information it is representing.
That aside, I need to be able to auto-size the box depending on the amount
of data within it.
Sometimes the text in the label will be single-line, but a little long where
it needs to wrap.
Sometimes the text in the label has been forced to spread over three lines.
Sometimes the label has only one lshort text string.
The problem is that the Autosize property only affects the width of the
label, and I need it to resize to reasonable dimensions.
I do not want a very long tooltip spanning the entire screen when it could
wrap round to three shorter lines in a box.
I do not want the text in the box to become truncated because the box isn't
big enough.
So please, can anyone come up with a sensible and effective means of scaling
a label (or alternative control) so that the data within is displayed in a
box representing a 5:4 ratio or thereabouts?
Thanks in advance for any feedback. Newsgroup replies only please.
background of the box depending on the information it is representing.
That aside, I need to be able to auto-size the box depending on the amount
of data within it.
Sometimes the text in the label will be single-line, but a little long where
it needs to wrap.
Sometimes the text in the label has been forced to spread over three lines.
Sometimes the label has only one lshort text string.
The problem is that the Autosize property only affects the width of the
label, and I need it to resize to reasonable dimensions.
I do not want a very long tooltip spanning the entire screen when it could
wrap round to three shorter lines in a box.
I do not want the text in the box to become truncated because the box isn't
big enough.
So please, can anyone come up with a sensible and effective means of scaling
a label (or alternative control) so that the data within is displayed in a
box representing a 5:4 ratio or thereabouts?
Thanks in advance for any feedback. Newsgroup replies only please.