Invalid Graphic (.png) TsSpeedButton

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #35679
    Marvie
    Participant

    Maybe I'm doing something wrong here?

    In the past if I wanted to use a single png file as a glyph for a speed button, I would scroll down in the properties manager and double click on “Glyph”, and then select my image, OK it, and it would show up on the speed button.

    However, with 2013 version when I go to do this I now get “Invalid Graphic Format” when I click the image I want and select ok button

    Am I doing something wrong?

    It still seems to work with imagelists, but just not the single Glyph option?

    #50331
    DarrenB
    Participant

    Hi Marvie,

    I just set up a basic app with a SkinManager, SkinProvider, AlphaImageList and 1 Speed Button.

    Using Delphi XE, AC 8.20, and Windows Vista 64 bit I was able to assign a single glyph using the method you described without error.

    Darren

    #50332
    Marvie
    Participant
    'DarrenB' wrote:

    Hi Marvie,

    I just set up a basic app with a SkinManager, SkinProvider, AlphaImageList and 1 Speed Button.

    Using Delphi XE, AC 8.20, and Windows Vista 64 bit I was able to assign a single glyph using the method you described without error.

    Darren

    Hum? weird.

    I probably should have mentioned previously, that I'm using Delphi 7 and on Windows 7, and it is AC v8.2 stable

    On a hunch, I started a new application, placed just the bare minimum SkinManager, SkinProvider, and a single Speed button, and tried to add via the “Glyph” option in object inspector. I still get the same error.

    #50333
    Marvie
    Participant

    However, as a work around the ImageList option still works ok.

    Everything shows up as expected using imageindex option.

    Just weird that it wouldn't accept a single glyph option.

    Even though it IS in the correct file format.

    #50334
    CheshireCat
    Participant

    Hello Marvie,

    I seem to remember the PNGImage unit must be installed separately for delphi < 2009. You can download the file here.

    Maybe it will help you further…

    #50380
    Marvie
    Participant
    'CheshireCat' wrote:

    Hello Marvie,

    I seem to remember the PNGImage unit must be installed separately for delphi < 2009. You can download the file here.

    Maybe it will help you further…

    Ahhh yes! Now that you mention it I too remember installing that back when I was on Windows XP. I finally got a chance to check into this last week on the laptop and noticed it there. You are correct. Thanks.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.