Mercurial > dwindows
comparison dwtest.c @ 335:97029f1f29de
Minor change to container page to show right justification on ULONGS doesn't work.
author | mhessling@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 10 Apr 2003 07:33:44 +0000 |
parents | b6491cefa512 |
children | a2f72b5d5d0a |
comparison
equal
deleted
inserted
replaced
334:0a15a1f3fbed | 335:97029f1f29de |
---|---|
544 void container_add(void) | 544 void container_add(void) |
545 { | 545 { |
546 char *titles[3]; | 546 char *titles[3]; |
547 char buffer[100]; | 547 char buffer[100]; |
548 unsigned long flags[3] = { DW_CFA_ULONG | DW_CFA_RIGHT | DW_CFA_HORZSEPARATOR | DW_CFA_SEPARATOR, | 548 unsigned long flags[3] = { DW_CFA_ULONG | DW_CFA_RIGHT | DW_CFA_HORZSEPARATOR | DW_CFA_SEPARATOR, |
549 DW_CFA_TIME | DW_CFA_LEFT | DW_CFA_HORZSEPARATOR | DW_CFA_SEPARATOR, | 549 DW_CFA_TIME | DW_CFA_CENTER | DW_CFA_HORZSEPARATOR | DW_CFA_SEPARATOR, |
550 DW_CFA_DATE | DW_CFA_RIGHT | DW_CFA_HORZSEPARATOR | DW_CFA_SEPARATOR }; | 550 DW_CFA_DATE | DW_CFA_LEFT | DW_CFA_HORZSEPARATOR | DW_CFA_SEPARATOR }; |
551 void *containerinfo; | 551 void *containerinfo; |
552 int z; | 552 int z; |
553 CTIME time; | 553 CTIME time; |
554 CDATE date; | 554 CDATE date; |
555 unsigned long size, thisicon; | 555 unsigned long size, thisicon; |
573 dw_filesystem_setup(container, flags, titles, 3); | 573 dw_filesystem_setup(container, flags, titles, 3); |
574 containerinfo = dw_container_alloc(container, 3); | 574 containerinfo = dw_container_alloc(container, 3); |
575 | 575 |
576 for(z=0;z<3;z++) | 576 for(z=0;z<3;z++) |
577 { | 577 { |
578 size = z+100; | 578 size = z*100; |
579 sprintf(buffer, "Filename %d",z+1); | 579 sprintf(buffer, "Filename %d",z+1); |
580 if (z == 0 ) thisicon = foldericon; | 580 if (z == 0 ) thisicon = foldericon; |
581 else thisicon = fileicon; | 581 else thisicon = fileicon; |
582 dw_filesystem_set_file(container, containerinfo, z, buffer, thisicon); | 582 dw_filesystem_set_file(container, containerinfo, z, buffer, thisicon); |
583 dw_filesystem_set_item(container, containerinfo, 0, z, &size); | 583 dw_filesystem_set_item(container, containerinfo, 0, z, &size); |