全般

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.


note

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 が表示されます。

わずかな変更

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

アイコンのサイズ

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

アクション

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.

ドキュメントまたは HTML を開く

「URL」 に指定された URL が表示されます。 「フレーム」 を使うと、ターゲットフレームを指定できます。

最初のレコード

現在のフォームが、最初のレコードに移動されます。

前のレコード

現在のフォームが、前のレコードに移動されます。

次のレコード

現在のフォームが、次のレコードに移動されます。

最後のレコード

現在のフォームが、最後のレコードに移動されます。

レコードの保存

必要な場合、現在のレコードが保存されます。

データ項目の取り消し

現在のレコードの変更内容が破棄されます。

新規レコード

現在のフォームが、挿入行に移動されます。

レコードの削除

現在のレコードが削除されます。

フォームの更新

最後に保存されたバージョンの現在のフォームを再読み込まれます。


アンカー

コントロールをどこに固定するかアンカーを定めます。

オートフィル

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

クリック時にフォーカスを取得

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

スクロールの最小値です。

Specify the minimum value of a scrollbar control.

スクロールバー

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

スケール

Resizes the image to fit the size of the control.

スタイル

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

スピンボタン

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

タイトル

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.

note

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.


タブの順序

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

note

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.

タブの順序ダイアログでも、さまざまなコントロールのインデックスを指定できます。

タブストップ

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.


テキストの種類

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.

warning

テキストタイプ「フォーマット付きの複数行」を選択した場合、このコントロールをデータベースフィールドにバインドすることはできません。


note

このコントロールは、テーブルコントロール内のテキスト列用の「複数行入力」と呼ばれています。


テキスト行は次のもので終了

テキストフィールドの場合、テキストをデータベースの列に書き込むときに使用される行終了コードを選択します。

ドロップダウン

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.

テーブルコントロールの列として挿入されたコンボボックスは、標準設定ではつねにドロップダウンが可能です。

ナビゲーション

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.

ナビゲーションバー

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

パスワード用文字

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.

tip

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


フォント

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.

フレーム

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

トップウィンドウ、すなわち階層の最高位のフレームに次のドキュメントを構築します。スタートフレームが既にトップウィンドウである場合、同じフレームにドキュメントを構築します。


note

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


ヘルプ 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.

ヘルプテキスト

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.

マウスホイールスクロール

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

オプションフィールド(ラジオボタン)の場合、そのグループ枠の文字列しかラベルフィールドとして認められていません。この文字列は、同じグループのオプションフィールドすべてに適用されます。

テキストボックス横の ... ボタンをクリックすると、ラベルフィールドの選択 ダイアログが表示されます。ここで、コントロールのリストから1つのコントロールを選択します。

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

リスト項目

Please note the tips referring to the keyboard controls.

事前定義する標準リスト項目は、コンボボックス 標準値 に入力します。

note

ここに入力したリストの項目がフォームに組み込まれるのは、データ タブの リスト内容の種類 でオプション 値リスト を選択している場合に限られることに注意してください。


リスト項目をデータベースに書き込んだり、Web フォームの受信者に転送したりするのではなく、フォームに表示されない値に割り当てる場合、値リストのほかの値にリスト項目を割り当てることができます。 値リストは 「データ」 タブで決定されます。 「リスト内容の種類」 でオプション「値リスト」を選択します。 次に、フォームの対応する表示リスト項目に割り当てる値を 「リストの内容」 に入力します。 割り当てを正確に行うには、値リストの順序を考慮する必要があります。

note

HTML ドキュメントの場合、全般 タブに入力されたリスト項目は、HTML タグ <OPTION> に対応します。リストの内容 の下にある データ タブに入力されている値リストの項目は、<OPTION VALUE=...> タグに対応します。


レコードに対する操作

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.

レコードマーカー

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

位置 X

アンカーを元にしてコントロールの X 座標を定めます。

位置 Y

アンカーを元にしてコントロールの Y 座標を定めます。

位置決め

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.

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.

入力マスク

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.


たとえば、ユーザーが日付入力時に4桁だけを入力できるようにするには、文字マスク「__.__.2000」に入力マスク「NNLNNLLLLL」を指定します。

切り替え

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

千桁区切り

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

単語ブレーク

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.

印刷可能

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

名前

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.

note

マクロで作業する場合には、コントロールの名前が一意的である必要があります。


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.

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 the border color for controls that have the "Border" property set to "flat".

大幅な変更

ユーザーがスクロールバーのスライダーの前後をクリックしたときに加算または減算する値を指定します。

小数点以下の桁数

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

差値

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.

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.

コントロールの幅を定めます。

文字および画像の配置

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.

    note

    ボタンの 配置 オプションは、図の配置 と呼びます。


文字マスク

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.

note

文字マスクの長さと入力マスクの長さはかならず同じにします。これが同じでないと、入力マスクが短く切られてしまうか、あるいは入力マスクの長さに合わせてスペースが入ってしまいます。


方向

スクロールバーまたはスピンボタンの方向 (水平または垂直) を指定します。

日付の書式

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

note

すべての書式フィールド (日付、時間、通貨、数値) では、フィールドからカーソルが移ると、ユーザーの入力した書式には関係なく、ここで選択した書式が自動的に適用されます。


時間の書式

You can define the desired format for the time display.

書式のチェック

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.

書式設定

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

最初の日付

Determines the earliest date that a user can enter.

最初の時刻

Determines the minimum time that a user can enter.

最大スクロール値

Specify the maximum value of a scrollbar control.

最大値

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

最大文字数

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

最小値

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

最後の日付

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.

有効

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.

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.

標準の日付

標準の日付を設定します。

標準スクロール値

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.

標準テキスト

テキストボックスまたはコンボボックスの標準テキストを設定します。

標準ボタン

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.

note

この属性は常に、ドキュメント内の単一のボタンにのみ割り当てるべきです。


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

標準時刻

標準の時刻を設定します。

標準選択

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.

リストボックスが含まれるフォームを表示させたときに、選択状態にしてマークを付ける項目を 標準選択 ダイアログで選択します。

繰り返し

Specifies if the action of a control such as a spin button repeats when you click the control and hold the mouse button down.

背景色

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.

行の高さ

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.

行数

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.

表示されるサイズ

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.

表示する

コントロールが動作中でも表示するように定めます。デザインモードではコントロールは常に表示されます

注意: このプロパティを「はい」 (デフォルト) に設定したとしても、コントロールが必ず画面に表示されるとは限りません。コントロールの可視性を判断するときは、追加の制約が適用されます。たとえば、Writer で非表示セクションに置かれたコントロールは、少なくともそのセクションが見えるようになるまで全く見えません。

プロパティが「いいえ」に設定されるとコントロールは動作中のモードで常に隠されます。

このプロパティを利用するドキュメントを 3.1 までの古いバージョンの OpenOffice.org で読み込むときは無視されます。

複数選択

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

記号の前置

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.

記号の色

コントロールのシンボル (スクロールバーの矢印など) の色を指定します。

読み込み専用

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.

通貨記号

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

遅延

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.

選択範囲を隠す

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.

高さ

コントロールの高さを定めます。

3倍のステータス

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.

note

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


ご支援をお願いします!