OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
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 />
Dialog Control Elements<br />
To combine several option buttons in a group, you must position them one after another in the activation<br />
sequence without any gaps (Model.TabIndex property, described as Order in the dialog editor). If the activation<br />
sequence is interrupted by another control element, then <strong>OpenOffice</strong>.<strong>org</strong> automatically starts with a new control<br />
element group that can be activated regardless of the first group of control elements.<br />
Note – VBA : Unlike VBA, you cannot insert option buttons in a group of control elements in <strong>OpenOffice</strong>.<strong>org</strong><br />
Basic. 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.<br />
Checkboxes<br />
Checkboxes are used to record a Yes or No value and depending on the mode, they can adopt two or three states.<br />
In addition to the Yes and No states, a check box can have an in-between state if the corresponding Yes or No<br />
status has more than one meaning or is unclear.<br />
Checkboxes provide the following properties:<br />
State (Short)<br />
state of the checkbox (0: no, 1: yes, 2: in-between state)<br />
Label (String)<br />
label for the control element<br />
enableTriState (Boolean)<br />
in addition to the activated and deactivated states, you can also use the in-between state<br />
The model object of a checkbox provides the following properties:<br />
Model.FontDescriptor (struct)<br />
structure with details of the font used (in accordance with com.sun.star.awt.FontDescriptor structure)<br />
Model.Label (String)<br />
label for the control element<br />
Model.Printable (Boolean)<br />
the control element can be printed<br />
Model.State (Short)<br />
state of the checkbox (0: no, 1: yes, 2: in-between state)<br />
Model.Tabstop (Boolean)<br />
the control element can be reached with the Tab key<br />
Chapter 11 · Dialogs 163