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.

Events 221<br />

object that receives focus (only for the When losing focus event)<br />

Temporary (Boolean)<br />

the focus is temporarily lost<br />

Control Element- Specific Events<br />

In addition to the preceding events, which are supported by all control elements, there are<br />

also some control element-specific events that are only defined for certain control elements.<br />

The most important of these events are:<br />

When Item Changed<br />

the value of a control element changes<br />

Item Status Changed<br />

the status of a control element changes<br />

Text modified<br />

the text of a control element changes<br />

When initiating<br />

an action that can be performed when the control element is triggered (for example, a<br />

button is pressed)<br />

When you work with events, note that some events, such as the When initiating event, can<br />

be initiated each time you click the mouse on some control elements (for example, on radio<br />

buttons). No action is performed to check if the status of the control element has actually<br />

changed. To avoid such “blind events”, save the old control element value in a global<br />

variable, and then check to see if the value has changed when an event is executing.<br />

The When initiating event is also noteworthy for the following reasons:<br />

• This event is initiated by either a key-press or a mouse button. Thus, it provides a<br />

consistent interface for users who navigate by mouse or by keyboard.<br />

• When the Repeat property of a command button is set to True, this event is the one<br />

which is repeatedly sent, as long as the triggering action (key down or mouse-button<br />

down) remains in effect.<br />

The properties for the Item Status Changed event are:<br />

Selected (long)<br />

currently selected entry<br />

Highlighted (long)<br />

currently highlighted entry<br />

ItemId (long)<br />

ID of entry<br />

Source: http:/ / <strong>wiki</strong>. services. openoffice. <strong>org</strong>/ w/ index. php? title=Documentation/ <strong>BASIC</strong>_<br />

<strong>Guide</strong>/ Events&oldid=105607<br />

Principal Authors: Fpe, Ccornell, TJFrazier

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

Saved successfully!

Ooh no, something went wrong!