dmitrybv 7 Posted 20 hours ago (edited) 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(???) Edited 20 hours ago by dmitrybv Share this post Link to post