01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MENU (3T) (AT&T UNIX PC only ) MENU (3T)<br />

mitem_t *m_topi;<br />

} menu_t;<br />

j* item at top of dpy * /<br />

M_label is displayed in the menu's window label line. If m_label<br />

is NULL, no label is displayed.<br />

M_title is a title for the menu. If m_title is NULL, the menu is<br />

displayed without any title. If m_title contains newline characters,<br />

all but the first line of the title are underlined.<br />

M_prompt (when non-NULL) is an prompt for the menu. All<br />

prompts are displayed on the system prompt line, generally<br />

located at the bottom of the display.<br />

M_rows and m_cols allow the caller to specify the number of<br />

rows and columns of items. Either or both of these values may be<br />

zero, in which case menu will try to pick "good" values. It is<br />

quite common to specify "zero" rows and one column to force output<br />

to be vertical. When both m_rows and m_cols are zero,<br />

menu tries to fit the menu into an appealing rectangle.<br />

M_iwidth specifies a maximum width for each item. If m_iwidth<br />

is zero, menu will display as much of the item as possible given<br />

the available window real-estate. If m_iwidth is non-zero, items<br />

are automatically truncated to that width, regardless of other<br />

parameters. This is very useful when generating multi-column<br />

menus where the caller wishes to prevent one long item from disrupting<br />

the columnar output. M_IWIDTH IS NOT YET IMPLE- ·1<br />

MENTED.<br />

M_iheight allows the caller to specify the number of rows per item<br />

on the display. Newline characters in the item's name cause<br />

menu to advance to the next row. If m_iheight is zero, one-row<br />

items are assumed. M_IHEIGHT IS NOT YET IMPLEMENTED.<br />

M_ft ags contains the M_SINGLE flag which prohibits the user<br />

from selecting more than one item from the menu. If the<br />

M_SINGLE flag is off, the user may select multiple items from the<br />

menu. The M_USEWIN flag, if set, will cause menu to use the<br />

window supplied in m_win instead of creating its own. If<br />

M_USEWIN is set, M_BEGIN operations will re-size the window<br />

(as necessary) and M_END operations do not delete the window.<br />

The M_WINNEW flag causes menu to use the "new " algorithm<br />

to place the window. Basically, the new algorithm looks for relatively<br />

empty screen space to place the window. M_ WINSON<br />

causes menu to use the "son" algorithm which causes the new<br />

window to slightly overlap the current window. If neither<br />

M_WINNEW nor M_WINSON is given, the "popup" algorithm is<br />

used. This causes the new window to appear near the middle of �<br />

the current window, inside it if possible. The M_NOMOVE,<br />

M_NOHELP, and M_NORESIZE flags, if set, prevent the Move,<br />

Help and Resize icons, respectively, from being displayed on the<br />

menu border. The M....ASISTITLE flag, if set, causes the menu<br />

title to be displayed as supplied by the user, i.e., without centering.<br />

- 2-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!