Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi’s Object-Inspector issue


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 7 - Last Post: Feb 18, 2016 8:38 PM Last Post By: Thomas Grubb
Alex Siron

Posts: 24
Registered: 10/1/10
Delphi’s Object-Inspector issue  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2016 3:14 AM
Hello,

I have tried out all the components on the Delphi5's template, but I could not find out how the Delphi’s object-inspector is built.

Please do you know how the object-inspector is built?

Any example will be highly appreciated. Thanks!

Regards,
Alex

Edited by: Alex Siron on Feb 16, 2016 6:42 AM
Gilbert Padilla

Posts: 315
Registered: 3/8/04
Re: Delphi’s Object-Inspector issue [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2016 8:11 AM   in response to: Alex Siron in response to: Alex Siron
A sample
http://www.chami.com/tips/delphi/012497D.html
that can be use with Virtual TreeView
Alex Siron

Posts: 24
Registered: 10/1/10
Re: Delphi’s Object-Inspector issue [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2016 1:32 PM   in response to: Gilbert Padilla in response to: Gilbert Padilla
Gilbert Padilla wrote:
A sample
http://www.chami.com/tips/delphi/012497D.html
that can be use with Virtual TreeView

Hi,

Thanks! However, this does not display a StringGrid-like as Delphi's Object Inspector when I run the application.

Any help and a working example will be highly appreciated. The example can be dropped into Attachments-category. I program in Delphi5.

Regards,
Alex

unit Unit1;
 
interface
 
uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, TypInfo,
  StdCtrls;
 
type
  TForm1 = class(TForm)
    ListBox1: TListBox;
    procedure FormActivate(Sender: TObject);
  private
  procedure ObjectInspector(Obj : TObject; Items : TStrings );
    { Private declarations }
  public
    { Public declarations }
  end;
 
var
  Form1: TForm1;
 
implementation
 
{$R *.DFM}
 
 
 
 
procedure TForm1.ObjectInspector( Obj : TObject; Items : TStrings );
var
  n        : integer;
  PropList : TPropList;
begin
  n := 0;
  GetPropList(
    Obj.ClassInfo,
    tkProperties + [ tkMethod ],
    @PropList );
  while( (Nil <> PropList[ n ]) and
         (n < High(PropList)) ) do
  begin
    Items.Add(
      PropList[ n ].Name + ': ' +
      PropList[ n ].PropType^.Name );
    Inc( n );
  end;
end;
procedure TForm1.FormActivate(Sender: TObject);
begin
ObjectInspector( ListBox1, ListBox1.Items );
end;
 
end.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Delphi’s Object-Inspector issue [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2016 2:01 PM   in response to: Alex Siron in response to: Alex Siron
Alex wrote:

Thanks! However, this does not display a StringGrid-like as
Delphi's Object Inspector when I run the application.

What you are asking for is not trivial to implement from scratch. That is
why I mentioned in my earlier reply that there are third-party Inspector
components available. You should try one of them before rolling your own.

--
Remy Lebeau (TeamB)
Gilbert Padilla

Posts: 315
Registered: 3/8/04
Re: Delphi’s Object-Inspector issue [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 17, 2016 9:02 AM   in response to: Alex Siron in response to: Alex Siron
there are some free components available check the JEDI packages or
http://torry.net/vcl/vcltools/objectinspectors/MiTeCRuntimeObjectInspector1.1OI.zip
torry is a good source to find components.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Delphi’s Object-Inspector issue [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 16, 2016 10:31 AM   in response to: Alex Siron in response to: Alex Siron
Alex wrote:

I have tried out all the components on the Delphi5's template, but
I could not find out how the Delphi’s object-inspector is built.

It is a custom-made control just for the IDE's use. You are not going to
find it on the standard Component Palette/Toolbar.

Please do you know how the object-inspector is built?

There are plenty of third-party OI-like and grid components readily available
if you look around.

--
Remy Lebeau (TeamB)
Steve Faleiro

Posts: 77
Registered: 3/11/01
Re: Delphi’s Object-Inspector issue  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 18, 2016 12:13 AM   in response to: Alex Siron in response to: Alex Siron
Alex Siron wrote:
Hello,

I have tried out all the components on the Delphi5's template, but I could not find out how the Delphi’s object-inspector is built.

Please do you know how the object-inspector is built?

Any example will be highly appreciated. Thanks!

Regards,
Alex

Edited by: Alex Siron on Feb 16, 2016 6:42 AM

Hi Alex,

Following up on the suggestions made by others in this thread regarding 3rd party components, Raze Inspex's TIxObjectInspector is a good object inspector component that you can try for free. Its was taken over by EMBT and is now sold as an add-on known as 'Konopka Signature VCL Controls'.

Link:
http://www.raize.com/DevTools/Inspex/Trial.asp

Best wishes,
Steve Faleiro

~ Long live the Delphi! ~

Thomas Grubb

Posts: 61
Registered: 2/27/01
Re: Delphi’s Object-Inspector issue  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 18, 2016 8:38 PM   in response to: Steve Faleiro in response to: Steve Faleiro
Hi Steve,
Its was taken over by EMBT and is now sold as an add-on known as 'Konopka Signature VCL Controls'.
This statement is not correct. Inspex was not sold with the other components to Embarcadero. It is still available from Raize.com

Regards,
Tom
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02