Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

Component question.

How can I add/change a component's icon if I have the ".pas" file?
0
rayek007
Asked:
rayek007
1 Solution
 
ILECommented:
wery easy
justo go in components meny
install copmponent
in the unit name put the full path or use brovse
and press ok



that easy

0
 
BorlandManCommented:

Ok, what you want to do is change the components icon on the component palette right? I'll assume "yes"

to do this, you create a .dcr file or a .res and put your bitmap in there (24 pixels big). Name the file the same thing as the component's filename and delphi should pick the icon up.

see "adding palette bitmaps" in the help under the "Creating custom components" section and sub section "making components available at design time"

hope that helps you out.

sincerely,
J
0
 
rayek007Author Commented:
Every time i try to create a .res or .dcr and load it i get an error "Unsupported 16 bit resource". I tried all
2, 16, 256 etc colors but none worked. Please be more specific about the creating methods of the .dcr,.res files
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now