SVGIconImageList icon indicating copy to clipboard operation
SVGIconImageList copied to clipboard

Access Violation when using with FMX and Styles

Open lancerasmussen opened this issue 3 years ago • 2 comments

svgImageListIssueProject.zip

Simple start to an FMX application in Delphi 11.1

Set a style to the application, connected main menu to svgiconimagelist and assigned an image to the menu item. When passing mouse over or clicking the menu item with the svg image, an A/V appears breaking into FMX.Controls.

lancerasmussen avatar Aug 15 '22 04:08 lancerasmussen

I did some tests, but I didn't understand the reason of the AV. I noticed that if you don't activate StyleBook1.UseStyleManager and assign the style to the form via code:

procedure TfrmMain.FormCreate(Sender: TObject);
begin
  Self.StyleBook := StyleBook1;
end;

the problem doesn't appear. For some reason the creation of the TSVGIconImageList after the style is already assigned generate some problems with the Menu component, while with other visual components I have not had any reports... Sorry but I'm not an expert of FMX, I cannot help you.

carloBarazzetta avatar Aug 28 '22 15:08 carloBarazzetta

Can I close this issue?

carloBarazzetta avatar Sep 14 '22 06:09 carloBarazzetta