Mercurial > dwindows
comparison dwtest.c @ 2114:251d050d306b
Change dw_notification_new() to take an image path instead of an in-memory HPIXMAP.
After examining all the platforms, several require the image to be on disk.
It is easier to specify the path and load it on platforms requiring it in memory
than to save it to disk on platforms that require it on disk. Currently it does
not automatically pick an extension like some other functions, may need to add
that feature here too soon. Only tested on Windows in this commit.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 23 Jun 2020 07:48:29 +0000 |
parents | 10c22853b479 |
children | 79e5842fb609 |
comparison
equal
deleted
inserted
replaced
2113:aaea278c2356 | 2114:251d050d306b |
---|---|
597 { | 597 { |
598 char *tmp; | 598 char *tmp; |
599 tmp = dw_file_browse("Pick a file", "dwtest.c", "c", DW_FILE_OPEN ); | 599 tmp = dw_file_browse("Pick a file", "dwtest.c", "c", DW_FILE_OPEN ); |
600 if ( tmp ) | 600 if ( tmp ) |
601 { | 601 { |
602 HWND notification = dw_notification_new("New file loaded", NULL, "dwtest loaded \"%s\" into the file browser on the Render tab, with \"File Display\" selected from the drop down list.", tmp); | 602 HWND notification = dw_notification_new("New file loaded", "image\\test.png", "dwtest loaded \"%s\" into the file browser on the Render tab, with \"File Display\" selected from the drop down list.", tmp); |
603 | 603 |
604 if ( current_file ) | 604 if ( current_file ) |
605 { | 605 { |
606 dw_free( current_file ); | 606 dw_free( current_file ); |
607 } | 607 } |