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
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
if FAppearance = AValue then
|
// if FAppearance = AValue then
|
||||||
exit;
|
// exit;
|
||||||
FAppearance := AValue;
|
FAppearance := AValue;
|
||||||
OwnerDraw := FAppearance <> nil;
|
OwnerDraw := FAppearance <> nil;
|
||||||
OnDrawItem := @DrawItemHandler;
|
OnDrawItem := @DrawItemHandler;
|
||||||
|
@ -995,6 +995,9 @@ end;
|
|||||||
|
|
||||||
procedure TSpkLargeButton.CalcRects;
|
procedure TSpkLargeButton.CalcRects;
|
||||||
begin
|
begin
|
||||||
|
if (FDropdownMenu is TSpkPopupMenu) then
|
||||||
|
TSpkPopupMenu(FDropdownMenu).Appearance := FAppearance;
|
||||||
|
|
||||||
{$IFDEF EnhancedRecordSupport}
|
{$IFDEF EnhancedRecordSupport}
|
||||||
if FButtonKind = bkButtonDropdown then
|
if FButtonKind = bkButtonDropdown then
|
||||||
begin
|
begin
|
||||||
|
Reference in New Issue
Block a user