Hi, in dev bgracontrols we have this new component, TBCComboBox, that is made with a TBCButton and a TListBox.
https://github.com/bgrabitmap/bgracontrols/blob/dev-bgracontrols/bccombobox.pasI registered the property editors for the button and the listbox
procedure Register;
begin
RegisterComponents('BGRA Controls', [TBCComboBox]);
RegisterPropertyEditor(TypeInfo(TListBox),
TBCComboBox, 'ListBox', TClassPropertyEditor);
RegisterPropertyEditor(TypeInfo(TBCButton),
TBCComboBox, 'Button', TClassPropertyEditor);
end;
So now for example I can assign ListBox.Items from the object inspector, then at runtime these get loaded like a normal property does.
I can assign the style for the button too, but in this case then at runtime the default style is shown... what is missing in TBCButton to work like TListBox regarding loading and saving properties from the object inspector?