Difference between revisions of "Documentation/DevGuide/Basic/Common Properties"
OOoWikiBot (Talk | contribs) m (FINAL VERSION FOR L10N) |
|||
Line 10: | Line 10: | ||
All Toolkit control models have a set of identical properties referred as the ''common properties''. These are the properties <code>PositionX</code>, <code>PositionY</code>, <code>Width</code>, <code>Height</code>, <code>Name</code>, <code>TabIndex</code>, <code>Step</code>, and <code>Tag</code>. | All Toolkit control models have a set of identical properties referred as the ''common properties''. These are the properties <code>PositionX</code>, <code>PositionY</code>, <code>Width</code>, <code>Height</code>, <code>Name</code>, <code>TabIndex</code>, <code>Step</code>, and <code>Tag</code>. | ||
− | {{ | + | {{Note|Note that a Toolkit control model has those common properties only if it belongs to a dialog model. This has also some consequences for the creation of dialogs and controls at runtime. See [[Documentation/DevGuide/Basic/Creating Dialogs at Runtime|Creating Dialogs at Runtime]].}} |
The <code>PositionX</code>, <code>PositionY</code>, <code>Width</code>, and <code>Height</code> properties change the position and size of a dialog, and control at runtime. When designing a dialog in the dialog editor, these properties are set automatically. | The <code>PositionX</code>, <code>PositionY</code>, <code>Width</code>, and <code>Height</code> properties change the position and size of a dialog, and control at runtime. When designing a dialog in the dialog editor, these properties are set automatically. |
Latest revision as of 16:26, 3 July 2018
All Toolkit control models have a set of identical properties referred as the common properties. These are the properties PositionX
, PositionY
, Width
, Height
, Name
, TabIndex
, Step
, and Tag
.
Note that a Toolkit control model has those common properties only if it belongs to a dialog model. This has also some consequences for the creation of dialogs and controls at runtime. See Creating Dialogs at Runtime. |
The PositionX
, PositionY
, Width
, and Height
properties change the position and size of a dialog, and control at runtime. When designing a dialog in the dialog editor, these properties are set automatically.
The Name
property is required, because all dialogs and controls are referenced by their name. In the dialog editor this name is created from the object name and a number, for example, TextField1
.
The TabIndex
property defines the order of focusing a control in a dialog when pressing the tabulator key. The index of the first element has the value 0. In the dialog editor the TabIndex
property is set automatically when inserting a control. The order can also be changed through the property browser. Take care when setting this property at runtime.
The Tag
property adds additional information to a control, such as a remark or number.
The Step
property is described in detail in the next section.
Content on this page is licensed under the Public Documentation License (PDL). |