Skip to Main Content
Volume 7B: XView Reference Manual
book

Volume 7B: XView Reference Manual

by Dan Heller
September 1991
Intermediate to advanced content levelIntermediate to advanced
311 pages
7h 17m
English
O'Reilly Media, Inc.
Content preview from Volume 7B: XView Reference Manual
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)
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Gestion des couleurs pas à pas

Gestion des couleurs pas à pas

Jean Delmas
1,000 Garment Graphics

1,000 Garment Graphics

Jeffrey Everett

Publisher Resources

ISBN: 9780937175880