comparison os2/dw.c @ 566:f6de197ecbe9

Add dw_color_choose()
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 17 Jun 2004 11:22:14 +0000
parents 1b709b879181
children 81ca08481d49
comparison
equal deleted inserted replaced
565:355a6d46adb1 566:f6de197ecbe9
7239 void API dw_color_background_set(unsigned long value) 7239 void API dw_color_background_set(unsigned long value)
7240 { 7240 {
7241 _background = value; 7241 _background = value;
7242 } 7242 }
7243 7243
7244 /* Allows the user to choose a color using the system's color chooser dialog.
7245 * Parameters:
7246 * value: current color
7247 * Returns:
7248 * The selected color or the current color if cancelled.
7249 */
7250 unsigned long API dw_color_choose(unsigned long value)
7251 {
7252 dw_messagebox("Not implemented", DW_MB_OK|DW_MB_INFORMATION, "This feature not yet supported.");
7253 return value;
7254 }
7255
7244 HPS _set_hps(HPS hps) 7256 HPS _set_hps(HPS hps)
7245 { 7257 {
7246 LONG alTable[2]; 7258 LONG alTable[2];
7247 7259
7248 alTable[0] = DW_RED_VALUE(_foreground) << 16 | DW_GREEN_VALUE(_foreground) << 8 | DW_BLUE_VALUE(_foreground); 7260 alTable[0] = DW_RED_VALUE(_foreground) << 16 | DW_GREEN_VALUE(_foreground) << 8 | DW_BLUE_VALUE(_foreground);
8691 * ext: Default file extention. 8703 * ext: Default file extention.
8692 * flags: DW_FILE_OPEN or DW_FILE_SAVE. 8704 * flags: DW_FILE_OPEN or DW_FILE_SAVE.
8693 * Returns: 8705 * Returns:
8694 * NULL on error. A malloced buffer containing 8706 * NULL on error. A malloced buffer containing
8695 * the file path on success. 8707 * the file path on success.
8696 * 8708 *
8697 */ 8709 */
8698 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags) 8710 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags)
8699 { 8711 {
8700 if(flags == DW_DIRECTORY_OPEN) 8712 if(flags == DW_DIRECTORY_OPEN)
8701 { 8713 {