Can anyone direct me to some example code on how to set up a Selection in the TeeInspector component?
Thanks
Paul
TeeInspector, Selections
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |
Using TeeInspector, creating items at runtime
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
Thanks
Paul
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.
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.
Pep Jorge
http://support.steema.com
http://support.steema.com
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
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
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 :
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;
Pep Jorge
http://support.steema.com
http://support.steema.com