Jump to content
dmitrybv

Access Violation when selecting 'Edit Default Style' for custom FMX component

Recommended Posts

Hello,
Does anyone have a rough idea of how the "Edit Default Style" popup menu works from the perspective of an FMX visual component developer?

When I select this menu for standard FMX components, the editor opens and displays a class tree (most likely the component style class tree from a *.Style file) along with two images resembling the component's appearance.

However, when I select this menu for my own component, an Access Violation occurs with the following call stack. It seems that my component is missing some code required for the "Edit Default Style" menu to function properly.
At the same time, the stack trace does not show any calls to methods of my component.

Does anyone know what code or interface needs to be implemented in a component to make this menu work correctly?

 

fmx.FMX.Graphics.TCanvas.SetMatrix(((((3.30544895893689e-38, 1.23090828088814e-26, 3.2888612284953e-38), 3.30544895893689e-38, 1.23090828088814e-26, 3.2888612284953e-38), ((4.19567267213872e-14, 9.38856258186976e-27, 3.2888612284953e-38), 4.19567267213872e-14, 9.38856258186976e-27, 3.2888612284953e-38), ((2.80259692864963e-45, 4.63180185761303e-07, 9.85088360576387e-27), 2.80259692864963e-45, 4.63180185761303e-07, 9.85088360576387e-27)), 3.30544895893689e-38, 1.23090828088814e-26, 3.2888612284953e-38, 4.19567267213872e-14, 9.38856258186976e-27, 3.2888612284953e-38, 2.80259692864963e-45, 4.63180185761303e-07, 9.85088360576387e-27))
fmx.FMX.Controls.PaintAndClipChild
fmx.FMX.Controls.TControl.PaintInternal
fmx.FMX.Grid.Style.TStyledGrid.PMEndPaintChildren((4105))
fmx.FMX.Presentation.Messages.TMessageSender.SendMessage(???)
fmx.FMX.ScrollBox.TCustomPresentedScrollBox.PaintChildren
fmx.FMX.Controls.DoPaintInternal
fmx.FMX.Controls.PaintAndClipChild
fmx.FMX.Controls.TControl.PaintInternal
fmx.FMX.Forms.TCustomForm.PaintRects(???)
fmx.FMX.Platform.Win.WMPaint(12652088,15,0,0)
fmx.FMX.Platform.Win.WndProc(12652088,15,0,0)
:76d59b23 ; C:\WINDOWS\SysWOW64\user32.dll
:76d47c9d ; C:\WINDOWS\SysWOW64\user32.dll
:76d47740 ; C:\WINDOWS\SysWOW64\user32.dll
:76d53fa9 ; C:\WINDOWS\SysWOW64\user32.dll
:773eb646 ntdll.KiUserCallbackDispatcher + 0x36
:76d46c90 user32.DispatchMessageW + 0x10
vcl.Vcl.Forms.TApplication.ProcessMessage(???)

 

 

Screenshot 2025-10-18 020129.png

Screenshot 2025-10-18 020223.png

Screenshot 2025-10-18 020236.png

Edited by dmitrybv

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×