Frequently Asked Component Specific Questions

Options

Display all FAQ items

Search FAQ items:


Displaying items 1 to 1 of 1, page 1 of 1

<< previous next >>

TInspectorBar
Programmatically adding a property panel and item and starting editor

This code adds a new panel in property style and adds on regular editable item:
var
  pnl: TInspectorPanel;
  inspi: TInspectorItem;
begin
  pnl := inspectorbar1.Panels.Add;
  pnl.Style := psProperties;
  inspi := pnl.Items.Add;
  inspi.PropertyType := ptText;
  inspi.Caption := 'Edit';
end;
This item can be programmatically set into edit mode with the code:
begin
  inspectorbar1.SetFocus;
  inspectorbar1.StartEdit(inspectorbar1.Panels[0].Items[0]);
end;