Closed lancerasmussen closed 2 months ago
I also tried plain simple Freeing and it gave same error. I tried the standard delphi TToolbar and buttons and tried the Free and it worked. while tpmenu.ButtonCount > 0 do tpmenu.Buttons[0].Free;
Example test project BadMenuIndexing.zip
Please remove this line at 1426 from Vcl.StyledToolbar.pas RemoveControl(Control);
Fixed in 3.6.2, please confirm ;-)
No longer stack overflow. Now just cant seem to keep the toolbar buttons in the exact order I want.
Confirmed
May be in part related to prior issue posted.
When calling the ClearButtons method it gives an error in the CMControlChange procedure:
procedure TStyledToolBar.CMControlChange(var Message: TCMControlChange); begin inherited; with Message do if Inserting then InsertButton(Control) else RemoveButton(Control); <-- Stack Overflow error. end;