mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 21:59:16 +02:00
Merge branch 'IDE/PjInsp/PropPanelLimit' into 'main'
IDE/ProjectInspector: Limit the height of the properties panel See merge request freepascal.org/lazarus/lazarus!395
This commit is contained in:
commit
9b726c777f
@ -15,6 +15,7 @@ object ProjectInspectorForm: TProjectInspectorForm
|
|||||||
OnDeactivate = FormDeactivate
|
OnDeactivate = FormDeactivate
|
||||||
OnDestroy = FormDestroy
|
OnDestroy = FormDestroy
|
||||||
OnDropFiles = FormDropFiles
|
OnDropFiles = FormDropFiles
|
||||||
|
OnResize = FormResize
|
||||||
object ItemsTreeView: TTreeView
|
object ItemsTreeView: TTreeView
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 261
|
Height = 261
|
||||||
@ -162,6 +163,7 @@ object ProjectInspectorForm: TProjectInspectorForm
|
|||||||
Width = 463
|
Width = 463
|
||||||
Align = alBottom
|
Align = alBottom
|
||||||
Caption = 'PropsGroupBox'
|
Caption = 'PropsGroupBox'
|
||||||
|
Constraints.MinHeight = 20
|
||||||
TabOrder = 3
|
TabOrder = 3
|
||||||
OnResize = PropsGroupBoxResize
|
OnResize = PropsGroupBoxResize
|
||||||
end
|
end
|
||||||
|
@ -148,6 +148,7 @@ type
|
|||||||
procedure FormDeactivate(Sender: TObject);
|
procedure FormDeactivate(Sender: TObject);
|
||||||
procedure FormDestroy(Sender: TObject);
|
procedure FormDestroy(Sender: TObject);
|
||||||
procedure FormDropFiles(Sender: TObject; const FileNames: array of String);
|
procedure FormDropFiles(Sender: TObject; const FileNames: array of String);
|
||||||
|
procedure FormResize(Sender: TObject);
|
||||||
procedure ItemsPopupMenuPopup(Sender: TObject);
|
procedure ItemsPopupMenuPopup(Sender: TObject);
|
||||||
procedure ItemsTreeViewAdvancedCustomDrawItem(Sender: TCustomTreeView;
|
procedure ItemsTreeViewAdvancedCustomDrawItem(Sender: TCustomTreeView;
|
||||||
Node: TTreeNode; {%H-}State: TCustomDrawState; Stage: TCustomDrawStage;
|
Node: TTreeNode; {%H-}State: TCustomDrawState; Stage: TCustomDrawStage;
|
||||||
@ -903,6 +904,11 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TProjectInspectorForm.FormResize(Sender: TObject);
|
||||||
|
begin
|
||||||
|
PropsGroupBox.Constraints.MaxHeight := self.Height - FilterPanel.Height - ToolBar.Height - 20;
|
||||||
|
end;
|
||||||
|
|
||||||
procedure TProjectInspectorForm.ItemsPopupMenuPopup(Sender: TObject);
|
procedure TProjectInspectorForm.ItemsPopupMenuPopup(Sender: TObject);
|
||||||
|
|
||||||
procedure SetItem(Item: TIDEMenuCommand; AnOnClick: TNotifyEvent;
|
procedure SetItem(Item: TIDEMenuCommand; AnOnClick: TNotifyEvent;
|
||||||
|
Loading…
Reference in New Issue
Block a user