TeeInspector, Selections

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Paul
Newbie
Newbie
Posts: 20
Joined: Tue Mar 01, 2005 5:00 am

TeeInspector, Selections

Post by Paul » Fri Jul 06, 2007 6:24 pm

Can anyone direct me to some example code on how to set up a Selection in the TeeInspector component?

Thanks

Paul

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jul 06, 2007 8:05 pm

Hi Paul,

Have you seen the example at All Features\Welcome!\Components\Inspector component in the features demo? You'll find the features demo at TeeChart's program group created by the binary installers. Source code installer doesn't include any example nor documentation.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Paul
Newbie
Newbie
Posts: 20
Joined: Tue Mar 01, 2005 5:00 am

Post by Paul » Fri Jul 06, 2007 8:51 pm

Narcis -

Maybe I should have mentioned that I've already checked the features demo. Unfortunately, the demo code does not include implementation of a Selection. Is there someplace else I can look?

Thanks

Paul

Paul
Newbie
Newbie
Posts: 20
Joined: Tue Mar 01, 2005 5:00 am

Using TeeInspector, creating items at runtime

Post by Paul » Thu Jul 12, 2007 2:14 pm

Can anyone help with information on using TeeInspector? The example code on "all features" gives no hints for programming with this component. I need to create items at run time, as well as populate the selections.

Thanks

Paul

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Jul 13, 2007 9:17 am

Hi Paul,

I think the better example code to check and review which could help you is the TeeChartOffice demo sources, it uses most of the characteristics of TeeInspector.

Paul
Newbie
Newbie
Posts: 20
Joined: Tue Mar 01, 2005 5:00 am

Post by Paul » Fri Jul 13, 2007 1:50 pm

Thanks - but unfortunately that code doesn't help much either as far as setting up items at run time. All it does is:

Inspector.SetProperties(DBChart1.PopupMenu);

I'm trying to set up properties indendant of any chart, and I don't have TeeInspector.pas which is where this method is located.

I've got some working by trial and error, but I'm sure I'm missing a lot.

Paul

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jul 16, 2007 6:38 am

Hi Paul,

ok, no worries. I'm not sure what you're trying to do but if you just want to add some options and check the selection you can use similar code to the following :

Code: Select all

procedure TForm1.GetTestItems(Sender:TInspectorItem; Proc:TGetItemProc);
begin
  Proc('One');
  Proc('Two');
  Proc('Three');
end;

procedure TForm1.FormCreate(Sender: TObject);
var Item : TInspectorItem;
begin
  TeeInspector1.Clear;
  Item:=TeeInspector1.Items.Add(iiSelection,'Test',nil);
  Item.OnGetItems:=GetTestItems;
  Item.Value:='Two';
end;

Post Reply