changeset 953:2dfc06afc7d3

Support dw_window_set_text() for groupboxes
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 01 May 2011 22:52:38 +0000
parents abb9203adc05
children cfb12bf3bb06
files mac/dw.m
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Sun May 01 05:30:11 2011 +0000
+++ b/mac/dw.m	Sun May 01 22:52:38 2011 +0000
@@ -284,7 +284,7 @@
                 int buttonmask = DWOSMinor > 5 ? (int)[NSEvent pressedMouseButtons] : 0;
                 id view = [[[event window] contentView] superview];
                 NSPoint p = [view convertPoint:[event locationInWindow] toView:object];
-                
+
                 if(DWOSMinor < 6)
                 {
                     buttonmask = (1 << [event buttonNumber]);
@@ -7301,6 +7301,11 @@
         NSControl *control = handle;
         [control setStringValue:[ NSString stringWithUTF8String:text ]];
     }
+    else if([object isMemberOfClass:[DWGroupBox class]])
+    {
+       DWGroupBox *groupbox = handle;
+       [groupbox setTitle:[NSString stringWithUTF8String:text]];
+    }
     DW_MUTEX_UNLOCK;
 }