|
楼主 |
发表于 2020-4-17 22:00:01
|
显示全部楼层
dw_1.SetRedraw(False)
//设置字号
string ls_tmp
ls_tmp = dw_1.Modify("FShow1.Font.Weight='" + string(ll_TWeight) + "'")
ls_tmp = dw_1.Modify("FShow2.Font.Weight='" + string(ll_TWeight) + "'")
ls_tmp = dw_1.Modify("FBoardNo.Font.Weight='" + string(ll_BWeight) + "'")
dw_1.SetRedraw(True)
以上是用变量来设置字号,下面我换成具体的数值都还是不行。
dw_1.SetRedraw(False)
ls_tmp = dw_1.Modify("FShow1.Font.Weight='-9'")
ls_tmp = dw_1.Modify("FShow2.Font.Weight='" + string(ll_TWeight) + "'")
ls_tmp = dw_1.Modify("FBoardNo.Font.Weight='9'")
dw_1.SetRedraw(True) |
|