How can I add a glyph property to my custom component?
Vcl.Buttons has declared class TButtonGlyph but I cannot use it (Delphi is not seeing it with Vcl.Buttons in uses list).
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
TButtonGlyphis an internal helper class used by the VCL. It’s not what you need. I suspect that all you need to do is to declare a published property of typeTPicture. The VCL will automatically provide a design time editor and can stream the image to the .dfm file. You can use anyTGraphicdescendent, includingTPNGImage.