Search Locate Previous Next Contents

PostScrp.FindHint – return data hints

This is designed to allow a charting application to display any data hints applied when the chart was constructed using ch.Hint. It takes as argument the result from PostScrp.FindSeries (which uniquely identifies a data point) which gives the chart name, series name, row/column index of the data in the original data matrix.

hint„'#.pgi'#.PostScrp.FindHint info

It returns any hint which matches this chart/series/data index as a simple character vector (null if nothing is matched). Note that the CausewayPro Chart and PostScript Viewer classes both signal a ‘CHHINT’ event which can be used very simply to update a status field with the data hints as the mouse is moved over the chart.

You can easily check if hints are working correctly with the standard chart viewer – hints show in the second status field when you move the mouse over the hinted data. The function Sample has a hint on the exploded pie sector!



Continue to: PostScrp.SetObject – redraw chart object
© Copyright Causeway Graphical Systems Ltd 2003