summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/03/sf_dialogcontrol.xhp
diff options
context:
space:
mode:
authorAlain Romedenne <alain.romedenne@libreoffice.org>2023-06-28 17:17:45 +0200
committerAlain Romedenne <alain.romedenne@libreoffice.org>2023-07-03 17:54:53 +0200
commit257fec6735fa0d0e57c0c2d0220bd71ce987b947 (patch)
treedafc108036dbaf674fb9cfec774fea75c4e7a886 /source/text/sbasic/shared/03/sf_dialogcontrol.xhp
parent00fdaa24ea0de17c8036c3dd594890d6bf666d16 (diff)
SF Dialogs can be dynamic (WiP)
cf. https://gerrit.libreoffice.org/c/core/+/151896 Change-Id: I383a2f96394ea69a09265645d63e6dbb730f4e88 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/153697 Tested-by: Jenkins Reviewed-by: Alain Romedenne <alain.romedenne@libreoffice.org>
Diffstat (limited to 'source/text/sbasic/shared/03/sf_dialogcontrol.xhp')
-rw-r--r--source/text/sbasic/shared/03/sf_dialogcontrol.xhp41
1 files changed, 38 insertions, 3 deletions
diff --git a/source/text/sbasic/shared/03/sf_dialogcontrol.xhp b/source/text/sbasic/shared/03/sf_dialogcontrol.xhp
index 8df3367c7a..d2a3436180 100644
--- a/source/text/sbasic/shared/03/sf_dialogcontrol.xhp
+++ b/source/text/sbasic/shared/03/sf_dialogcontrol.xhp
@@ -136,6 +136,23 @@
</tablerow>
<tablerow>
<tablecell>
+ <paragraph id="par_id151594768386455" role="tablecontent" localize="false">Border</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id372693668519172" role="tablecontent" xml-lang="en-US">Yes</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id271583679486455" role="tablecontent" localize="false">String</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id231589538847029" role="tablecontent" localize="false" xml-lang="en-US">Button, …</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id771583778386455" role="tablecontent" xml-lang="en-US">The Border property refers to the surrounding of the control: 3D, FLAT or NONE.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
<paragraph id="par_id151583668386455" role="tablecontent" localize="false">Cancel</paragraph>
</tablecell>
<tablecell>
@@ -429,6 +446,23 @@
</tablerow>
<tablerow>
<tablecell>
+ <paragraph id="par_id491598516746653" role="tablecontent" localize="false">TabIndex</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id781598516674550" role="tablecontent" xml-lang="en-US">Yes</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id741598561764696" role="tablecontent" localize="false">Numeric</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id761598359912452" role="tablecontent" localize="false">All</paragraph>
+ </tablecell>
+ <tablecell>
+ <paragraph id="par_id11159815676440" role="tablecontent" xml-lang="en-US">The <literal>TabIndex</literal> property specifies a control&apos;s place in the tab order in the dialog.</paragraph>
+ </tablecell>
+ </tablerow>
+ <tablerow>
+ <tablecell>
<paragraph id="par_id491598516764653" role="tablecontent" localize="false">Text</paragraph>
</tablecell>
<tablecell>
@@ -1164,7 +1198,7 @@
<input>svc.Resize(opt Left: int, opt Top: int, opt Width: int, opt Height: int): bool</input>
</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
- <paragraph role="paragraph" id="par_id351687783159237">All distances are expressed in AppFonts and are measured from the top-left corner of the parent dialog. Without arguments, the method resets the initial dimensions. Missing arguments are left unchanged.</paragraph>
+ <paragraph role="paragraph" id="par_id351687783159237">All distances are expressed in AppFonts and are measured from the top-left corner of the parent dialog. Without arguments the method resizes the control to its "preferred size", a size adjusted depending on its actual content. Missing arguments are left unchanged.</paragraph>
<paragraph role="paragraph" id="par_id911687783094143"><emph>Left</emph>: The horizontal distance from the top-left corner</paragraph>
<paragraph role="paragraph" id="par_id251687783287236"><emph>Top</emph>: The vertical distance from the top-left corner</paragraph>
<paragraph role="paragraph" id="par_id291687783328508"><emph>Width</emph>: the horizontal width of the rectangle containing the control</paragraph>
@@ -1224,12 +1258,13 @@
<paragraph role="paragraph" id="par_id411638569396108">This method returns <literal>True</literal> when successful.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
<paragraph role="paragraph" localize="false" id="par_id841620310380255">
- <input>svc.SetTableData(dataarray: any[0..*, 0..*], widths: int[0..*], alignments: str): bool</input>
+ <input>svc.SetTableData(dataarray: any[0..*, 0..*], widths: int[0..*], alignments: str, RowHeaderWidth = 10): bool</input>
</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
<paragraph role="paragraph" id="par_id1001584541257133"><emph>dataarray</emph>: Data to be entered into the table represented as an Array of Arrays in Basic or a tuple of tuples in Python. The data must include column and row headers if they are to be displayed by the <literal>TableControl</literal>.</paragraph>
- <paragraph role="paragraph" id="par_id1001584541257025"><emph>widths</emph>: Array containing the relative widths of each column. In other words, <literal>widths = Array(1, 2)</literal> means that the second column is twice as wide as the first one. If the number of values in the array is smaller than the number of columns in the table, then the last value in the array is used to define the width of the remaining columns.</paragraph>
+ <paragraph role="paragraph" id="par_id1001584541257025"><emph>widths</emph>: Array containing the relative widths of each column. In other words, <literal>widths = (1, 2)</literal> means that the second column is twice as wide as the first one. If the number of values in the array is smaller than the number of columns in the table, then the last value in the array is used to define the width of the remaining columns.</paragraph>
<paragraph role="paragraph" id="par_id1001584541257007"><emph>alignments</emph>: Defines the alignment in each column as a string in which each character can be "L" (Left), "C" (Center), "R" (Right) or " " (whitespace, default, meaning left for strings and right for numeric values). If the length of the string is shorter than the number of columns in the table, then the last character in the string is used to define the alignment of the remaining columns.</paragraph>
+ <paragraph role="paragraph" id="par_id551688397846388"><emph>RowHeaderWidth</emph>: width of the row header column expressed in AppFont units. Default = 10. The argument is ignored when the <literal>TableControl</literal> has no row header.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<embed href="text/sbasic/shared/00000003.xhp#In_Basic"/>
<paragraph role="paragraph" id="par_id381638569172413">The following example assumes that the dialog <literal>myDialog</literal> has a <literal>TableControl</literal> named <literal>Grid1</literal> with "Show row header" and "Show column header" properties set to "Yes".</paragraph>