You've already forked lazarus-ccr
spktoolbar: Fix incorrect dropdown button width in Contents Editor at high dpi.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6198 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -268,12 +268,13 @@ begin
|
||||
if not(Component is TSpkToolbar) then
|
||||
exit;
|
||||
|
||||
if EditWindow = nil then
|
||||
EditWindow := TfrmEditWindow.Create(nil);
|
||||
EditWindow.SetData(TSpkToolbar(Component),Self.GetDesigner);
|
||||
EditWindow.Show;
|
||||
end;
|
||||
|
||||
procedure TSpkToolbarEditor.Edit;
|
||||
|
||||
begin
|
||||
DoOpenContentsEditor;
|
||||
end;
|
||||
@ -371,11 +372,9 @@ begin
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
||||
EditWindow:=TfrmEditWindow.create(nil);
|
||||
//EditWindow:=TfrmEditWindow.create(nil);
|
||||
|
||||
finalization
|
||||
|
||||
EditWindow.Free;
|
||||
|
||||
end.
|
||||
|
@ -127,6 +127,9 @@ implementation
|
||||
|
||||
{$R *.lfm}
|
||||
|
||||
uses
|
||||
IDEWindowIntf;
|
||||
|
||||
resourcestring
|
||||
RSCannotMoveAboveFirstElement = 'You can not move above the top of the first element!';
|
||||
RSCannotMoveBeyondLastElement = 'You can not move beyond the last element!';
|
||||
@ -1173,6 +1176,7 @@ begin
|
||||
end;
|
||||
tbToolbar.ButtonHeight := tbToolbar.Images.Height + 8;
|
||||
// tbToolbar.ButtonWidth := tbToolbar.Images.Width + 8;
|
||||
IDEDialogLayoutList.ApplyLayout(self);
|
||||
end;
|
||||
|
||||
end.
|
||||
|
Reference in New Issue
Block a user