OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Dialog Control Elements 223<br />
Model.HelpURL (String)<br />
URL of the online help for the corresponding control element<br />
PushButtonType (short)<br />
action that is linked to the button (0: no action, 1: OK, 2: Cancel)<br />
Option Buttons<br />
These buttons are generally used in groups and allow you to select from one of several<br />
options. When you select an option, all of the other options in the group are deactivated.<br />
This ensures that at any one time, only one option button is set.<br />
An option button control element provides two properties:<br />
State (Boolean)<br />
activates the button<br />
Label (String)<br />
label that is displayed on the button<br />
You can also use the following properties from the model of the option buttons:<br />
Model.FontDescriptor (struct)<br />
structure with details of the font to be used (in accordance with<br />
com.sun.star.awt.FontDescriptor<br />
)<br />
Model.Label (String)<br />
label that is displayed on the control element<br />
Model.Printable (Boolean)<br />
control element can be printed<br />
Model.State (Short)<br />
if this property is equal to 1, the option is activated, otherwise it is deactivated<br />
Model.TextColor (Long)<br />
text color of control element<br />
Model.HelpText (String)<br />
help text that is displayed when the mouse cursor rests over the control element<br />
Model.HelpURL (String)<br />
URL of online help for the corresponding control element<br />
To combine several option buttons in a group, you must position them one after another in<br />
the activation sequence without any gaps (Model.TabIndex property, described as Order in<br />
the dialog editor). If the activation sequence is interrupted by another control element, then<br />
<strong>OpenOffice</strong>.<strong>org</strong> automatically starts with a new control element group that can be activated<br />
regardless of the first group of control elements.<br />
Unlike VBA, you cannot insert option buttons in a group of control elements in <strong>OpenOffice</strong>.<strong>org</strong> Basic.<br />
The grouping of control elements in <strong>OpenOffice</strong>.<strong>org</strong> Basic is only used to ensure a visual division by<br />
drawing a frame around the control elements.