Delphi Test
Delphi
code posted
created at 10 Jul 15:21
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. |
661 Bytes in 2 ms with coderay