Mercurial > dwindows
comparison mac/dw.m @ 1051:6919854298fd
Added dw_font_choose() on Windows for 2.1.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 02 Jun 2011 06:18:37 +0000 |
parents | 48f43c975533 |
children | d91e09dc3865 |
comparison
equal
deleted
inserted
replaced
1050:48f43c975533 | 1051:6919854298fd |
---|---|
7228 } | 7228 } |
7229 free(fontcopy); | 7229 free(fontcopy); |
7230 return font; | 7230 return font; |
7231 } | 7231 } |
7232 | 7232 |
7233 /* Allows the user to choose a color using the system's color chooser dialog. | 7233 /* Allows the user to choose a font using the system's font chooser dialog. |
7234 * Parameters: | 7234 * Parameters: |
7235 * value: current color | 7235 * currfont: current font |
7236 * Returns: | 7236 * Returns: |
7237 * The selected color or the current color if cancelled. | 7237 * A malloced buffer with the selected font or NULL on error. |
7238 */ | 7238 */ |
7239 char * API dw_font_choose(char *currfont) | 7239 char * API dw_font_choose(char *currfont) |
7240 { | 7240 { |
7241 /* Create the Color Chooser Dialog class. */ | 7241 /* Create the Color Chooser Dialog class. */ |
7242 static DWFontChoose *fontDlg = nil; | 7242 static DWFontChoose *fontDlg = nil; |