【发布时间】:2020-03-03 06:41:01
【问题描述】:
在 Autohotkey 中,我有一个特定大小的编辑。我想调整文本的大小,使其显示在编辑的可见区域,而不是环绕它并不得不向下滚动。
最初我打算使用 StrLen("String") 函数,但这无济于事,因为不同的字符会影响文本换行的时间
String := "This string of text exceeds the visible... area"
font_size = 18
Gui, +AlwaysOnTop
Gui, Font, S%font_size%
Gui, Add, Edit, gText_Size vFr_Text X10 -Border center r2 W270, % String
Gui, Show
return
Text_Size:
;Find out if the text exceeds visible area
;if so Change font size
return
【问题讨论】:
标签: user-interface autohotkey editbox