79 lines
2.3 KiB
ObjectPascal
79 lines
2.3 KiB
ObjectPascal
{******************************************************************************}
|
|
{* WARNING: JEDI VCL To CLX Converter generated unit. *}
|
|
{* Manual modifications will be lost on next release. *}
|
|
{******************************************************************************}
|
|
|
|
{******************************************************************
|
|
|
|
JEDI-VCL Demo
|
|
|
|
Copyright (C) 2002 Project JEDI
|
|
|
|
Original author:
|
|
|
|
Contributor(s):
|
|
|
|
You may retrieve the latest version of this file at the JEDI-JVCL
|
|
home page, located at http://jvcl.sourceforge.net
|
|
|
|
The contents of this file are used with permission, subject to
|
|
the Mozilla Public License Version 1.1 (the "License"); you may
|
|
not use this file except in compliance with the License. You may
|
|
obtain a copy of the License at
|
|
http://www.mozilla.org/MPL/MPL-1_1Final.html
|
|
|
|
Software distributed under the License is distributed on an
|
|
"AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
|
implied. See the License for the specific language governing
|
|
rights and limitations under the License.
|
|
|
|
******************************************************************}
|
|
|
|
unit InspectorSimpleExampleMain;
|
|
|
|
interface
|
|
|
|
uses
|
|
QWindows, QMessages, SysUtils, Classes, Types, QGraphics, QControls, QForms,
|
|
QDialogs, QStdCtrls, QExtCtrls, JvQComponent, JvQInspector, JvQExControls,
|
|
JvQExExtCtrls, JvQInspExtraEditors;
|
|
|
|
type
|
|
TSimpleMainForm = class(TForm)
|
|
JvInspectorBorlandPainter1: TJvInspectorBorlandPainter;
|
|
JvInspector1: TJvInspector;
|
|
Panel1: TPanel;
|
|
Label1: TLabel;
|
|
procedure FormShow(Sender: TObject);
|
|
private
|
|
public
|
|
end;
|
|
|
|
var
|
|
SimpleMainForm: TSimpleMainForm;
|
|
|
|
implementation
|
|
|
|
{$R *.xfm}
|
|
|
|
procedure TSimpleMainForm.FormShow(Sender: TObject);
|
|
var
|
|
i: integer;
|
|
begin
|
|
JvInspector1.Clear;
|
|
JvInspector1.AddComponent(Self, 'A Form Inspecting Itself', True);
|
|
for i := 0 to ComponentCount - 1 do
|
|
JvInspector1.AddComponent(Components[i],
|
|
Components[i].Name + ': ' + Components[i].ClassName, False);
|
|
|
|
end;
|
|
|
|
initialization
|
|
// TJvInspectorAlignItem.RegisterAsDefaultItem;
|
|
// TJvInspectorAnchorsItem.RegisterAsDefaultItem;
|
|
TJvInspectorColorItem.RegisterAsDefaultItem;
|
|
TJvInspectorTImageIndexItem.RegisterAsDefaultItem;
|
|
|
|
|
|
end.
|