Visit Gigasoft's Web Site
 ProEssentials v9 Help

CustomGridNumbers

This structure is used for the Graph, Scientific Graph, Polar/Smith and 3D Scientific Graph Object.

 

This structure is used to construct custom grid numbers when the graph is in the process of formatting grid axes numbers to display. Use the PEWN_CUSTOMGRIDNUMBERS message to set and get this structure.

 

 

typedef struct tagCUSTOMGRIDNUMBERS

{

  int     nAxisType;

  int     nAxisIndex;

  double  dNumber;

  char    szData[48];

} CUSTOMGRIDNUMBERS;



 

Parameter

Description

nAxisType

0 = Y
1 = Right Y
2 = X
3 = Top X
4 = Extra X Axis
5 = Extra Top X Axis
6 = SpecialTopDateLabels
7 = ZoomBottomXlabels
8 = ZoomSpecialTopDateLabels

nAxisIndex

Index number relates to WorkingAxis or Extra Axis Index.

dNumber

Number to format.

szData

Initialized with default string, replace as needed with a custom formatted replacement string.

 

Comments

The following properties must be set to true to use CustomGridNumbers for those axes:

CustomGridNumbersRY, CustomGridNumbersTX, CustomGridNumbersX, CustomGridNumbersY, CustomGridNumbersZ, CustomGridNumbersEX, CustomGridNumbersETX, CustomGridNumbersZoomAxisX

 

See example 132 for more info