You've already forked lazarus-ccr
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:
@ -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;
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user