Mercurial > dwindows
comparison mac/dw.m @ 804:5b4a831af8fa
Fix for dw_combobox_new() not setting the default text in the entryfield.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 23 Mar 2011 20:59:38 +0000 |
parents | 8555ac1bcbcd |
children | 1a0bbb2aa9dd |
comparison
equal
deleted
inserted
replaced
803:8555ac1bcbcd | 804:5b4a831af8fa |
---|---|
3598 * id: An ID to be used with dw_window_from_id() or 0L. | 3598 * id: An ID to be used with dw_window_from_id() or 0L. |
3599 */ | 3599 */ |
3600 HWND API dw_combobox_new(char *text, ULONG cid) | 3600 HWND API dw_combobox_new(char *text, ULONG cid) |
3601 { | 3601 { |
3602 DWComboBox *combo = [[DWComboBox alloc] init]; | 3602 DWComboBox *combo = [[DWComboBox alloc] init]; |
3603 [combo setStringValue:[NSString stringWithUTF8String:text]]; | |
3603 [combo setDelegate:combo]; | 3604 [combo setDelegate:combo]; |
3604 [combo setTag:cid]; | 3605 [combo setTag:cid]; |
3605 return combo; | 3606 return combo; |
3606 } | 3607 } |
3607 | 3608 |