OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - OpenOffice.org wiki
OpenOffice.org BASIC Guide - 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<br />
Model.TextColor (Long)<br />
text color of control element<br />
Model.HelpText (String)<br />
help text that is displayed when you rest the mouse cursor over the control element<br />
Model.HelpURL (String)<br />
URL of online help for the corresponding control element<br />
Text Fields<br />
Text fields allow users to type numbers and text. The com.sun.star.awt.UnoControlEdit. service forms the basis<br />
for text fields.<br />
A text field can contain one or more lines and can be edited or blocked for user entries. Text fields can also be<br />
used as special currency and numerical fields as well as screen fields for special tasks. As these control elements<br />
are based on the UnoControlEdit Uno service, their program-controlled handling is similar.<br />
Text fields provide the following properties:<br />
Text (String)<br />
current text<br />
SelectedText (String)<br />
currently highlighted text<br />
Selection (Struct)<br />
read-only highlighting of details (structure in accordance with com.sun.star.awt.Selection, with the Min and<br />
Max properties to specify the start and end of the current highlighting)<br />
MaxTextLen (short)<br />
maximum number of characters that you can type in the field<br />
Editable (Boolean)<br />
True activates the option for entering text, False blocks the entry option (the property cannot be called<br />
up directly but only through IsEditable)<br />
IsEditable (Boolean)<br />
the content of the control element can be changed, read-only<br />
The following properties are provided through the associated model object:<br />
Model.Align (short)<br />
orientation of text (0: left-aligned, 1: centered, 2: right-aligned)<br />
Model.BackgroundColor (long)<br />
color of the background of the control element<br />
Model.Border (short)<br />
type of border (0: no border, 1: 3D border, 2: simple border)<br />
Model.EchoChar (String)<br />
echo character for password fields<br />
Model.FontDescriptor (struct)<br />
structure with details of font used (in accordance with com.sun.star.awt.FontDescriptor structure)<br />
Model.HardLineBreaks (Boolean)<br />
automatic line breaks are permanently inserted in the control element text<br />
164 <strong>OpenOffice</strong>.<strong>org</strong> 3.2 <strong>BASIC</strong> <strong>Guide</strong> · March 2010