Uwe Raabe
Uwe Raabe

Reputation: 47819

How can I add an icon to an OCX made with Delphi so that it is visible in VB?

I made an OCX with Delphi 2007. Now my customer claims that there is no icon in his VB when he installs this OCX.

How can I add such an icon to my OCX?

Upvotes: 3

Views: 544

Answers (1)

Lars Truijens
Lars Truijens

Reputation: 43635

According to this old page the constructor of TActiveXControlFactory in the initialization section of your ActiveX Control unit has a parameter called ToolbarBitmapID which is a resource id to a bitmap. That is how you set your icon.

Upvotes: 4

Related Questions