panel_text_notify()
Default notify procedure for panel text items. Determines what the correct
Panel_setting value should be based on the event passed into the notify proce-
dure. The Panel_setting value causes the PANEL_TEXT package to adjust the
caret to advance on Return or Tab, caret to back up on Shift-Return or Shift-Tab, print-
able characters to be inserted into item’s value, and all other characters to be dis-
carded.
Panel_setting
panel_text_notify(item, event)
Panel_item item
Event *event
Returns PANEL_NEXT, PANEL_PREVIOUS, PANEL_INSERT, or PANEL_NONE, respec-
tively.
PANEL_TOGGLE
Macro for “PANEL_CHOICE, PANEL_CHOOSE_ONE, FALSE.” Used to create non-
exclusive choice item(s).
xv_create(panel, PANEL_TOGGLE, NULL);
PANEL_TOGGLE expands to:
PANEL_CHOICE,
PANEL_CHOOSE_ONE, FALSE
To use an ATTR_LIST argument, the ATTR_LIST must be the first attribute in an attri-
bute-value list. See PANEL_CHOICE_STACK for an example.
rect_below()
Returns TRUE if r2 lies below r1 AND the left edge of r2 isn’t greater than the right
edge of r1 AND the right edge isn’t less than the left edge of r1.
int
rect_below( r1, r2 )
Rect *r1, *r2;
rect_borderadjust()
Used to adjust the borders. This macro takes a rect pointer and an int. This macro
is defined as follows:
#define rect_borderadjust(r,m) \
{ (r)->r_width+=(m)+(m);(r)->r_height+=(m)+(m);}
rect_bottom()
Takes a rect pointer and returns the position of the bottom of the rect. This macro
is defined as follows:
#define rect_bottom(rect) ((rect)->r_top+(rect)->r_height-1)