[DUG] Component icon change help

Jeremy Coulter vss at vss.co.nz
Fri Jan 4 19:49:34 NZDT 2008


take a look at the DCR file for the component (or another other controls
dcr)  from memory  dcr =  delphi component resource.
This is where you put the icon for a component, and then instead of {$R
test.res} you do {$R test.dcr}
Once again...thats from memeory, but I think its right.
 
Jeremy

  _____  

From: delphi-bounces at listserver.123.net.nz
[mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Vikas...
Sent: 4 January 2008 18:10
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Component icon change help


Hi,
 
I am actually new to component creation in delphi. I developed one component
whose ancestor is derived from tcomopent. But i came up with one trouble
that is i dotn want the component to have it default look i crated one
resource file using delphi iamge editor and btmap in it. Then i included {$R
test.res} under inface section, But i still takes the default compoent look.
I even tried .dcr file but that diesnt seems to help me. 
Please anyone can help me how do i change the compoent default look and let
it handle the bitmap aperace as i mentioned in my res file.
 
One more thing i tried other compoent style of writing and i checked their
resource file using resource hacker exe. I found my resource file is
correct. i am sure i am missing a imporant step somewhere which i am not
able to figure out. 
 
Regards
Vikas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20080104/ca926264/attachment.html


More information about the Delphi mailing list