Sign in Join
Wiki copytemporary

IDE Window: Object Inspector/ja: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11# オブジェクトインスペクタ
22
33![](/wiki-images/8/88/ObjectInspector_ja.png)
44
55「オブジェクトインスペクタ」ウィンドウを使うと、オブジェクトのプロパティを調査したり編集したりできる。ここで言うオブジェクトとは、TFormやTButton、TOpenDialogなどのTPersistentの派生である。
66
77上部には、現在編集中のデザイナフォーム(またはデータモジュール、フレームなど)のコンポーネントを表示するツリーがある。
88
99オブジェクトインスペクタの大部分は、「Properties」、「Events」、「Favorites」と呼ばれる3つのプロパティグリッドで構成されている。各プロパティグリッドは、選択されたコンポーネントの公開プロパティのサブセットを表示する。
1010
1111オブジェクトインスペクタは、自分のプログラムのデバッグに役立つツールである。自分のプログラムにオブジェクトインスペクタを追加する方法は、examples/objectinspectorで示されている。
1212
1313# キーボードショートカット
1414
1515| ショートカット | 内容 |
1616|----------------|----------------------|
1717| Up, Down | 行の移動 |
1818| Alt + Left | 配下の項目を隠す |
1919| Alt + Right | 配下の項目を表示する |
2020| Ctrl + Enter | 次の候補を表示 |
2121
2222キーボードを使用して、Propaty名の高速検索と編集を行うことができる。 例えば、、フォームのCaption(キャプション)とWidth(幅)のプロパティを変更したい場合の手順は以下の通りである:
2323
2424- フォームを選択する。
2525- オブジェクトインスペクタに移動する(Property値列に入力カーソルが表示される)。
2626- Tabキーを押してProperty名列に切り替える(入力カーソルが値列から消える)。
2727- 「caption」とタイプする。「Caption」Property行が検索されてフォーカスされる。
2828- TabまたはEnterキーを押して、プロパティ値を編集する。
2929- 再度、Tabキーを押してプロパティ名列に切り替える。
3030- 「width」とタイプします。「Width」行が検索される。
3131- TabまたはEnterキーを押して、値を編集する。
3232
3333もしPropaty名を間違えてしまった場合、Escキーを押して入力をキャンセルし、再度タイプし直すことができる。または、Backspaceキーを使用して、最後の数文字を削除することも可能である。
3434
3535# オブジェクトインスペクタのポップアップメニュー
3636
3737![](/wiki-images/5/51/ObjectInspectorPopUpMenu_ja.png)
3838
3939オブジェクトインスペクタのPropatyタブで右クリックすると、オブジェクトインスペクタのポップアップメニューが表示される。ポップアップメニューに含まれる項目は以下の通りである:
4040
4141## デフォルトに設定
4242
4343プロパティ値をデフォルトにする。例えば:
4444
45-` property Position: TPosition read FPosition write SetPosition default poDesigned;`
45+```text
46+ property Position: TPosition read FPosition write SetPosition default poDesigned;
47+```
4648
4749ここで poDesigned がデフォルトである。
4850
4951注意: すべてのプロパティがデフォルト値を持っているわけではない。**stored**関数で定義されたデフォルト値はこの関数により無視される。
5052
5153## お気に入りに追加
5254
5355Add the property to the Favorites tab of the Object Inspector.
5456
5557## 制限されたプロパティを見る
5658
5759Opens the [[IDE Window: Restriction Browser|Restriction Browser]].
5860
5961## 元に戻す
6062
6163Discard changes to the property edit field and restore the value of the current property. Do not confuse this with the value from the disk.
6264
6365## Cursorの宣言に移動
6466
6567Jump to the source declaration of the property. This will be the last one. For example TForm.Left is published in the class TForm and defined in TControl. You can jump easily to the other declaration, by doing a find declaration on the name again and again, until you are the lowest definition (Alt+Up or Ctrl+LeftClick). You can jump back with Ctrl+H.
6668
6769## コンポーネントツリーを表示
6870
6971Show or hide the component tree at the top of the Object Inspector.
7072
7173## Show Property Filter
7274
7375Show or hide the Properties (filter) edit field above the Properties tab of the Object Inspector.
7476
7577## ヒントを表示
7678
7779Enable or disable the showing of hints. Hints are shown, when the mouse stops for a few seconds over a property.
7880
7981## 情報箱を表示
8082
8183Enable or disable the showing of the yellow background Information Box at the bottom of the Object Inspector. The Information Box describes the currently highlighted property and may contain links to related properties and the package to which the component belongs. If the box is not big enough to show the full description, it can be scrolled.
8284
8385## ステータスバーを表示
8486
8587Enable or disable the showing of the Status Bar on the last line at the bottom of the Object Inspector.
8688
8789## オプション
8890
8991Configure some options of the Object Inspector including the colours used.
9092
9193---
9294*From the Free Pascal wiki, page "IDE Window: Object Inspector/ja", as it stood on 2024-03-22 after a change by Ariben, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history