ZeeGrid Control Message

ZGM_INTERPRETBOOL


ZGM_INTERPRETBOOL

An application sends a ZGM_INTERPRETBOOL message to enable or disable the interpretation of the text 'TRUE' and 'FALSE' as boolean when entered from an editable cell by the user, or programmatically entered into the cell with the ZGM_SETCELLTEXT message.

ZGM_INTERPRETBOOL
wParam = (WPARAM) (BOOL) fEnable;  //enable flag
lParam = 0;                        //not used; must be zero

Parameters

fEnable
Value of wParam. Specifies whether to enable or disable the interpretation of entered text as boolean 'TRUE' and 'FALSE'. If enabled and the text 'TRUE' is entered in a cell, ZeeGrid will display that cell as a checked checkbox. If disabled, the text will be displayed literally as 'TRUE'.

Return Values

This message does not return a value.

Remarks

Interpret boolean is enabled by default.

When enabled, the entered text is converted to uppercase and tested for a match with 'TRUE' or 'FALSE'. Therefore, the text strings 'True','trUE', and 'TrUe' would all be interpreted as boolean.

Copyright © 2002-2016 by David Hillard