/* Three column list without further formatting: */ MUIA_List_Format: ",," /* Three column list, middle column centered: */ MUIA_List_Format: ",P=\33c," /* Three column list, display order 2 1 0: */ MUIA_List_Format: "COL=2,COL=1,COL=0" /* now something more complex. */ /* the display hook defines six entries: */ dispfunc(_a2 char **array,_a1 struct Article *at) { *array++ = at->FromName; // col 0 *array++ = at->FromPath; // col 1 *array++ = at->ToName; // col 2 *array++ = at->ToPath; // col 3 *array++ = at->Date; // col 4 *array = at->Subject; // col 5 } /* but we only want to have fromname, date and subject /* actually displayed, subject shoud be centered: */ MUIA_List_Format, "COL=0,COL=4,COL=5 P=\33c" /* maybe this looks kind of silly, why not make our */ /* display hook only fill in these three columns. */ /* well, if you would e.g. make the format string */ /* user configurable and document what your display */ /* hook puts into the array, the user could decide */ /* what columns he actually wants to see. */ /* The supplied example DFView does something like */ /* that. */ /* two column list: ! Eye 1234 ! ! Foot 22 ! ! Nose 22331 ! */ MUIA_List_Format, "MAW=100,P=\33r"