Delphi/CB
•  Greatis •  Security •  AppDatabase •  Utilities •  Visual Basic • .NET •  just4fun
Delphi / C++ Builder
Components, utilities and tips for Delphi and C++ Builder developers
More info
Object Inspector FAQ
Object Inspector Home
Delphi Components
See also
Products
Form Designer
Runtime Fusion
Print Suite
Commented Image
Image Editor  new!
Delphi Toys
Ultimate Pack  hot!

FAQs
Form Designer FAQ
Print Suite FAQ
Image Editor FAQ

Links
Software for .NET
Software for VB 6
Delphi Tips & Tricks

Services
Outsourcing
Emulated properties
Emulated properties are used for emulate the subproperties for the set-type properties. When the property type is set, the Boolean subproperty is added for each set element, for example, Font.Style has fsBold, fsItalic, fsUnderline and fsStrikeOut subproperties. When the property is emulated the Emulated property of Tproperty object is True. The emulated properties can be access as usual Boolean properties.
procedure TForm1.FormClick(Sender: TObject);
var
  P: TProperty;
begin
  with TPropertyList.Create(nil) do
  try
    Instance:=Self;
    Root:=Self;
    P:=FindProperty('Font.Style.fsBold');
    if Assigned(P) then P.AsBoolean:=True;
  finally
    Free;
  end;
end;

Greatis Software Greatis | Security | AppDatabase | Utilities | Delphi/CB | Visual Basic | .NET | just4fun

Contacts | Add to Favorites | Recommend to a Friend | Privacy Policy | Copyright © 1998-2008 Greatis Software