cdk_scroll(3) | Library Functions Manual | cdk_scroll(3) |
cdk_scroll - curses scrolling list widget.
cc [ flag ... ] file ... -lcdk [ library ... ]
#include <cdk.h>
CDKSCROLL *scroll, chtype * actions);
CDKSCROLL *scroll, const char *item);
CDKSCROLL *scroll, int position);
CDKSCROLL *scroll);
CDKSCROLL *scroll, boolean box);
CDKSCROLL *scroll);
CDKSCROLL *scroll);
CDKSCROLL *scroll);
CDKSCROLL *widget);
CDKSCROLL *scroll, chtype highlight);
CDKSCROLL *widget);
CDKSCROLL *scroll, char **itemList);
CDKSCROLL *scroll, chtype input);
CDKSCROLL *scroll, const char *item);
CDKSCROLL *scroll, int xpos, int ypos, boolean relative, boolean refresh);
CDKSCREEN *cdkscreen, int xpos, int ypos, int spos, int height, int width, const char *title, CDK_CONST char **itemList, int items, boolean numbers, chtype highlight, boolean box, boolean shadow);
CDKSCROLL *scroll);
CDKSCROLL *scroll, CDK_CONST char **itemList, int items, boolean numbers, chtype highlight, boolean box);
CDKSCROLL *scroll, chtype attribute);
CDKSCROLL *scroll, const char * color);
CDKSCROLL *scroll, boolean box);
CDKSCROLL *scroll, chtype character);
CDKSCROLL *scroll, intitem);
CDKSCROLL *widget, intitem);
CDKSCROLL *widget);
CDKSCROLL *scroll, chtype highlight);
CDKSCROLL *scroll, chtype character);
CDKSCROLL *scroll, CDK_CONST char **itemList, int listSize, boolean numbers);
CDKSCROLL *scroll, chtype character);
CDKSCROLL *scroll, chtype character);
CDKSCROLL *scroll, intitem);
CDKSCROLL *scroll, PROCESSFN callback, void * data);
CDKSCROLL *scroll, PROCESSFN callback, void * data);
CDKSCROLL *scroll, chtype character);
CDKSCROLL *scroll, chtype character);
CDKSCROLL *scroll, chtype character);
The Cdk scroll widget creates a scrolling list. The following are functions which create or manipulate the Cdk scrolling list widget.
When the widget is activated there are several default key bindings which will help the user enter or manipulate the information quickly. The following table outlines the keys and their actions for this widget.
Key | Action |
Left Arrow | Shift the list left one column. |
Right Arrow | Shift the list right one column. |
Up Arrow | Select the previous item in the list. |
Down Arrow | Select the next item in the list. |
Prev Page | |
Ctrl-B | Scroll one page backward. |
Next Page | |
Ctrl-F | Scroll one page forward. |
1 | |
< | |
g | |
Home | Move to the first element in the list. |
> | |
G | |
End | Move to the last element in the list. |
$ | Shift the list to the far right. |
| | Shift the list to the far left. |
Return | Exit the widget and return the index of the selected item. Also set the widget data exitType to vNORMAL. |
Tab | Exit the widget and return the index of the selected item. Also set the widget data exitType to vNORMAL. |
Escape | Exit the widget and return -1. Also set the widget data exitType to vESCAPE_HIT. |
Ctrl-L | Refreshes the screen. |
cdk(3), cdk_binding(3), cdk_display(3), cdk_position(3), cdk_screen(3)