Below is how you change the dialog title font, But I could not figure out how to change the font of the edittext boxes. I leave that to someone more knowledgeable:
Below is how you change the dialog title font, But I could not figure out how to change the font of the edittext boxes. I leave that to someone more knowledgeable:
If you don't see this property, there is a problem. Put your code.
This is the code to change the typeface of the font to bold:
B4X:
Dim sf As Object = prefdialog.ShowDialog(Options1, "OK", "CANCEL")
For i = 0 To prefdialog.PrefItems.Size - 1
Dim pi As B4XPrefItem = prefdialog.PrefItems.Get(i)
Dim ft As B4XFloatTextField = prefdialog.CustomListView1.GetPanel(i).GetView(0).Tag
ft.TextField.Font = xui.CreateDefaultBoldFont(20)
End If
Next
Wait For (sf) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
PrintOptions(Options1, TextArea1)
End If
I can change the size of multiline text item in B4XPreferencesDialog with this code: If pi.ItemType = prefdialog.TYPE_MULTILINETEXT Then Dim ft As B4XFloatTextField = prefdialog.CustomListView1.GetPanel(i).GetView(0).Tag ft.TextField.TextSize = 20 Is possible to change the Typeface of...
If you don't see this property, there is a problem. Put your code.
This is the code to change the typeface of the font to bold:
B4X:
Dim sf As Object = prefdialog.ShowDialog(Options1, "OK", "CANCEL")
For i = 0 To prefdialog.PrefItems.Size - 1
Dim pi As B4XPrefItem = prefdialog.PrefItems.Get(i)
Dim ft As B4XFloatTextField = prefdialog.CustomListView1.GetPanel(i).GetView(0).Tag
ft.TextField.Font = xui.CreateDefaultBoldFont(20)
End If
Next
Wait For (sf) Complete (Result As Int)
If Result = xui.DialogResponse_Positive Then
PrintOptions(Options1, TextArea1)
End If
I can change the size of multiline text item in B4XPreferencesDialog with this code: If pi.ItemType = prefdialog.TYPE_MULTILINETEXT Then Dim ft As B4XFloatTextField = prefdialog.CustomListView1.GetPanel(i).GetView(0).Tag ft.TextField.TextSize = 20 Is possible to change the Typeface of...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.