Skip to content

TStyledPanel – Access Violation in StyledButtonEditor and Color property not applied #98

@ASOFTSRL

Description

@ASOFTSRL

Environment
RAD Studio version: 11.1 Alexandria
OS: Windows 10/11

Fresh VCL Forms Application

Issue 1 – Access Violation when opening StyledButtonEditor
Steps to reproduce
Create a new VCL Forms Application.
Drop a TStyledPanel on the form.
Right-click the component.
Click on "Styled Button Editor…"

Result
Access violation at address XXXXXXXX in module 'dclStyledComponents280.bpl'.
Read of address 00000008.


Issue 2 – Color property not applied
Steps to reproduce

Create a new VCL Forms Application.
Drop a TStyledPanel on the form.

Set property:
Color := clRed
ParentBackground := False

Run the application.

Result
The panel does not become red.
The visual background remains unchanged.

Expected behavior
Setting Color := clRed should make the panel background red, like a standard TPanel.

What is the correct way to programmatically set a custom background color?
Thanks

Alberto

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions