Object Inspector

From Delphi for PHP Documentation Wiki

Jump to: navigation, search

View Image:pathPDF.jpg Object Inspector

Use the "Object Inspector" to set the properties and events for the currently selected object.

Tab Description
Properties Displays the properties for the selected object on a form.
Events Displays the events for the selected object on a form.
Javascript Displays JavaScript events for the selected object on a form.


Image:oi_properties.png Image:oi_events.png Image:oi_jsevents.png

The Object Inspector shows a list of properties, events and JavaScript events of PHP components. It also shows a list of attributes for an HTML tag on the visual HTML editor. This list is extracted using DTDs depending on the type of document. Those DTDs are parsed when the IDE starts and are located at <delphiforphp>\schemas folder

Image:linked_properties.png

The Object Inspector also supports linked properties, that is, properties that make a reference to another component in the same form, or in another used form/datamodule. A linked property can be expanded to show the properties of the referenced component, and there is no limit in the levels this can take. If the Name property is changed, the uniqueness of it must be checked to be unique on the owner form.

Image:nested.png

Properties can be nested, for example Font.Size, in the Object Inspector, are show in a tree structure allowing the user to collapse and expand. Properties can show a list of valid values to be set, can show an ellipsis button, that, when pressed, show a dialog to set the property, and, can also be of type password, in which the contents are not shown to the user.

Setting a component property updates it in the visual designer to reflect the change. Double clicking or pressing Enter on events or js events generates an empty event for the selected component(s).

Image:event_values.png

Dropping down a combo box for an Event or JavaScript event shows a list of existing event handlers. Pressing Enter in a property stores its value and modifies the component. If the focus comes from the designer (a key was pressed directly on the designer) the focus will be returned to the designer.

Personal tools