Changeset 22
- Timestamp:
- 12/05/06 20:44:34 (2 years ago)
- Files:
-
- trunk/minwin/dialog.d (modified) (1 diff)
- trunk/minwin/docs/minwin/button.d (modified) (1 diff)
- trunk/minwin/docs/minwin/component.d (modified) (1 diff)
- trunk/minwin/docs/minwin/group.d (modified) (1 diff)
- trunk/minwin/gtk.brf (modified) (1 diff)
- trunk/minwin/motif.brf (modified) (1 diff)
- trunk/minwin/motif.d (modified) (1 diff)
- trunk/minwin/peerimpl.d (modified) (1 diff)
- trunk/minwin/window.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/minwin/dialog.d
r17 r22 504 504 processSimpleDialog(dialog,&answer); 505 505 } 506 void messageDialog(AbstractWindow owner, char[] text, char[] title,...) { 507 // MessageBoxA(owner.peer, text, title, 508 // MB_OK | MB_ICONINFORMATION); 506 void messageDialog(AbstractWindow owner, char[] text, char[] title) { 507 Arg[4] args; 508 int n; 509 char* str = toStringz(text); 510 setupSimpleDialog(args,n,str); 511 Widget dialog = XmCreateMessageDialog (owner.peer, title.ptr, args, n); 512 int answer; 513 processSimpleDialog(dialog,&answer); 509 514 } 510 515 extern (C) trunk/minwin/docs/minwin/button.d
r14 r22 62 62 AbstractToggleButton[] buttons; 63 63 /// Adds the button to the group of buttons managed by this ToggleGroup. 64 void addButton(AbstractToggleButton b);64 void addButton(AbstractToggleButton[] b ...); 65 65 /// Select c and deselect the other buttons in the group. 66 66 void select(Component c); trunk/minwin/docs/minwin/component.d
r14 r22 50 50 /// Read/write property for the visibility of the component and its children. 51 51 bool visible; 52 /// Read/write property to enable/disable the component and its children. 53 bool enabled; 52 54 /** 53 55 Get the native object that serves as the parent to the peers of the children of this component. trunk/minwin/docs/minwin/group.d
r16 r22 10 10 /// Read/write property to show or hide all the components in the group. The group is visible if any of the children are visible. 11 11 bool visible; 12 /// Read/write property to enable or disable all the components in the group. The group is enabled if any of the children are enabled. 13 bool enabled; 12 14 } 13 15 trunk/minwin/gtk.brf
r5 r22 1 all.d 2 -allobj 3 -Tlibminwin_gtk 4 -I.. 5 - version=GTK6 -lib 7 -g 1 all.d 2 -allobj 3 -Tlibminwin_gtk 4 -I.. 5 -fversion=GTK 6 -lib 7 -g trunk/minwin/motif.brf
r5 r22 1 all.d 2 -allobj 3 -Tlibminwin_motif 4 -I../ 5 - version=Motif6 -lib 7 -g 1 all.d 2 -allobj 3 -Tlibminwin_motif 4 -I../ 5 -fversion=Motif 6 -lib 7 -g trunk/minwin/motif.d
r11 r22 124 124 void XtDestroyWidget(Widget w); 125 125 void XtSetSensitive(Widget w, Boolean b); 126 Boolean XtIsSensitive(Widget w); 126 127 void XtSetKeyboardFocus(Widget root, Widget w); 127 128 trunk/minwin/peerimpl.d
r21 r22 161 161 162 162 bool enabled() { 163 // TODO 164 return true; 163 return cast(bool)XtIsSensitive(peer); 165 164 } 166 165 void enabled(bool b) { 167 // TODO166 XtSetSensitive(peer, cast(Boolean)b); 168 167 } 169 168 trunk/minwin/window.d
r21 r22 601 601 } 602 602 603 void enabled(bool b) { 604 XtSetSensitive(peer, cast(Boolean)b); 605 } 606 607 bool enabled() { 608 return cast(bool)XtIsSensitive(peer); 609 } 610 603 611 void backgroundColor(Color c) { 604 612 // TODO
