From e3fa1613406a6f66a10d2e85d7a77936d931cad6 Mon Sep 17 00:00:00 2001 From: dan Date: Fri, 29 Sep 2000 08:19:20 +0000 Subject: [PATCH] small update to list selection code. --- WINGs/Tests/wtest.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/WINGs/Tests/wtest.c b/WINGs/Tests/wtest.c index 51852c91..fa0c1aa2 100644 --- a/WINGs/Tests/wtest.c +++ b/WINGs/Tests/wtest.c @@ -120,6 +120,9 @@ testList(WMScreen *scr) { WMWindow *win; WMList *list; + WMList *mlist; + WMLabel *label; + WMLabel *mlabel; char text[100]; int i; @@ -134,11 +137,16 @@ testList(WMScreen *scr) sprintf(text, "Item %i", i); 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); WMMapSubwidgets(win); WMMapWidget(win); - - } @@ -1126,9 +1134,10 @@ main(int argc, char **argv) */ testList(scr); - testColorWell(scr); #if 0 + testColorWell(scr); + testTextField(scr); testText(scr);