2014-10-07 02:01:13 +02:00
|
|
|
' Gambas class file
|
|
|
|
|
2014-10-10 21:23:44 +02:00
|
|
|
Static Public FixedOnly As Boolean
|
2014-10-07 02:01:13 +02:00
|
|
|
|
|
|
|
Static Public Function SelectFont() As Boolean
|
|
|
|
|
|
|
|
Return Not FFontDialog.ShowModal()
|
|
|
|
|
|
|
|
End
|
|
|
|
|
|
|
|
|
|
|
|
Public Sub btnOK_Click()
|
|
|
|
|
2014-10-10 21:23:44 +02:00
|
|
|
If dlgFont.SelectedFont Then
|
|
|
|
Dialog.Font = Font[dlgFont.SelectedFont]
|
|
|
|
Else
|
|
|
|
Dialog.Font = Null
|
|
|
|
Endif
|
2014-10-07 02:01:13 +02:00
|
|
|
Me.Close(True)
|
|
|
|
|
|
|
|
End
|
|
|
|
|
|
|
|
Public Sub btnCancel_Click()
|
|
|
|
|
|
|
|
Me.Close
|
|
|
|
|
|
|
|
End
|
|
|
|
|
|
|
|
Public Sub Form_Open()
|
|
|
|
|
2014-10-10 21:23:44 +02:00
|
|
|
dlgFont.FixedOnly = FixedOnly
|
|
|
|
If Dialog.Font Then
|
|
|
|
dlgFont.SelectedFont = Dialog.Font.ToString()
|
|
|
|
Else
|
|
|
|
dlgFont.SelectedFont = Null
|
|
|
|
Endif
|
2014-10-07 02:01:13 +02:00
|
|
|
|
|
|
|
End
|
|
|
|
|
|
|
|
Public Sub dlgFont_Activate()
|
|
|
|
|
|
|
|
btnOK.Value = True
|
|
|
|
|
|
|
|
End
|