Thanks, this is useful information. Looked at the sources of the sample project and found that the missing file "lupa.bmp" (as well as "usplegal.bmp") is used by unit toolbartest.pas in OnCreate handler of the form. Found these two files in
https://sources.debian.org/src/vmg/3.7.1-7 from which I downloaded them into folder examples/controls of the CustomDrawn installation. Changed the OnCreate handler so that they can be found now:
procedure TFormToolBar.FormCreate(Sender: TObject);
var
lBmp: TBitmap;
lItem: TCDToolBarItem;
begin
lToolBar := TCDToolBar.Create(Self);
lToolBar.Parent := Self;
lBmp := TBitmap.Create;
lBmp.LoadFromFile('lupa.bmp');
lItem := lToolBar.AddItem(tikButton);
lItem.Image := lBmp;
lItem.Caption := 'Btn 1';
lItem := lToolBar.AddItem(tikSeparator);
lBmp := TBitmap.Create;
lBmp.LoadFromFile('usplegal.bmp');
lItem := lToolBar.AddItem(tikCheckButton);
lItem.Image := lBmp;
lItem.Caption := 'Btn 2';
lItem := lToolBar.AddItem(tikDivider);
end;
With this modification, the project runs without error, but opening the toolbar window displays a toolbar with empty buttons. I debugged into the Paint project, and was able to enter TCDDrawerCommon.DrawToolBarItem, but there is no indication that the buttons with the images are drawn somewhere...
Please report this in the bug tracker, maybe there is a developer who knows the CustomDrawn package better than me.