From 257fec6735fa0d0e57c0c2d0220bd71ce987b947 Mon Sep 17 00:00:00 2001 From: Alain Romedenne Date: Wed, 28 Jun 2023 17:17:45 +0200 Subject: 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 --- source/text/sbasic/shared/03/sf_dialogcontrol.xhp | 41 +++++++++++++++++++++-- 1 file changed, 38 insertions(+), 3 deletions(-) (limited to 'source/text/sbasic/shared/03/sf_dialogcontrol.xhp') 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 @@ -134,6 +134,23 @@ Description + + + Border + + + Yes + + + String + + + Button, … + + + The Border property refers to the surrounding of the control: 3D, FLAT or NONE. + + Cancel @@ -427,6 +444,23 @@ Specifies the data contained in a combobox or a listbox. + + + TabIndex + + + Yes + + + Numeric + + + All + + + The TabIndex property specifies a control's place in the tab order in the dialog. + + Text @@ -1164,7 +1198,7 @@ svc.Resize(opt Left: int, opt Top: int, opt Width: int, opt Height: int): bool - 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. + 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. Left: The horizontal distance from the top-left corner Top: The vertical distance from the top-left corner Width: the horizontal width of the rectangle containing the control @@ -1224,12 +1258,13 @@ This method returns True when successful. - svc.SetTableData(dataarray: any[0..*, 0..*], widths: int[0..*], alignments: str): bool + svc.SetTableData(dataarray: any[0..*, 0..*], widths: int[0..*], alignments: str, RowHeaderWidth = 10): bool dataarray: 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 TableControl. - widths: Array containing the relative widths of each column. In other words, widths = Array(1, 2) 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. + widths: Array containing the relative widths of each column. In other words, widths = (1, 2) 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. alignments: 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. + RowHeaderWidth: width of the row header column expressed in AppFont units. Default = 10. The argument is ignored when the TableControl has no row header. The following example assumes that the dialog myDialog has a TableControl named Grid1 with "Show row header" and "Show column header" properties set to "Yes". -- cgit