20 |
*/ |
*/ |
21 |
|
|
22 |
|
|
23 |
/* |
/* |
24 |
* Showing the use of non-modal file selector |
* Showing the use of non-modal file selector |
25 |
* |
* |
26 |
* T.C. Zhao and M. Overmars |
* T.C. Zhao and M. Overmars |
62 |
if (( p = strrchr(fname, '.'))) |
if (( p = strrchr(fname, '.'))) |
63 |
ispix = strcmp(p+1, "xbm") != 0; |
ispix = strcmp(p+1, "xbm") != 0; |
64 |
|
|
65 |
if(ispix) |
if(ispix) |
66 |
{ |
{ |
67 |
fl_hide_object(bm); |
fl_hide_object(bm); |
68 |
fl_show_object(pm); |
fl_show_object(pm); |
69 |
fl_free_pixmap_pixmap(pm); |
fl_free_pixmap_pixmap(pm); |
70 |
fl_set_pixmap_file(pm, fname); |
fl_set_pixmap_file(pm, fname); |
71 |
} |
} |
72 |
else |
else |
73 |
{ |
{ |
74 |
fl_hide_object(pm); |
fl_hide_object(pm); |
75 |
fl_show_object(bm); |
fl_show_object(bm); |