21.08.2013 Views

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Control Element Forms 237<br />

Exit Function<br />

End If<br />

Next I<br />

The code corresponds to the previous example for determining a simple control element<br />

model. It searches through all forms in the current text document in a loop and uses the<br />

HasByName method to check whether the corresponding form contains an element with the<br />

MyOptions name it is searching for. If this is the case, then the model array is accessed<br />

using the GetGroupByName method (rather than the GetByName method to determine<br />

simple models).<br />

Checkboxes<br />

The model object of a checkbox form provides the following properties:<br />

Enabled (Boolean)<br />

the control element can be activated<br />

Tabstop (Boolean)<br />

the control element can be reached through the tab key<br />

TabIndex (Long)<br />

position of control element in the activation sequence<br />

FontName (String)<br />

name of font type<br />

FontHeight (Single)<br />

height of character in points (pt)<br />

Tag (String)<br />

string containing additional information, which can be saved in the button for<br />

program-controlled access<br />

Label (String)<br />

button label<br />

Printable (Boolean)<br />

the control element can be printed<br />

State (Short)<br />

if 1, the option is activated, otherwise it is deactivated<br />

RefValue (String)<br />

string for saving additional information (for example, for administrating data record<br />

IDs)<br />

TextColor (Long)<br />

text color of control element<br />

HelpText (String)<br />

automatically displayed help text, which is displayed if the mouse cursor is above the<br />

control element<br />

HelpURL (String)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!