You've already forked lazarus-ccr
spktoolbar: Clean-up
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6173 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -77,7 +77,6 @@ type
|
|||||||
FGroupIndex: Integer;
|
FGroupIndex: Integer;
|
||||||
FAllowAllUp: Boolean;
|
FAllowAllUp: Boolean;
|
||||||
FDropdownMenu: TPopupMenu;
|
FDropdownMenu: TPopupMenu;
|
||||||
FMouseUp: Boolean;
|
|
||||||
|
|
||||||
// *** Drawing support ***
|
// *** Drawing support ***
|
||||||
// The task of the method in inherited classes is to calculate the
|
// The task of the method in inherited classes is to calculate the
|
||||||
@@ -420,7 +419,7 @@ begin
|
|||||||
if Assigned(FOnClick) then
|
if Assigned(FOnClick) then
|
||||||
FOnClick(Self);
|
FOnClick(Self);
|
||||||
// then trigger the Action
|
// then trigger the Action
|
||||||
if (not (csDesigning in ComponentState)) and (FActionLink <> nil) then //and not FMouseUp then
|
if (not (csDesigning in ComponentState)) and (FActionLink <> nil) then
|
||||||
FActionLink.Execute(Self);
|
FActionLink.Execute(Self);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@@ -705,9 +704,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
if FButtonKind in [bkButton, bkButtonDropdown, bkToggle] then
|
if FButtonKind in [bkButton, bkButtonDropdown, bkToggle] then
|
||||||
begin
|
begin
|
||||||
FMouseUp := true;
|
|
||||||
Click;
|
Click;
|
||||||
FMouseUp := false;
|
|
||||||
FButtonState := bsBtnHottrack;
|
FButtonState := bsBtnHottrack;
|
||||||
if Assigned(FToolbarDispatch) then
|
if Assigned(FToolbarDispatch) then
|
||||||
FToolbarDispatch.NotifyVisualsChanged;
|
FToolbarDispatch.NotifyVisualsChanged;
|
||||||
|
Reference in New Issue
Block a user