Ticket CS41515
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

TcxButton - Add support for image lists (TcxImageList/TImageList/TCustomImageList)

Add ImageList support for TcxButtons (to support PNG images)

created 18 years ago

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:

  1. 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.
Comments (3)
Serge (DevExpress Support) 18 years ago

    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

      Serge (DevExpress Support) 18 years ago

        Oops, sorry for missing that point … and thank you for the clarification, David. I have made the report public.
        Thanks,
        Serge

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.