Board index » cppbuilder » Associating an Icon to an ActiveX control?

Associating an Icon to an ActiveX control?

I want an Icon associated to the ActiveX control file (the ocx file), but I
can't seem to find any options allowing you to do so.

Any suggestions?

Thanks

 

Re:Associating an Icon to an ActiveX control?


Quote
Daniel Venter wrote in message <7g8t1u$n0...@forums.borland.com>Wrote:
>I want an Icon associated to the ActiveX control file (the ocx file), but I
>can't seem to find any options allowing you to do so.

>Any suggestions?

>Thanks

I had the same problem.

I did put  a bitmap (24*24) in a .RC-file, using Borland C++ resource
workshop.
I gave this bitmap the identifier IDB_BITMAP1 = 1.
And added this file to my Cbuilder 4 ActiveX Control project.
I have tested it in both Visual Basic and CBuilder 4. It works OK.

Borland seems to want to get rid of some of the most fundamental things in
windows-programming, such as good old resource-dilaogboxes, .RC-files and so
on.
They still link in CBuilder 4.

Borland also seems to insist on CBuilder 4 being an upgrade to C++ 5.02.
I dont agree.
C++ 5.02 is outstanding. Please don't drop it Inprise/Borland.

G?ran Nilsson/Sweden.

Re:Associating an Icon to an ActiveX control?


: "G?ran Nilsson" <goran.nils...@utb.lkp.ims.se> wrote:

Quote
>I did put  a bitmap (24*24) in a .RC-file, using Borland C++ resource
>workshop.

Why didn't you use the ImageEditor (see Tools menu)?

--
Stefan Hoffmeister (TeamB)     http://www.econos.de/
Please do apply judgement when sending email.

Re:Associating an Icon to an ActiveX control?


Quote

> Why didn't you use the ImageEditor (see Tools menu)?

-- Well the ImageEditor is not that handy a tool. It only allows inserting
resources like ico,bmp,cursors....   No support for custom resources like
avi files and other things like string tables..or whatever.

BCB desperately needs a  good resource editor.
So custom resources is a nightmare as its not gone RAD yet.

Hate to say but....VC definitely beats BCB here !!

By the way any links dealing with tips on creating and using custom
rsources with BCB ???

--  Roshan

Re:Associating an Icon to an ActiveX control?


Quote
: Roshan <roshan_n...@geocities.com> wrote:
>BCB desperately needs a  good resource editor.
>So custom resources is a nightmare as its not gone RAD yet.

So what about Resource Workshop?

Quote
>By the way any links dealing with tips on creating and using custom
>rsources with BCB ???

Resource Workshop?

--
Stefan Hoffmeister (TeamB)     http://www.econos.de/
Please do apply judgement when sending email.

Other Threads