You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constructor TForm1.Create(AOwner: TComponent);
begin
inherited;
TVclStylesSystemMenu.Create(Self);
end;
if you has compile option range check on(the default is false), you will get a runtime error:
Project Project1.exe raised exception class ERangeError with message 'Range check error'.
the reason is here:
if SameText('Windows', s) then
AddMenuSeparatorHelper(FVCLStylesMenu, LSubMenuIndex); //error: use a used LSubMenuIndex for new item
it should be:
if SameText('Windows', s) then
begin
Inc(LSubMenuIndex); //n9p+: use a new index for the Separator
AddMenuSeparatorHelper(FVCLStylesMenu, LSubMenuIndex);
end;
The text was updated successfully, but these errors were encountered:
salvadordf
added a commit
to salvadordf/vcl-styles-utils
that referenced
this issue
Sep 4, 2023
as the document suggestion, write this codes:
constructor TForm1.Create(AOwner: TComponent);
begin
end;
if you has compile option range check on(the default is false), you will get a runtime error:
Project Project1.exe raised exception class ERangeError with message 'Range check error'.
the reason is here:
it should be:
The text was updated successfully, but these errors were encountered: