mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-07 14:24:14 +01:00
small update to list selection code.
This commit is contained in:
@@ -120,6 +120,9 @@ testList(WMScreen *scr)
|
|||||||
{
|
{
|
||||||
WMWindow *win;
|
WMWindow *win;
|
||||||
WMList *list;
|
WMList *list;
|
||||||
|
WMList *mlist;
|
||||||
|
WMLabel *label;
|
||||||
|
WMLabel *mlabel;
|
||||||
char text[100];
|
char text[100];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@@ -134,11 +137,16 @@ testList(WMScreen *scr)
|
|||||||
sprintf(text, "Item %i", i);
|
sprintf(text, "Item %i", i);
|
||||||
WMAddListItem(list, text);
|
WMAddListItem(list, text);
|
||||||
}
|
}
|
||||||
|
mlist = WMCreateList(win);
|
||||||
|
WMSetListAllowMultipleSelection(mlist, True);
|
||||||
|
WMMoveWidget(mlist, 220, 0);
|
||||||
|
for (i=0; i<50; i++) {
|
||||||
|
sprintf(text, "Item %i", i);
|
||||||
|
WMAddListItem(mlist, text);
|
||||||
|
}
|
||||||
WMRealizeWidget(win);
|
WMRealizeWidget(win);
|
||||||
WMMapSubwidgets(win);
|
WMMapSubwidgets(win);
|
||||||
WMMapWidget(win);
|
WMMapWidget(win);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1126,9 +1134,10 @@ main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
testList(scr);
|
testList(scr);
|
||||||
testColorWell(scr);
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
testColorWell(scr);
|
||||||
|
|
||||||
testTextField(scr);
|
testTextField(scr);
|
||||||
testText(scr);
|
testText(scr);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user