How is the cvToolbar.ClickedItem updated before the MouseDown event?
procedure TForm1.cvToolBarMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin TIPropertyGrid1.TIObject := cvToolbar.ClickedItem; // <- ClickedItem = a TCollectionItem variable of the toolbar end;
How is the cvToolbar.ClickedItem updated before the MouseDown event?Thanks for the reply. Getting the clicked item at runtime amounts to this:
It would be useful to see source code of your component.
Items.Item[x]
array property is a type of property that cannot be published.Your ClickedItem and HoveredItem are public, and so not available in the Object Inspector.
And your published Items property is the entire collection, so cannot show selection of any individual item, and yourCode: [Select]Items.Item[x]
array property is a type of property that cannot be published.
Are you able to post a compilable project that produces the screenshot you show?Actually it is not a project but a package, although the .lpk file was not provided.
The code in your earlier post cannot be made into a compilable project because of missing BCxxxx unit dependencies.