#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Fri, 13 Jul 2018 11:10:21 +0200
changeset 6377 085f33bdceca
parent 6376 f3f6befe6205
child 6378 3cf0a2838cb8
#FEATURE by cg class: MenuView changed: #items
MenuView.st
--- a/MenuView.st	Fri Jul 13 11:07:51 2018 +0200
+++ b/MenuView.st	Fri Jul 13 11:10:21 2018 +0200
@@ -1200,13 +1200,16 @@
     "for menuPanel compatibility: return a list of menu items"
 
     ^ (1 to:list size) 
-        collect:[:each |
+        collect:[:idx |
             |item|
             item := MenuItem new.
+            item label:(list at:idx).
+            item enabled:(self isEnabled:idx).
             item.
         ].
 
     "Created: / 12-07-2018 / 21:42:39 / Claus Gittinger"
+    "Modified: / 13-07-2018 / 11:10:16 / Claus Gittinger"
 !
 
 labelAt:indexOrName put:aString