dcromley
22-01-2016, 20:57
I want to use a Dialog (first time). I want to increase the FontSize on a label.
A relevant msdn Referenc (https://msdn.microsoft.com/en-us/library/system.windows.controls.Control.fontsize%28v=vs.110%29.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1)e
This reference has:
btn3.FontSize = 10.0
-- SO -- is there an API I could use for the Label FontSize?
Thanks in advance.
Uses "UI"
Global hdlg As DWord
Sub TBMain()
Dialog New Pixels, 0, "Dialog Window", 40, 30, 400, 300, 0 To hdlg
Dialog Set Color hdlg, -1, Rgb(200, 200, 100)
Control Add Label, hdlg, 1001, "Label text here", 10, 10, 180, 20
' at this point I want to set the label fontsize
Control Add Button, hDlg, 1002, "Hit me to exit", 10, 40, 180, 20 Call cb1
Dialog Show Modal hdlg
End Sub
CallBack Function cb1() As Long
Dialog End hdlg
End Function
A relevant msdn Referenc (https://msdn.microsoft.com/en-us/library/system.windows.controls.Control.fontsize%28v=vs.110%29.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1)e
This reference has:
btn3.FontSize = 10.0
-- SO -- is there an API I could use for the Label FontSize?
Thanks in advance.
Uses "UI"
Global hdlg As DWord
Sub TBMain()
Dialog New Pixels, 0, "Dialog Window", 40, 30, 400, 300, 0 To hdlg
Dialog Set Color hdlg, -1, Rgb(200, 200, 100)
Control Add Label, hdlg, 1001, "Label text here", 10, 10, 180, 20
' at this point I want to set the label fontsize
Control Add Button, hDlg, 1002, "Hit me to exit", 10, 40, 180, 20 Call cb1
Dialog Show Modal hdlg
End Sub
CallBack Function cb1() As Long
Dialog End hdlg
End Function