int pop_up_list(Window *w, Font *f, char **lines, int buttons, Point p);
A pop-up list is a menu which appears at the press of a mouse button and contains a list of selectable names. The menu will appear on the specified window, and vanish when the user releases the mouse button which was used to invoke the menu. The given font is used for menu text, unless it is NULL, in which case the default font is used.
The lines parameter is a NULL-terminated list of strings, to be displayed in the menu. The buttons parameter specifies which mouse button(s) were used to invoke the menu. Constants such as LEFT_BUTTON or RIGHT_BUTTON can be used here. The menu will appear near the given point.
The function returns -1 if no list item was chosen when the mouse button was released, or else a number between 0 and the number of strings in the list minus one, indicating which item was chosen.