Sign in Join
Wiki copytemporary

IDE Window: Object Inspector: what changed

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

OldNewLine
1-## Contents
2-
3- * 1 Object Inspector
4- * 2 Keyboard Shortcuts
5- * 3 Object Inspector Popup Menu
6- * 3.1 Set to default
7- * 3.2 Add to Favorites
8- * 3.3 View restricted properties
9- * 3.4 Undo
10- * 3.5 Jump to declaration of...
11- * 3.6 Show Component Tree
12- * 3.7 Show Property Filter
13- * 3.8 Show hints
14- * 3.9 Show Information Box
15- * 3.10 Show Status Bar
16- * 3.11 Options
17-
181# Object Inspector
192
20-[![ObjectInspectormacOS.png](/wiki-images/b/ba/ObjectInspectormacOS.png)](</File:ObjectInspectormacOS.png>)
3+![](/wiki-images/b/ba/ObjectInspectormacOS.png)
214
22-The "Object Inspector" window allows you to explore and edit the properties of objects. Objects here are TPersistent descendants like a TForm or a TButton or a TOpenDialog.
5+The "Object Inspector" window allows you to explore and edit the properties of objects. Objects here are TPersistent descendants like a TForm or a TButton or a TOpenDialog.
236
24-On the top there is a tree showing the components of the currently edited designer form (or datamodule or frame or whatever).
7+On the top there is a tree showing the components of the currently edited designer form (or datamodule or frame or whatever).
258
26-The biggest part of the Object Inspector are the 3 property grids called 'Properties', 'Events' and 'Favorites'. Each property grid show a subset of the published properties of the selected components.
9+The biggest part of the Object Inspector are the 3 property grids called 'Properties', 'Events' and 'Favorites'. Each property grid show a subset of the published properties of the selected components.
2710
28-The Object Inspector is a useful tool for debugging your own programs. How to add the Object Inspector to your own programs is demonstrated in examples/objectinspector.
11+The Object Inspector is a useful tool for debugging your own programs. How to add the Object Inspector to your own programs is demonstrated in examples/objectinspector.
2912
3013# Keyboard Shortcuts
3114
32-Shortcut | Description
33----|---
34-Up, Down | Navigate rows
35-Alt + Left | Collapse level
36-Alt + Right | Expand level
37-Ctrl + Enter | Cycle enumerated values
38-
39-You can use keyboard for fast Property Name search and edit.
15+| Shortcut | Description |
16+|--------------|-------------------------|
17+| Up, Down | Navigate rows |
18+| Alt + Left | Collapse level |
19+| Alt + Right | Expand level |
20+| Ctrl + Enter | Cycle enumerated values |
4021
41-Let's assume you want to modify Form's Caption and Width properties
42-```
43-- Click Form.
44- - Go to Object inspector (caret is on Property Value column).
45- - Press Tab to switch to Property Name column (caret will disappear from Value column).
46- - Type "caption". Property row "Caption" will be found.
47- - Press Tab or Enter to go to Property Value and edit it.
48-```
49-```
50-- Press Tab to switch to Property Name column again.
51- - Type "width". Width row will be found.
52- - Press Tab or Enter and edit it.
53-```
22+You can use keyboard for fast Property Name search and edit.
5423
55-If you misspelled property name you can press Esc and retype it. Or you can use Backspace to remove few last chars.
24+Let's assume you want to modify Form's Caption and Width properties
5625
26+`- Click Form.`\
27+`- Go to Object inspector (caret is on Property Value column).`\
28+`- Press Tab to switch to Property Name column (caret will disappear from Value column).`\
29+`- Type "caption". Property row "Caption" will be found.`\
30+`- Press Tab or Enter to go to Property Value and edit it.`
31+
32+`- Press Tab to switch to Property Name column again.`\
33+`- Type "width". Width row will be found.`\
34+`- Press Tab or Enter and edit it.`
35+
36+If you misspelled property name you can press Esc and retype it. Or you can use Backspace to remove few last chars.
37+
5738# Object Inspector Popup Menu
5839
59-[![ObjectInspectorPopupMenu.png](/wiki-images/6/65/ObjectInspectorPopupMenu.png)](</File:ObjectInspectorPopupMenu.png>)
40+![](/wiki-images/6/65/ObjectInspectorPopupMenu.png)
6041
61-Right-click in the Properties tab of the Object Inspector to get the Object Inspector's Popup Menu. The items on the Popup Menu are described below.
42+Right-click in the Properties tab of the Object Inspector to get the Object Inspector's Popup Menu. The items on the Popup Menu are described below.
6243
6344## Set to default
6445
65-Set the property value to the default value. For example:
66-```
67-property Position: TPosition read FPosition write SetPosition default poDesigned;
68-```
46+Set the property value to the default value. For example:
6947
70-Here poDesigned is the default.
48+` property Position: TPosition read FPosition write SetPosition default poDesigned;`
7149
72-Note: Not every property has a default value. Default values defined by the **stored** functions are ignored by this function.
50+Here poDesigned is the default.
7351
52+Note: Not every property has a default value. Default values defined by the **stored** functions are ignored by this function.
53+
7454## Add to Favorites
7555
76-Add the property to the Favorites tab of the Object Inspector.
56+Add the property to the Favorites tab of the Object Inspector.
7757
7858## View restricted properties
7959
80-Opens the [[IDE Window: Restriction Browser|Restriction Browser]].
60+Opens the [[IDE Window: Restriction Browser|Restriction Browser]].
8161
8262## Undo
8363
84-Discard changes to the property edit field and restore the value of the current property. Do not confuse this with the value from the disk.
64+Discard changes to the property edit field and restore the value of the current property. Do not confuse this with the value from the disk.
8565
8666## Jump to declaration of...
8767
88-Jump 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.
68+Jump 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.
8969
9070## Show Component Tree
9171
92-Show or hide the component tree at the top of the Object Inspector.
72+Show or hide the component tree at the top of the Object Inspector.
9373
9474## Show Property Filter
9575
96-Show or hide the Properties (filter) edit field above the Properties tab of the Object Inspector.
76+Show or hide the Properties (filter) edit field above the Properties tab of the Object Inspector.
9777
9878## Show hints
9979
100-Enable or disable the showing of hints. Hints are shown, when the mouse stops for a few seconds over a property.
80+Enable or disable the showing of hints. Hints are shown, when the mouse stops for a few seconds over a property.
10181
10282## Show Information Box
10383
104-Enable 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.
84+Enable 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.
10585
10686## Show Status Bar
10787
108-Enable or disable the showing of the Status Bar on the last line at the bottom of the Object Inspector.
88+Enable or disable the showing of the Status Bar on the last line at the bottom of the Object Inspector.
10989
11090## Options
11191
11292Configure some options of the Object Inspector including the colours used.
11393
11494---
115-*From the Free Pascal wiki, page "IDE Window: Object Inspector", as the Internet Archive kept it on 2024-01-21. 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).*
95+*From the Free Pascal wiki, page "IDE Window: Object Inspector", as it stood on 2020-08-30 after a change by FTurtle, 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