all groups > vb.net controls > february 2004 >
You're in the

vb.net controls

group:

Text doesn't resize on Flat buttons?


Text doesn't resize on Flat buttons? k3
2/25/2004 2:15:46 AM
vb.net controls:
Hi,

I have some buttons on my toolbar and its button style is set to Flat. This
causes the text to show partially and the rest is just shown as three dots
(...). The button's texts show perfectly on the design window though. If I
setup the button style to be Normal, the text will resize and fit to the
button. One thing I've noticed using Flat is that the buttons will not take
the size I give in the properties window. Is this a bug? The normal
appearance is very ugly :(

Thanks

Re: Text doesn't resize on Flat buttons? k3
2/25/2004 2:35:25 AM
Ok I found some ugly hack that got it to work. I made the toolbar's button
size to (1,1)... or any value for that matter up to some random size which
causes it to not display properly again. Anything from (1,1) up to (75,50)
worked for me. I placed the code in the dialog's Load event function.

I hope someone can tell me why it behaves that way.


[quoted text, click to view]
| Hi,
|
| I have some buttons on my toolbar and its button style is set to Flat.
This
| causes the text to show partially and the rest is just shown as three dots
| (...). The button's texts show perfectly on the design window though. If
I
| setup the button style to be Normal, the text will resize and fit to the
| button. One thing I've noticed using Flat is that the buttons will not
take
| the size I give in the properties window. Is this a bug? The normal
| appearance is very ugly :(
|
| Thanks
|
|

AddThis Social Bookmark Button