AC 14.0 Skin Manager Common Sections AV

  • This topic has 2 replies, 2 voices, and was last updated 6 years ago by TAZ.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37932
    TAZ
    Participant

    Found an access violation error. I had been using this since I asked a question back in June “Brightness Scale Question”.

    –This causes AV–

    procedure TfrmStylePreview.smMainAfterChange(Sender: TObject);

    begin

    frmStyleSelect.tkbrBrightness.Min := smMain.CommonSkinData.BrightMin;

    frmStyleSelect.tkbrBrightness.Max := smMain.CommonSkinData.BrightMax;

    end;

    –AV points to–

    function TacSkinData.BrightMax: integer;

    begin

    Result := TsSkinManager(FOwner).SkinCommonInfo.BrightMax;

    end;

    function TacSkinData.BrightMin: integer;

    begin

    Result := TsSkinManager(FOwner).SkinCommonInfo.BrightMin;

    end;

    #58337
    Support
    Keymaster

    Hello

    AlphaSkins is active when this code is executed?

    Skin should be activated already, please check it.

    #58342
    TAZ
    Participant

    I adjusted my code. It was working in v13 so you must have corrected something that exposed this. Thanks.

    'Support' wrote:

    Hello

    AlphaSkins is active when this code is executed?

    Skin should be activated already, please check it.

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