Label.Caption too big for Label.Width 
Author Message
 Label.Caption too big for Label.Width

This is a multi-part message in MIME format.

------=_NextPart_000_00C5_01BCD88B.59A87FC0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

When a Label caption is too long to fully fit in it's width, VB will =
just chop off at the previous space character.  The question is: How to =
figure out how much of the label caption can be displayed in the width =
and add an ellipse [...] at the end to signify that the caption =
continues?

Thanx,
Ata.

------=_NextPart_000_00C5_01BCD88B.59A87FC0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.71.1712.3"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hi,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>When a Label caption is too long to =
fully fit in=20
it's width, VB will just chop off at the previous space character.&nbsp; =
<FONT=20
color=3D#000000 size=3D2>The question is: How to figure out how much of =
the label=20
caption can be displayed in the width and add an ellipse [...] at the =
end to=20
signify that the caption continues?</FONT></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2><FONT color=3D#000000=20
size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2><FONT color=3D#000000=20
size=3D2>Thanx,</FONT></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2><FONT color=3D#000000=20
size=3D2>Ata.</FONT></FONT></DIV></BODY></HTML>

------=_NextPart_000_00C5_01BCD88B.59A87FC0--



Sat, 01 Apr 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Label Caption in VBA

2. Permanently change a text label's caption?

3. How to get label captions from an array...?

4. Auto label/Caption change

5. Changing the caption property on a label at run time

6. Label Caption Change

7. Linebreak in label control caption

8. Changing label captions: how to refresh

9. Labels Captions permanent modification

10. Captions of Labels

11. Change label caption in userform on change of dropdown listbox

12. Howto force linebreak in label control caption

 

 
Powered by phpBB® Forum Software