Re: Detection of caption (text) wrapping, how?
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Mon, 15 Oct 2007 14:26:43 -0400
You could pass the string to the DrawText api, with an elipse flag
specified. This would truncate the text at the position you specify for long
strings but not affect strings that would fit within the alloted space. The
truncated string could be either "This is a Comm..." or "This is...Button"
depending on flag. See
http://www.vbnet.mvps.org/code/textapi/strellipse.htm
Randy
"Jack" <replyto@it> wrote in message
news:OEEVxpUDIHA.5208@xxxxxxxxxxxxxxxxxxxxxxx
Hello,
My command buttons have style Standard (I cannot use graphical
style).
User is enabled to write own captions and select font. When the caption is
long, or font changes to bold or increases in size the button's caption
start wrapping and because the button's height is small the caption
becomes ineligible.
When that happens I want to prevent wrapping by forcing caption to the
shorter length.
How to do that?
Your help appreciated,
Jack
.
- References:
- Detection of caption (text) wrapping, how?
- From: Jack
- Detection of caption (text) wrapping, how?
- Prev by Date: Re: Call statements
- Next by Date: Re: constants in browseforfoder-form
- Previous by thread: Re: Detection of caption (text) wrapping, how?
- Next by thread: Re: Detection of caption (text) wrapping, how?
- Index(es):