# HG changeset patch # User mhessling@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1304290358 0 # Node ID 2dfc06afc7d326759a7f37a08a2a25ae98d8c492 # Parent abb9203adc059e3a41a0d5f84f66c96ae6bfa073 Support dw_window_set_text() for groupboxes diff -r abb9203adc05 -r 2dfc06afc7d3 mac/dw.m --- 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; }