spktoolbar: Fix broken assignment of SpkPopopMenu to buttons at designtime.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8726 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2023-02-21 22:03:57 +00:00
parent 33121d356d
commit 100404da41
2 changed files with 5 additions and 2 deletions

View File

@ -196,8 +196,8 @@ procedure TSpkPopupMenu.SetAppearance(AValue: TSpkToolbarAppearance);
var
i: Integer;
begin
if FAppearance = AValue then
exit;
// if FAppearance = AValue then
// exit;
FAppearance := AValue;
OwnerDraw := FAppearance <> nil;
OnDrawItem := @DrawItemHandler;

View File

@ -995,6 +995,9 @@ end;
procedure TSpkLargeButton.CalcRects;
begin
if (FDropdownMenu is TSpkPopupMenu) then
TSpkPopupMenu(FDropdownMenu).Appearance := FAppearance;
{$IFDEF EnhancedRecordSupport}
if FButtonKind = bkButtonDropdown then
begin