chaklasiyanikun
5 years agoRoku Guru
Is it Possible to change DialogBox Button text Font?
I see three field(titleFont, messageFont, bulletTextFont) in DialogBox. But, I doesn't see the any field for button Font in Roku.
I tried with the below line.
' titleFont = CreateObject("roSGNode", "Font") ' titleFont.uri = "pkg:/fonts/font.ttf" ' titleFont.size = 24
' optiondialog.buttons.textFont = titleFont
or
' optiondialog.buttons.textFont.font.uri ="pkg:/fonts/font.ttf" ' optiondialog.buttons.textFont.font.size =24
Here, Both lines gives an error. Is there any way to change DialogBox Button Text Font?
ah, try
optiondialog.buttonGroup.textFont=font
.buttons[] refers to the array of buttons label text
You might want to change focusedTextFont as well