Hello Guys
In order to modify and standardize the layout of a form (under Writer with more than 200 controls) I try to use the controlFontDialog window to define a font and its attributes. I manage to bring up the dialog window and allow the user to choose a font with the following code:
Sub Dialog_FontChooser
Dim oFontChooser As Object
oFontChooser = createUnoService("com.sun.star.form.ControlFontDialog")
oFontChooser.setTitle("My Title") ' just for fun
oFontChooser.execute(aPropertyNames)
' xray oFontChooser ' I found no useful information
End Sub
But despite my research with xRay (and MRI) I can’t get the user’s choice, unlike what I was able to do for the background color using the color palette with the following code:
Sub Dialog_ColorPick
oColorPick = CreateUnoService("com.sun.star.ui.dialogs.ColorPicker")
oColorPick.execute
print(oColorPick.PropertyValues(0).Value)
End Sub
Does anyone have an idea to recover data from ControlFontDialog?
Thanks in advance
Jack-Michel