mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 21:59:14 +02:00
examples: addrbook: only show graph options
git-svn-id: trunk@40749 -
This commit is contained in:
parent
5a4ce26d88
commit
3621bd6a70
@ -28,6 +28,8 @@ object Form1: TForm1
|
|||||||
Filter = [tkInteger, tkChar, tkEnumeration, tkFloat, tkSet, tkMethod, tkSString, tkLString, tkAString, tkWString, tkVariant, tkArray, tkRecord, tkInterface, tkClass, tkObject, tkWChar, tkBool, tkInt64, tkQWord, tkDynArray, tkInterfaceRaw, tkProcVar, tkUString, tkUChar, tkHelper]
|
Filter = [tkInteger, tkChar, tkEnumeration, tkFloat, tkSet, tkMethod, tkSString, tkLString, tkAString, tkWString, tkVariant, tkArray, tkRecord, tkInterface, tkClass, tkObject, tkWChar, tkBool, tkInt64, tkQWord, tkDynArray, tkInterfaceRaw, tkProcVar, tkUString, tkUChar, tkHelper]
|
||||||
Indent = 13
|
Indent = 13
|
||||||
NameFont.Color = clWindowText
|
NameFont.Color = clWindowText
|
||||||
|
OnEditorFilter = TIPropertyGrid1EditorFilter
|
||||||
|
TIObject = LvlGraphControl1
|
||||||
ValueFont.Color = clMaroon
|
ValueFont.Color = clMaroon
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -6,7 +6,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, RTTIGrids, Forms, Controls, Graphics,
|
Classes, SysUtils, FileUtil, RTTIGrids, Forms, Controls, Graphics,
|
||||||
Dialogs, ExtCtrls, LvlGraphCtrl;
|
Dialogs, ExtCtrls, LvlGraphCtrl, PropEdits, ObjectInspector;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -18,6 +18,8 @@ type
|
|||||||
Splitter1: TSplitter;
|
Splitter1: TSplitter;
|
||||||
TIPropertyGrid1: TTIPropertyGrid;
|
TIPropertyGrid1: TTIPropertyGrid;
|
||||||
procedure FormCreate(Sender: TObject);
|
procedure FormCreate(Sender: TObject);
|
||||||
|
procedure TIPropertyGrid1EditorFilter(Sender: TObject;
|
||||||
|
aEditor: TPropertyEditor; var aShow: boolean);
|
||||||
private
|
private
|
||||||
public
|
public
|
||||||
end;
|
end;
|
||||||
@ -49,8 +51,15 @@ begin
|
|||||||
Graph.GetEdge('-Project-','OpenGLControl',true);
|
Graph.GetEdge('-Project-','OpenGLControl',true);
|
||||||
Graph.GetEdge('OpenGLControl','LCL',true);
|
Graph.GetEdge('OpenGLControl','LCL',true);
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
TIPropertyGrid1.TIObject:=LvlGraphControl1;
|
procedure TForm1.TIPropertyGrid1EditorFilter(Sender: TObject;
|
||||||
|
aEditor: TPropertyEditor; var aShow: boolean);
|
||||||
|
var
|
||||||
|
PropName: String;
|
||||||
|
begin
|
||||||
|
PropName:=aEditor.GetName;
|
||||||
|
aShow:=(PropName='NodeStyle') or (PropName='EdgeStyle') or (PropName='Options');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
end.
|
end.
|
||||||
|
Loading…
Reference in New Issue
Block a user