开发者

Multi-line button labels

开发者 https://www.devze.com 2023-04-09 21:09 出处:网络
Is there an easy way to have two lines of button.text where you specify each line individually?Also, t开发者_如何学运维here seem to be large margins on the buttons so the text font needs to be quite s

Is there an easy way to have two lines of button.text where you specify each line individually? Also, t开发者_如何学运维here seem to be large margins on the buttons so the text font needs to be quite small to fit. Is there a way to allow the text to use more of the button area?


The way I would do a two-line text implementation is:

Dim t1,t2 As String
t1="This is line one"
t2="This is line two"
...
MyButton.Text = t1 & CRLF & t2

The CRLF performs a Carriage Return and Line feed thus splitting the text up

I can't help with the padding issue though. Have you tried changing the font size?

MyButton.TextSize=9
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号