Hide Inspector Description Pane

Delphi code posted
created at 03 Sep 22:39, updated at 03 Sep 22:39

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Unit NoInspectorDescriptionPane;

Interface

Procedure Register;

Implementation

Uses
    Forms, Classes, Controls, Dialogs;

Function FindObjectInspector: TComponent;
Var
    I: Integer;
Begin
    Result := Nil;
    For I := 0 To Screen.FormCount - 1 Do
        If Screen.Forms[I].ClassName = 'TPropertyInspector' Then
            Exit(Screen.Forms[I]);
End;

Procedure Register;
Var
    aComp: TComponent;
Begin
    aComp := FindObjectInspector;
    If Assigned(aComp) Then
    Begin
        aComp := aComp.FindComponent('DescriptionPane');
        If Assigned(aComp) Then
        Begin
            (aComp As TControl).Height := 0;
        End;
    End;
End;

End.
705 Bytes in 2 ms with coderay