Browse by category:
|| | ||
I need to find out what style bits are set for a particular control, dialog, window, etc. How can I access that from inside my program? For example, can I determine whether a zStringEdit is currently read-only?
The styleValue() function from zWindow returns a long containing the style for the window, control, etc.
The values, i.e. ES_READONLY for the read-only example, can be found in the SDK documentation for your platform. In this case, the command:
D:MSDEVinclude>egrep ES_READONLY *.*returns:
WINRES.H:#define ES_READONLY 0x00000800L
WINUSER.H:#define ES_READONLY 0x0800L
The egrep utility enables searching and pattern matching in a text file. This utility is readily available on the internet.
The style bits that can be set can be found in the platform guides for zApp.
|How to change the font in a zTable cell and column and row label||How do I move to the end of my grid|