Adding CustomColors in TsColorSelect

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33371
    Chris
    Participant

    When I try to add custom colors in my TsColorSelect control, I get an access violation at runtime.

    Here's the code I'm using:

    sColorSelect1.ColorDialog.CustomColors.Add('ColorA=' + IntToHex(clGray, 8));

    That code works fine when used with a standard Delphi TColorDialog:

    ColorDialog1.CustomColors.Add('ColorA=' + IntToHex(clGray, 8));

    I'm using AlphaControls version 6.47 with Delphi 7.

    Any ideas?

    #40917
    Support
    Keymaster

    Hello Chris

    This property used for defining a custom user Dialog which will be used.
    So, by default it's nil and dialog will be created immediately before showing.

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