文本框控件支持自定义字号

This commit is contained in:
MrZ626
2020-12-01 01:22:57 +08:00
parent 27b3e37e16
commit d342a1d55c

View File

@@ -776,7 +776,7 @@ function WIDGET.newTextBox(D)--name,x,y,w[,h][,font][,secret][,regex],hide
D.x+D.w*.8,D.y,
},
font= int(D.h/7-1)*5,
font= font or int(D.h/7-1)*5,
secret= D.secret,
regex= D.regex,
hide= D.hide,