Hi,
in order to use Png images with TcxButton, it should be interesting to add ImageList fonctionnality to TcxButtons (Images and ImageIndex properties) to use it with PngImageList component.
I created a derived button that implement this functionality, so:
- In the first time, could you, in cxButton.pas make those modifications :
- Make Draw method of TcxButtonGlyph virtual
- Add ReadOnly protected property to TcxCustomButton : Property ButtonGlyph: TcxButtonGlyph Read FGlyph;
2. In the second time, implement ImageList fonctionnality with ImageList.Draw method call for image drawing.
Joined to this message, the button implementing this functionnality and a sample project.
Thanks a lot,
David
Proposed Solution:
Joined to this message, the button implementing this functionnality and a sample project.
PS: I put this message as private because there is some lines of code copied from cxButton.pas.
If you want, you can change it to public.
Hi David,
Thank you for the suggestion. We appreciate your input and will discuss it with our developers.
In the meantime, can we make this ticket public? I am asking this because your solution may be useful to other programmers who need a similar functionality.
Thanks,
Serge
Hi Serge,
In my proposed solution, I explain you that I make this ticket private because I put DevExpress source code to my button class.
So, Yes, you can make this ticket public.
Tkanks
David
Oops, sorry for missing that point … and thank you for the clarification, David. I have made the report public.
Thanks,
Serge