19 NSButton *radioButton;
26 [radioButton setEnabled:(value==0)?NO:YES];
30 if ([radioButton window]) {
31 [[radioButton window] makeFirstResponder:radioButton];
36 NSRect frame = [radioButton frame];
37 frame.size.width = value;
38 [radioButton setFrame:frame];
43 NSRect frame = [radioButton frame];
44 frame.size.height = value;
45 [radioButton setFrame:frame];
50 if (value==0) [radioButton setState:NSOffState];
51 else [radioButton setState:NSOnState];
60 "Function is not appropriate for this type of widget (%s)",
73 NSButton *radioButton;
80 return ([radioButton isEnabled]==YES)?1:0;
83 if ([radioButton window]) {
84 if ([[radioButton window] firstResponder] == radioButton)
return 1;
89 return [radioButton frame].size.width;
92 return [radioButton frame].size.height;
95 return ([radioButton state]==NSOnState)?1:0;
102 "Function is not appropriate for this type of widget (%s)",
115 NSButton *radioButton;
122 NSString *stringValue = [[NSString alloc] initWithCString:value encoding:NSUTF8StringEncoding];
123 [radioButton setTitle:stringValue];
124 [stringValue release];
132 "Function is not appropriate for this type of widget (%s)",
143 const char *defaultValue) {
144 NSButton *radioButton;
151 return [[radioButton stringValue] cStringUsingEncoding:NSUTF8StringEncoding];
157 "Function is not appropriate for this type of widget (%s)",
192 wParent=GWEN_Widget_Tree_GetParent(w);
198 radioButton = [[[
CocoaRadioButton alloc] initWithFrame:NSMakeRect(0.0, 0.0, 60.0, 24.0)] autorelease];
202 NSString *title = [[NSString alloc] initWithCString:s encoding:NSUTF8StringEncoding];
203 [radioButton setTitle:title];
209 while(GWEN_Widget_Tree_GetParent(wT))
210 wT=GWEN_Widget_Tree_GetParent(wT);
217 wT=GWEN_Widget_Tree_GetBelow(wT);