Board index » cppbuilder » how to get my own icon into my new component?
Stephan Treder
![]() CBuilder Developer |
Stephan Treder
![]() CBuilder Developer |
how to get my own icon into my new component?2004-01-15 11:57:38 PM cppbuilder40 Hallo! I just developed my first component. Because i used the standard TPanel for it, in the component palette my component has the same icon as the TPanel-Component. How can i include my own icon for it? greetings stephan |
Mario Sernicola
![]() CBuilder Developer |
2004-01-16 01:47:13 AM
Re:how to get my own icon into my new component?
"Stephan Treder" < XXXX@XXXXX.COM >ha scritto nel messaggio
QuoteHallo! together .cpp and .h files. DCR is a sort of resource file, You've open Image Editor, new Component Resource file (.dcr) and paint a bitmap in Contents->Bitmap->TCOMPONENTNAME all in uppercase. Save it and add it Mario Sernicola |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2004-01-16 02:38:53 AM
Re:how to get my own icon into my new component?
"Mario Sernicola" < XXXX@XXXXX.COM >wrote in message
QuoteYou've to create a TComponentName.dcr resource. is typically used as an external file instead. Gambit {smallsort} |
Cactus
![]() CBuilder Developer |
2004-01-16 11:33:52 AM
Re:how to get my own icon into my new component?Quotein the component palette my component the bitmap name "MyComponent", same name for the component. add this line #pragma resource "MyComponentIcon.res" to your "MyComponent.cpp". rebuild the MyComponetn.cpp regards. |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2004-01-16 11:53:50 AM
Re:how to get my own icon into my new component?
"Cactus" < XXXX@XXXXX.COM >wrote in message
Quotemake a "MyComponentIcon.res" file include a bitmap size shown above. Quoteadd this line Gambit |
Cactus
![]() CBuilder Developer |
2004-01-16 05:15:14 PM
Re:how to get my own icon into my new component?Quote
Quote>add this line |
Stephan Treder
![]() CBuilder Developer |
2004-01-17 11:26:01 PM
Re:how to get my own icon into my new component?QuoteAre you meaning add MyComponentIcon.res to the package project? Stephan |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2004-01-20 07:06:22 AM
Re:how to get my own icon into my new component?
"Cactus" < XXXX@XXXXX.COM >wrote in message news: XXXX@XXXXX.COM ...
QuoteItem names in a *.res file. it could not match case. QuoteAre you meaning add MyComponentIcon.res to the package project? |