Gets the value of a global integer variable#include <smglobs.h>int sm_inquire(int property);
- Specifies the global integer to get with one of the constants described in Table 5-8.
sm_inquiregets the integer value of the global variable specified by
property. To modify the value of a global integer variable, use sm_iset.
Table 5-8 lists the constants that you can supply as arguments for
Table 5-8 Global integer variables
Screen manager controls display? (true/false).
Help level of current screen, or 0 if not in help.
Is a message box up on the screen? (true/false)
In insert mode? (true/false).
In the screen editor? (true/false) Field validation routines are generally still called when in editor; they can check this flag to disable certain features.
Number of columns available for use by Panther on the hardware display.
Number of lines available for use by Panther on the hardware display.
In non-display mode? (true/false). Initially set to false, setting this variable to true causes no further changes to the actual display, although Panther's internal screen image is kept up-to-date.
Error message display disabled? (true/false).
Bit mask that contains contextual information about the field's validation state and the circumstances under which a prototyped field function was called. Corresponds to the fourth standard argument passed to a non-prototyped field function.
Number of the field calling a prototyped field function. Corresponds to the first of the four standard arguments passed to a non-prototyped field function.
Occurrence number of the field calling a prototyped field function. Corresponds to the third standard argument passed to a non-prototyped field function. The second standard argument, can be obtained from sm_getfield or
Bit mask that contains information about the group's validation state and the circumstances under which a prototyped group function was called. Corresponds to the second of two standard arguments passed to a non-prototyped group function. The first standard argument, a pointer to the group name, can be obtained by the
fldnumproperty of a member widget and sm_ftog at group entry and exit. Access to the group name at group validation is not supported.
Border attribute of screen.
Border character of screen.
Current column number in screen (zero-based).
Current line number in screen (zero-based).
sm_ferr_reset(0, "Problem #2!");
sm_iset, sm_pinquire, sm_pset