OptionBox.st
changeset 2405 dcdb739b64f8
parent 2390 0a72663d8e59
child 2449 b9bf97bf089d
--- a/OptionBox.st	Wed Sep 12 21:05:01 2001 +0200
+++ b/OptionBox.st	Wed Sep 19 10:28:29 2001 +0200
@@ -127,6 +127,33 @@
 
 !OptionBox class methodsFor:'easy startup '!
 
+request:title label:label buttonLabels:labels values:values 
+    "create a new optionBox, open it modal and return the value of
+     the corresponding values collection."
+
+    ^ self 
+        request:title label:label form:(YesNoBox iconBitmap)
+        buttonLabels:labels values:values default:nil onCancel:nil
+!
+
+request:title label:label buttonLabels:labels values:values default:defaultValue
+    "create a new optionBox, open it modal and return the value of
+     the corresponding values collection. (nil if cancelled)"
+
+    ^ self
+        request:title label:label form:(YesNoBox iconBitmap) buttonLabels:labels values:values 
+        default:defaultValue onCancel:defaultValue
+!
+
+request:title label:label buttonLabels:labels values:values default:defaultValue onCancel:cancelValue
+    "create a new optionBox, open it modal and return the value of
+     the corresponding values collection. (nil if cancelled)"
+
+    ^ self
+        request:title label:label form:(YesNoBox iconBitmap) buttonLabels:labels values:values 
+        default:defaultValue onCancel:cancelValue
+!
+
 request:title label:label form:aForm buttonLabels:labels values:values 
     "create a new optionBox, open it modal and return the value of
      the corresponding values collection."
@@ -425,5 +452,5 @@
 !OptionBox class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libwidg/OptionBox.st,v 1.47 2001-08-02 09:50:28 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libwidg/OptionBox.st,v 1.48 2001-09-19 08:28:29 cg Exp $'
 ! !