Page 1 of 1

teeInspector and integer, double & string

Posted: Sat Aug 26, 2006 3:25 am
by 9346985
Hi

When using teeInspector and item styles iiInteger, iiDouble and iiString, I'm not sure how to handle editing the value I have previously assigned.

Once I have made my edit, the teeInspector does not automatically respond to pressing the Enter key. Where do I handle that keypress so that the item's new value is captured and the edit ends?

Thanks,
David

Posted: Mon Aug 28, 2006 9:05 am
by narcis
Hi David,

Try doing something like in the All Features\Welcome!\Components\Inspector component example at the features demo. You'll find the demo at TeeChrt's program group.

teeInspector

Posted: Mon Aug 28, 2006 3:29 pm
by 9346985
Hi Narcis

Thanks for your response. That worked.

I am using SetProperties with a PopupMenu, as in the TeeChartOffice example, so I had to add an OnChange event handler for each item. Also I had to modify EditKeyDown in teeInspector.pas to accept the carriage return and move to the next item. I'm not sure if that is the right way, but at least it works.

David