Dialog Properties
From Apache OpenOffice Wiki
< Documentation | DevGuide
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
It is possible to make some modifications before a dialog is shown. An example is to set the dialog title that is shown in the title bar of a dialog window. This can be achieved by setting the Title property at the dialog model through the com.sun.star.beans.XPropertySet interface:
oDialogModel = oDialog.getModel()
oDialogModel.setPropertyValue("Title", "My Title")
or shorter
oDialog.Model.Title = "My Title"
Another approach is to use the setTitle method of the com.sun.star.awt.XDialog interface:
oDialog.setTitle("My Title")
or
oDialog.Title = "My Title"
Another property is the BackgroundColor property that sets a different background color for the dialog.
| Content on this page is licensed under the Public Documentation License (PDL). |