I am writing some On the fly dialogs - ie not using the graphical dialog editor - and have discovered by much reading and searching how to edit the TextColor of buttons, and BackgroundColor of the dialogs e.g.
oDialogModel= createUnoService( “com.sun.star.awt.UnoControlDialogModel” )
oDialogModel.BackgroundColor = RGB (0,0,255)
oButtonModel = oDialogModel.createInstance( “com.sun.star.awt.UnoControlButtonModel” )
oButtonModel.BackgroundColor = RGB(154,245,154 )
- but for the life of me I cannot discover a way to alter the size, or the font, of the text written on the buttons.
My goal is to produce some buttons with fairly large text. (Bold, italic etc )
I’m sure it is relatively easy but I cannot find it.
Please could someone assist.
Real code examples would be very useful - thankyou