一般

This General tab enables you to define the general properties of a form control. These properties differ, depending on the control type. Not all of the following properties are available for every control.

若要使用此指令...

Open context menu of a selected form element - choose Control - General tab.

Open Form Controls toolbar or Form Design toolbar, click Control icon - General tab.


評註圖示

If you export the current form document to HTML format, the default control values are exported, not the current control values. Default values are determined - depending on the type of control - by the properties' Default value (for example, in text fields), Default status (for check boxes and option fields), and Default selection (for list boxes).


Filtering/Sorting

Specifies to show or hide the filtering and sorting items in a selected Navigation bar control. Filtering and sorting items are the following: Sort ascending, Sort descending, Sort, Automatic filter, Default filter, Apply filter, Reset filter/sort.

URL

Enter the URL address for a Open document or web page button type in the URL box. The address opens when you click the button.

在未輸入任何其他說明文字的情況下,若在使用者模式中將滑鼠移至按鈕的上方,則 URL 會顯示為擴充提示。

URL 說明

Specifies a batch label in URL spelling which refers to a help document and which can be called with the help of the control field. The help for the control field help can be opened if the focus is positioned on the control field and the user presses F1.

三重狀態

Specifies whether a check box can also represent ZERO values of a linked database apart from the TRUE and FALSE values. This function is only available if the database accepts three states: TRUE, FALSE and ZERO.

評註圖示

The "Tristate" property is only defined for database forms, not for HTML forms.


位置 X

定義控制項相對於固定標記的 X 位置。

位置 Y

定義控制項相對於固定標記的 Y 位置。

切換

Specifies if a Push button behaves as a Toggle Button. If you set Toggle to "Yes", you can switch between the "selected" and "not selected" control states when you click the button or press the Spacebar while the control has the focus. A button in the "selected" state appears "pressed in".

列數

For combo boxes with the "Dropdown" property, you can specify how many lines should be displayed in the dropdown list. With control fields which do not have the Dropdown option, the line's display will be specified by the size of the control field and the font size.

列高

In table controls, enter a value for the row height. If you want, you can enter a value followed by valid measurement unit, for example, 2 cm.

前置圖示

確定在使用貨幣欄位時,數字之前或之後是否要顯示貨幣符號。預設值是不前置的貨幣符號。

動作

You can use navigation actions to design your own database navigation buttons.

The following table describes the actions that you can assign to a button:

動作

說明

無動作發生。

送出表單

Sends the data that is entered in other control fields of the current form to the address that is specified in Form Properties under URL.

匯出到 PDF 檔案時,請將 URL 輸入到表單的資料特性 [URL] 文字方塊中。

重設表單

Resets the settings in other control fields to the predefined defaults: Default Status, Default Selection, Default Value.

開啟文件/網頁

開啟 URL 下所指定的 URL。您可以使用 [外框] 指定目標外框。

第一條記錄

將目前表單移至第一條記錄。

上一條記錄

將目前表單移至上一條記錄。

下一條記錄

將目前表單移至下一條記錄。

最後一條記錄

將目前表單移至最後一條記錄。

儲存記錄

如有必要,儲存目前記錄。

復原資料條目

撤銷目前記錄的變更。

新增記錄

將目前表單移至插入列。

刪除記錄

刪除目前記錄。

重新整理表單

重新載入目前表單的最新儲存版本。


千位分隔符

對於數值欄位和貨幣欄位,可以確定是否使用千位分隔符號。

可列印

指定是否在文件的列印輸出中顯示控制項欄位。

可擴展

A control field with the dropdown property has an additional arrow button which opens the list of the existing form entries per mouse click. Under Line count, you can specify how many lines (or rows) should be displayed in the dropdown state. Combination fields can have the dropdown property.

當作欄在表格控制項中所插入的組合方塊可在預設狀態下擴展。

可見

定義在實況模式中是否可以看見控制項。在設計模式中,一律可以看見控制項。

請注意,若此特性設為 [是] (預設值),並不一定表示控制項一定會出現在螢幕上。計算控制項是否實際可見時,也會套用其他的限制。例如,位於 Writer 中隱藏區段內的控制項一律看不見,除非將隱藏區段變成可見區段才可看見。

若特性設為 [否],則控制項在實況模式中會一律隱藏。

舊版 OpenOffice.org 到 3.1 版在讀取檔案進行使用時,將自動忽略此特性。

可視大小

Specifies the size of scrollbar thumb in "value units". A value of ("Scroll value max." minus "Scroll value min." ) / 2 would result in a thumb which occupies half of the background area.

If set to 0, then the thumb's width will equal its height.

名稱

Each control field and each form has a "Name" property through which it can be identified. The name will appear in the Form Navigator and, using the name, the control field can be referred to from a macro. The default settings already specify a name which is constructed from using the field's label and number.

評註圖示

如果和巨集一起執行,則注意,控制項的名稱要是唯一的。


The name is also used to group different controls that belong together functionally, such as radio buttons. To do so, give the same name to all members of the group: controls with identical names form a group. Grouped controls can be represented visually by using a Group Box.

唯讀

The "Read-only" property can be assigned to all controls in which the user can enter text. If you assign the read-only property to an image field which uses graphics from a database, the user will not be able to insert new graphics into the database.

固定標記

定義固定控制項的位置。

圖形

An image button has a "Graphics" property. The "Graphics" property specifies the graphic's path and file name that you want to have displayed on the button. If you select the graphic file with the ... button, the path and file name will be automatically included in the text box.

圖示大小

Specifies whether the icons in a selected Navigation bar should be small or large.

外框

You can also specify the target frame to display a URL that you open when you click a button that has been assigned to the "Open document or web page" action.

如果按一下該欄位,可以從清單中選取某個選項,以指定用於載入下一個文件的外框。存在以下幾種可能:

條目

涵義

_blank

會在一個新的空白外框中建立下一個文件。

_parent

會在父項中,也就是上一層外框中,建立下一個文件。若是沒有父項,則便會在同一個外框中建立文件。

_self

會在相同外框中建立下一個文件

_top

會在上層視窗中,也就是階層式中的最上層外框中,建立下一個文件。若是起始視窗已位在上層視窗中,則便會在相同外框中建立文件。


評註圖示

The "Frame" property is relevant for HTML forms, but not for database forms.


多重選取

可讓您在清單方塊中選取多個項目。

大量變更

指定當使用者按一下捲動軸上的滑動軸時,要增加或減少的數值。

字元遮罩

With masked fields you can specify a literal mask. A literal mask contains the initial values of a form, and is always visible after downloading a form. Using a character code for the Edit mask, you can determine the entries that the user can type into the masked field.

評註圖示

字元遮罩的長度應和輸入遮到的長度相符。若不是這種情形,則需剪下輸入遮罩或是在輸入遮罩的長度上填入空格。


字型

針對具有可見文字或標題的控制項欄位,選取您要使用的顯示字型。若要開啟 [字型] 對話方塊,請按一下 [...] 按鈕。選取的字型會用於控制項欄位名稱以及顯示表格控制項欄位中的資料。

定位

Specifies to show or hide the positioning items in a selected Navigation bar control. Positioning items are the following: Record label, Record position, Record count label, Record count.

定位鍵

The "Tabstop" property determines if a control field can be selected with the Tab key. The following options are available:

When using the Tab key, focusing skips the control.

The control can be selected with the Tab key.


定位順序

The "Tab order" property determines the order in which the controls are focused in the form when you press the Tab key. In a form that contains more than one control, the focus moves to the next control when you press the Tab key. You can specify the order in which the focus changes with an index under "Tab order".

評註圖示

The "Tab order" property is not available to Hidden Controls. If you want, you can also set this property for image buttons and image controls, so that you can select these controls with the Tab key.


When creating a form, an index is automatically assigned to the control fields that are added to this form; every control field added is assigned an index increased by 1. If you change the index of a control, the indices of the other controls are updated automatically. Elements that cannot be focused ("Tabstop = No") are also assigned a value. However, these controls are skipped when using the Tab key.

您也可以在「定位順序」對話方塊中決定不同控制項的索引。

密碼字元

If the user enters a password, you can determine the characters that will be displayed instead of the characters typed by the user. Under Password character, enter the ASCII code of the desired character. You can use the values from 0 to 255.

提示圖示

The characters and their ASCII codes can be seen in the Special Characters dialog (Insert - Special Character).


寬度

Sets the column width in the table control field in the units that are specified in the LibreOffice module options. If you want, you can enter a value followed by a valid measurement unit, for example, 2 cm.

寬度

定義控制項的寬度。

對齊/圖形對齊

對齊選項包括向左對齊、向右對齊及置中對齊。這些選項可供下列元素使用:

  1. Title of Label fields,

  2. Content of text fields,

  3. Content of table fields in the columns of a table control,

  4. Graphics or text that are used in buttons.

    評註圖示

    按鈕的 [對齊] 選項稱為 [圖片對齊]


導覽

Specifies to show or hide the navigation items in a selected Navigation bar control. Navigation items are the following: First record, Previous record, Next record, Last record.

小數點位數

對於數值欄位和貨幣欄位,可以確定小數點右側顯示的數字位數。

少量變更

Specify the value to add or subtract when the user clicks the Arrow icon on the scrollbar.

差異值

您可以預先設定數字微調按鈕和貨幣微調按鈕的數值間隔。使用微調按鈕的向上箭頭或向下箭頭增加或減少數值。

已啟用

If a control field has the property "Enabled" (Yes), the form user will be able to use the control field. If the property is disabled, it will not be enabled (No) and will be displayed in a gray color.

延遲

Specifies the delay in milliseconds between repeating events. A repeating event occurs when you click an arrow button or the background of a scrollbar, or one of the record navigation buttons of a Navigation bar, and you keep the mouse button pressed for some time. You can enter a value followed by a valid time unit, for example, 2 s or 500 ms.

微調按鈕

可以將數字欄位、貨幣欄位、日期和時間欄位當作微調按鈕插入表單中。

按一下以取得焦點

If you set this option to "Yes", the Push button receives the focus when you click the button.

按照記錄進行

Specifies to show or hide the action items in a selected Navigation bar control. Action items are the following: Save record, Undo, New record, Delete record, Refresh.

捲動值 (最小值)

指定捲軸控制項的最小值。

捲軸

新增您為文字方塊指定的捲軸類型。

數值

隱入的控制項中的[數值]下,您可以輸入由隱入的控制項繼承的資料。傳送該表單時,此資料將被傳輸。

文字斷行

Displays text on more than one line. Allows you to use line breaks in a text box, so that you can enter more than one line of text. To manually enter a line break, press Enter.

文字方塊

With control fields that have a frame, you can determine the border display on the form using the "Border" property. You can select among the "Without frame", "3-D look" or "Flat" options.

文字行結尾為

針對文字欄位,選取將文字寫入資料庫欄時,要使用的行尾程式碼。

文字類型

Allows you to use line breaks and formatting in a control field, such as a text box or label. To manually enter a line break, press the Enter key. Select "Multi-line with formatting" to enter formatted text.

警告圖示

如果選取「多行格式」的文字類型,則無法使此控制項與資料庫欄位連結。


評註圖示

對於位於表格控制項中的文字欄位,此控制項名為「多行輸入」。


方向

指定捲動軸或微調按鈕的水平或垂直方向。

日期格式

With date fields you can determine the format for the date readout.

評註圖示

不管您輸入的方式為何,所有格式欄位 (日期、時間、貨幣、數值) 都會在您離開時自動以選取的格式格式化。


時間格式

可以定義所需的時間顯示格式。

最大數值

對於數值欄位和貨幣欄位,可以確定使用者能夠輸入的最大值。

最大的捲動數值

指定捲軸控制項的最大值。

最小數值

您可以決定數字和貨幣欄位的最小值,以避免使用者輸入較小的數值。

最短日期

確定使用者可以輸入的最早日期。

最短時間

確定使用者可以輸入的最小時間。

最長日期

確定一個日期,以限定使用者輸入的數值不得超過此日期。

最長時間

確定一個時間,以限定使用者輸入的值不得超過此時間。

最長的文字

對於文字方塊和組合方塊,可以定義使用者能夠輸入的最多字元數。如果此控制項欄位屬性不確定,則預設設定值將為零。

If the control is linked to a database and the text length is to be accepted from the field definition of the database, you must not enter the text length here. The settings are only accepted from the database if the control property was not defined ("Not Defined" state).

格式化

指定用於此控制項的格式碼。按一下 [...] 按鈕,選取格式碼。

標籤欄位

指定控制項貼標的來源。會在找到來源資料庫欄位名稱的任何位置插入貼標欄位的文字。例如,在 [篩選助手][搜尋] 對話方塊中,在表格檢視中則做為欄名稱。

To define one character of the label as a mnemonic, so that the user can access this control by pressing the character on the keyboard, insert a tilde (~) character in front of the character in the label.

只有群組方塊的文字會在選項欄位 (圓形按鈕) 下允許為標籤欄位。這個文字適用於相同群組的所有選項欄位。

若是在文字欄位旁的「...」上按一下,則會顯示「選擇標籤欄位」對話方塊。您可以在此從控制項的清單中選取一個控制項。

Check the No assignment box to remove the link between a control and the assigned label field.

標題

The "Label" property sets the label of the control field that is displayed in the form. This property determines the visible label or the column header of the data field in table control forms.

When you create a new control, the description predefined in the "Name" property is used as the default for labeling the control. The label consists of the control field name and an integer numbering the control (for example, CommandButton1). With the "Title" property, you can assign another description to the control so that the label reflects the function of the control. Change this entry in order to assign an expressive label to the control that is visible to the user.

To create a multi-line title, open the combo box using the Arrow button. You can enter a line break by pressing Shift++Enter.

評註圖示

The "Title" property is only used for labeling a form element in the interface visible to the user. If you work with macros, note that at runtime, a control is always addressed through the "Name" property.


樣式

Specifies whether Check boxes and Option buttons are displayed in a 3D look (default) or a flat look.

檢查格式

You can have a format check with control fields that accept formatted contents (date, time, and so on). If the strict format function is activated (Yes), only the allowed characters are accepted. For example, in a date field, only numbers or date delimiters are accepted; all alphabet entries typed with your keyboard are ignored.

清單項目

Please note the tips referring to the keyboard controls.

[預設] 組合方塊中輸入預先定義的預設清單項目。

評註圖示

請注意,只有在 [資料] 標籤的 [清單內容的類型] 下選取了「數值清單」選項時,此處輸入的清單項目才會加入表單中。


如果要為清單項目指定表單中未顯示的數值,而不是將清單項目寫入到資料庫或傳送給 Web 表單的收件者,則可為清單項目指定數值清單中的其他數值。數值清單在 [資料] 標籤中確定。在 [清單內容的類型] 下選取 [數值清單] 選項,然後在 [清單內容] 下輸入數值,這些數值會指定給在表單中顯示的對應清單項目。若要正確指定,請依數值清單中的順序進行。

評註圖示

若是 HTML 文件,在 [一般] 標籤中輸入的清單項目會對應到 HTML 標籤 <OPTION>,而在 [清單內容] 下之 [資料] 標籤中輸入的數值清單項目則會對應到 <OPTION VALUE=...> 標籤。


滑鼠滾輪捲動

Sets whether the value changes when the user scrolls a mouse wheel. Never: No change of the value. When focused: (default) The value changes when the control has the focus and the wheel is pointing at the control and gets scrolled. Always: The value changes when the wheel is pointing at the control and gets scrolled, no matter which control has the focus.

瀏覽位址列

Specifies whether to display the Navigation bar on the lower border of table controls.

符號色彩

指定控制項的符號色彩,例如捲軸上的箭頭。

背景顏色

大多數的控制項欄位皆可使用背景顏色。按一下 [背景顏色] 即會開啟清單,讓您從各種顏色中挑選。[標準] 選項採用系統設定。如果想要的顏色未列出,請按一下 [...] 按鈕在顏色對話方塊中定義顏色。

自動完成

The AutoFill function displays a list of previous entries after you start to type an entry.

說明文字

提供用於輸入說明文字的選項,這些文字將作為提示顯示在控制項上。在使用者模式中,當滑鼠指標移至該控制項上時,就會顯示提示文字。

For URL type buttons, the help text appears as the extended tip instead of the URL address entered under URL.

說明文字

在每個控制項欄位中,都可以為其指定其他資訊或描述性文字。此屬性有助於程式設計師儲存可在程式碼中使用的其他資訊。例如,使用此欄位來放置變量或其他演算參數。

貨幣圖示

In a currency field, you can predefine the currency symbol by entering the character or string in the "Currency symbol" property.

資料標記

指定是否在第一欄中顯示列標籤,其中目前的記錄使用箭頭標記。

輸入遮罩

透過指定圖案欄位中的字元碼,您可以決定使用者在圖案欄位中可以輸入的內容。

編輯遮罩的長度決定了可能的輸入位置之數目。如果使用者輸入的字元與編輯遮罩不一致,則在離開該欄位時,系統會拒絕輸入的內容。可以輸入以下字元來定義編輯遮罩:

字元

涵義

L

A text constant. This position cannot be edited. The character is displayed at the corresponding position of the Literal Mask.

a

The characters a-z and A-Z can be entered. Capital characters are not converted to lowercase characters.

A

The characters A-Z can be entered. If a lowercase letter is entered, it is automatically converted to a capital letter.

c

The characters a-z, A-Z, and 0-9 can be entered. Capital characters are not converted to lowercase characters.

C

The characters A-Z and 0-9 can be entered. If a lowercase letter is entered, it is automatically converted to a capital letter.

N

Only the characters 0-9 can be entered.

x

可以指定所有可列印的字元。

X

All printable characters can be entered. If a lowercase letter is entered, it is automatically converted to a capital letter.


例如,針對文字遮罩「__.__.2000」,定義「NNLNNLLLLL」編輯遮罩,讓使用者在輸入日期時只能輸入四位數字。

遞增/遞減數值

決定每次啟動微調按鈕控制項時要增加或減少的間隔。

邊界顏色

Specifies the border color for controls that have the "Border" property set to "flat".

重複

指定在按一下控制項並按住滑鼠按鈕時,是否會重複微調按鈕等控制項的動作。

隱藏選取

Specifies whether a text selection on a control remains selected when the focus is no longer on a control. If you set Hide selection to "No", the selected text remains selected when the focus is no longer on the control that contains the text.

預設值

設定控制項欄位的預設值。例如,開啟表單時,將會輸入該預設值。

For a Reset type button, the Default value entry defines the status of the control if the reset button is activated by the user.

預設按鈕

The "Default button" property specifies that the corresponding button will be operated when you press the Return key. If you open the dialog or form and do not carry out any further action, the button with this property is the default button.

評註圖示

此特性僅能指定給文件內的單個按鈕。


When using Web page forms, you might come across this property in search masks. These are edit masks that contain a text field and a Submit type button. The search term is entered in the text field and the search is started by activating the button. If the button is defined as the default button, however, simply hit Enter after entering the search term in order to start the search.

預設捲動值

設定捲軸的預設值。

預設文字

設定文字方塊或組合方塊的預設文字。

預設日期

設定預設日期。

預設時間

設定預設時間。

預設狀態

指定是否依預設選取定義選項或核取方塊。

對於 [重設類型] 按鈕,您可以定義使用者啟動重設按鈕後控制項的狀態。

For grouped option fields, the status of the group corresponding to the default setting is defined by the "Default Status" property.

預設選取

指定要標記為預設條目的清單方塊條目。

For a Reset type button, the Default selection entry defines the status of the list box if the reset button is activated by the user.

For a List box that contains a value list, you can click the ... button to open the Default selection dialog.

當您開啟包括清單方塊的表單時,在 [預設選取] 對話方塊中,請選取要標示為選取的條目。

顯示比例

變更影像大小以符合控制項的大小。

高度

定義控制項的高度。