CLOSE
PowerBuilder Tips

方法

データウィンドウに配置されたコントロールで使用しているフォントの種類をスクリプトで変更するには、Font.Face プロパティを使用します。

【例】ドット表記でカラム “sample_column” のフォントを変更

string ls_font

ls_font = "MS 明朝"
dw_1.object.sample_column.font.face = ls_font

【例】Modify 関数でカラム “sample_column” のフォントを変更

string ls_font

ls_font = "MS 明朝"
dw_1.Modify("sample_column.font.face='" + ls_font + "'")

 

Tips情報

プロダクト :PowerBuilder

バージョン :2017R3

x instagram facebook youtube