<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.harlamenkov.ru/index.php?action=history&amp;feed=atom&amp;title=EN%2Fdocumentation%2Fbasic_guide%2Fproperties</id>
	<title>EN/documentation/basic guide/properties - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.harlamenkov.ru/index.php?action=history&amp;feed=atom&amp;title=EN%2Fdocumentation%2Fbasic_guide%2Fproperties"/>
	<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties&amp;action=history"/>
	<updated>2026-11-11T13:55:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties&amp;diff=16804&amp;oldid=prev</id>
		<title>Sancho at 09:15, 6 September 2011</title>
		<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties&amp;diff=16804&amp;oldid=prev"/>
		<updated>2011-09-06T09:15:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:15, 6 September 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l93&quot; &gt;Line 93:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 93:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:documentation_basicguide_dlg_06.gif|none|thumb|400px|Page 2]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Image:documentation_basicguide_dlg_06.gif|none|thumb|400px|Page 2]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Documentation/&lt;/del&gt;Tip|You can find an [[EN/going_further_with_dialog_and_component#Multi-Page_Dialog|other OOoBasic example here]].}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Tip|You can find an [[EN/going_further_with_dialog_and_component#Multi-Page_Dialog|other OOoBasic example here]].}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sancho</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties&amp;diff=16637&amp;oldid=prev</id>
		<title>Sancho: Основной текст</title>
		<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties&amp;diff=16637&amp;oldid=prev"/>
		<updated>2011-09-06T06:24:37Z</updated>

		<summary type="html">&lt;p&gt;Основной текст&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;section begin=title /&amp;gt;&amp;lt;noinclude&amp;gt;{{DISPLAYTITLE:&amp;lt;/noinclude&amp;gt;Properties&amp;lt;noinclude&amp;gt;}}&amp;lt;/noinclude&amp;gt;&amp;lt;section end=title /&amp;gt;{{BreadCrumbL10n}}&lt;br /&gt;
&lt;br /&gt;
{{Documentation/BASICGuideTOC&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=EN/documentation/basic_guide/working_with_dialogs&lt;br /&gt;
|NextPage=EN/documentation/basic_guide/events&lt;br /&gt;
|dial=block&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
== Name and Title ==&lt;br /&gt;
&lt;br /&gt;
Every control element has its own name that can be queried using the following model property:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Model.Name (String)&amp;lt;/tt&amp;gt;:control element name&lt;br /&gt;
&lt;br /&gt;
You can specify the title that appears in the title bar of a dialog with the following model property:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Model.Title (String)&amp;lt;/tt&amp;gt;:dialog title (only applies to dialogs)&lt;br /&gt;
&lt;br /&gt;
== Position and Size ==&lt;br /&gt;
&lt;br /&gt;
You can query the size and position of a control element using the following properties of the model object:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Model.Height (long)&amp;lt;/tt&amp;gt;:height of control element (in ma units)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Model.Width (long)&amp;lt;/tt&amp;gt;:width of control element (in ma units)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Model.PositionX (long)&amp;lt;/tt&amp;gt;:X-position of control element, measured from the left inner edge of the dialog (in ma units)&lt;br /&gt;
;&amp;lt;tt&amp;gt;Model.PositionY (long)&amp;lt;/tt&amp;gt;:Y-position of control element, measured from top inner edge of the dialog (in ma units)&lt;br /&gt;
&lt;br /&gt;
To ensure platform independence for the appearance of dialogs, {{OOo}} uses the '''Map AppFont (ma)''' internal unit to specify the position and size within dialogs. An ma unit is defined as being one eighth of the average height of a character from the system font defined in the operating system and one quarter of its width. By using ma units, {{OOo}} ensures that a dialog looks the same on different systems under different system settings.&lt;br /&gt;
&lt;br /&gt;
If you want to change the size or position of control elements for runtime, determine the total size of the dialog and adjust the values for the control elements to the corresponding part ratios.&lt;br /&gt;
&lt;br /&gt;
{{Documentation/Note|The Map AppFont (ma) replaces the Twips unit to achieve better platform independence.}}&lt;br /&gt;
&lt;br /&gt;
== Focus and Tabulator Sequence ==&lt;br /&gt;
&lt;br /&gt;
You can navigate through the control elements in any dialog by pressing the Tab key. The following properties are available in this context in the control elements model:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;Model.Enabled (Boolean)&amp;lt;/tt&amp;gt;:activates the control element&lt;br /&gt;
;&amp;lt;tt&amp;gt;Model.Tabstop (Boolean)&amp;lt;/tt&amp;gt;:allows the control element to be reached through the Tab key&lt;br /&gt;
;&amp;lt;tt&amp;gt;Model.TabIndex (Long)&amp;lt;/tt&amp;gt;:position of control element in the order of activation&lt;br /&gt;
&lt;br /&gt;
Finally, the control element provides a &amp;lt;tt&amp;gt;setFocus&amp;lt;/tt&amp;gt; method that ensures that the underlying control element receives the focus:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;setFocus&amp;lt;/tt&amp;gt;:control element receives the focus (only for dialogs)&lt;br /&gt;
&lt;br /&gt;
== Multi-Page Dialogs ==&lt;br /&gt;
&lt;br /&gt;
A dialog in {{OOo}} can have more than one tab page. The &amp;lt;tt&amp;gt;Step&amp;lt;/tt&amp;gt; property of a dialog defines the current tab page of the dialog whereas the &amp;lt;tt&amp;gt;Step&amp;lt;/tt&amp;gt; property for a control element specifies the tab page where the control element is to be displayed.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;Step&amp;lt;/tt&amp;gt;-value of 0 is a special case. If you set this value to zero in a dialog, all of the control elements are visible regardless of their &amp;lt;tt&amp;gt;Step&amp;lt;/tt&amp;gt; value. Similarly, if you set this value to zero for a control element, the element is displayed on all of the tab pages in a dialog.&lt;br /&gt;
&lt;br /&gt;
[[Image:documentation_basicguide_dlg_03.gif|none|thumb|500px|Designing Page 1 of the dialog]]&lt;br /&gt;
&lt;br /&gt;
In the preceding example, you can also assign the &amp;lt;tt&amp;gt;Step&amp;lt;/tt&amp;gt; value of 0 to the dividing line as well as the &amp;lt;tt&amp;gt;Cancel&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;Prev&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;Next&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;Done&amp;lt;/tt&amp;gt; buttons to display these elements on all pages. You can also assign the elements to an individual tab page (for example page 1).&lt;br /&gt;
&lt;br /&gt;
The following program code shows how the &amp;lt;tt&amp;gt;Step&amp;lt;/tt&amp;gt; value in event handlers of the &amp;lt;tt&amp;gt;Next&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Prev&amp;lt;/tt&amp;gt; buttons can be increased or reduced and changes the status of the buttons.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Sub cmdNext_Initiated&lt;br /&gt;
&lt;br /&gt;
   Dim cmdNext As Object&lt;br /&gt;
   Dim cmdPrev As Object&lt;br /&gt;
&lt;br /&gt;
   cmdPrev = Dlg.getControl(&amp;quot;cmdPrev&amp;quot;)&lt;br /&gt;
   cmdNext = Dlg.getControl(&amp;quot;cmdNext&amp;quot;)&lt;br /&gt;
   cmdPrev.Model.Enabled = Not cmdPrev.Model.Enabled&lt;br /&gt;
   cmdNext.Model.Enabled = False&lt;br /&gt;
   Dlg.Model.Step = Dlg.Model.Step + 1&lt;br /&gt;
&lt;br /&gt;
End Sub&lt;br /&gt;
&lt;br /&gt;
Sub cmdPrev_Initiated&lt;br /&gt;
&lt;br /&gt;
   Dim cmdNext As Object&lt;br /&gt;
   Dim cmdPrev As Object&lt;br /&gt;
&lt;br /&gt;
   cmdPrev = Dlg.getControl(&amp;quot;cmdPrev&amp;quot;)&lt;br /&gt;
   cmdNext = Dlg.getControl(&amp;quot;cmdNext&amp;quot;)&lt;br /&gt;
   cmdPrev.Model.Enabled = False&lt;br /&gt;
   cmdNext.Model.Enabled = True&lt;br /&gt;
   Dlg.Model.Step = Dlg.Model.Step - 1&lt;br /&gt;
&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A global &amp;lt;tt&amp;gt;Dlg&amp;lt;/tt&amp;gt; variable that references an open dialog must be included to make this example possible. The dialog then changes its appearance as follows:&lt;br /&gt;
&lt;br /&gt;
[[Image:documentation_basicguide_dlg_05.gif|none|thumb|400px|Page 1]]&lt;br /&gt;
&lt;br /&gt;
[[Image:documentation_basicguide_dlg_06.gif|none|thumb|400px|Page 2]]&lt;br /&gt;
{{Documentation/Tip|You can find an [[EN/going_further_with_dialog_and_component#Multi-Page_Dialog|other OOoBasic example here]].}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Dialogs supporting several languages ==&lt;br /&gt;
&lt;br /&gt;
The strings of a Dialog can be localized, see the Developer's Guide chapter [[EN/documentation/devguide/basic/dialog_localization|Dialog Localization]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{PDL1}}&lt;/div&gt;</summary>
		<author><name>Sancho</name></author>
		
	</entry>
</feed>