IDE: highDPI: support source editor (editor toolbar).

git-svn-id: trunk@53545 -
This commit is contained in:
ondrej 2016-12-03 08:23:00 +00:00
parent bbef187785
commit c22bc4f0c3
2 changed files with 5 additions and 1 deletions

View File

@ -219,6 +219,9 @@ begin
CfgItem.OnClick := @FCollection.DoConfigureEditorToolbar;
FToolBar.PopupMenu := xPM;
if FWindow.PixelsPerInch<>96 then
FToolBar.AutoAdjustLayout(lapAutoAdjustForDPI, 96, FWindow.PixelsPerInch, 0, 0, False);
end;
destructor TEditorToolbar.Destroy;

View File

@ -8,7 +8,8 @@ object SourceNotebook: TSourceNotebook
ClientHeight = 300
ClientWidth = 400
OnMouseUp = FormMouseUp
LCLVersion = '1.5'
LCLVersion = '1.7'
Scaled = True
object StatusBar: TStatusBar
Left = 0
Height = 20