一般

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 Properties - General tab.

Open 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.

前置圖示

Determines if the currency symbol is displayed before or after the number when using currency fields. The default setting is currency symbols are not prefixed.

動作

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。您可以使用 [外框] 指定目標外框。

第一條記錄

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

上一條記錄

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

下一條記錄

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

最後一條記錄

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

儲存記錄

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

復原資料條目

撤銷目前記錄的變更。

新增記錄

將目前表單移至插入列。

刪除記錄

刪除目前記錄。

重新整理表單

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


千位分隔符

With numerical and currency fields you can determine whether thousands separators are used.

可列印

Specifies whether you want the control field to appear in a document's printout.

可擴展

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.


多重選取

Allows you to select more than one item in a list box.

大量變更

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

字元遮罩

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.

評註圖示

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


字型

For control fields which have visible text or titles, select the display font that you want to use. To open the Font dialog, click the ... button. The selected font is used in control fields names and to display data in table control fields.

定位

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 Collabora Office module options. If you want, you can enter a value followed by a valid measurement unit, for example, 2 cm.

寬度

定義控制項的寬度。

對齊/圖形對齊

The alignment options are left-aligned, right-aligned, and centered. These options are available for the following elements:

  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.

小數點位數

With numerical and currency fields you can determine the number of digits displayed to the right of the decimal point.

少量變更

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

差異值

You can preset the value intervals for numerical and currency spin buttons. Use the up and down arrows of the spin button to increase or decrease the value.

已啟用

If a control field has the property "Enabled" (Yes), the form user can use the control field. Otherwise (No), it is disabled and greyed out.

延遲

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.

微調按鈕

Numerical fields, currency fields, date and time fields can be introduced as spin buttons in the form.

按一下以取得焦點

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.

捲動值 (最小值)

Specify the minimum value of a scrollbar control.

捲軸

Adds the scrollbar type that you specify to a text box.

數值

In a hidden control, under Value, you can enter the data which is inherited by the hidden control. This data will be transferred when sending the form.

文字斷行

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.

評註圖示

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


時間格式

You can define the desired format for the time display.

最大數值

For numerical and currency fields, you can determine the maximum value that the user can enter.

最大的捲動數值

Specify the maximum value of a scrollbar control.

最小數值

For numerical and currency fields you can determine a minimum value to prevent the user from entering a smaller value.

最短日期

Determines the earliest date that a user can enter.

最短時間

Determines the minimum time that a user can enter.

最長日期

Determines a date which can not be exceeded by another value introduced by the user.

最長時間

Determines a time which can not be exceeded by another value introduced by the user.

最長的文字

For text and combo boxes, you can define the maximum number of characters that the user can enter. If this control field property is uncertain, the default setting will be zero.

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).

格式化

Specifies the format code for the control. Click the ... button to select the format code.

標籤欄位

Specifies the source for the label of the control. The text of the label field will be used instead of the name of a database field. For example, in the Filter Navigator, Search dialog, and as a column name in the table view.

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 the table control.

符號色彩

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

背景顏色

A background color is available for most control fields. If you click on Background color, a list will open which enables you to select among various colors. The "Standard" option adopts the system setting. If the desired color is not listed, click the ... button to define a color in the Color dialog.

自動完成

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

說明文字

Provides the option of entering a help text that will be displayed as a tip on the control. The tip shows the text in user mode when the mouse is moved over the control.

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

說明文字

In each control field you can specify additional information or a descriptive text for the control field. This property helps the programmer to save additional information that can be used in the program code. This field can be used, for example, for variables or other evaluation parameters.

貨幣圖示

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

資料標記

Specifies whether the first column is displayed with row labels, in which the current record is marked by an arrow.

輸入遮罩

By specifying the character code in pattern fields, you can determine what the user can enter in the pattern field.

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

字元

涵義

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 if the action of a control such as a spin button repeats when you click the control and hold the mouse button down.

隱藏選取

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.

預設值

Sets the default value for the control field. For example, the default value will be entered when a form is opened.

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.

預設捲動值

Sets the default value for the scrollbar.

預設文字

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

預設日期

設定預設日期。

預設時間

設定預設時間。

預設狀態

Specifies whether an option or a check box is selected by default.

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

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

預設選取

Specifies the list box entry to mark as the default entry.

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.

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

顯示比例

Resizes the image to fit the size of the control.

高度

定義控制項的高度。

Please support us!