2014-07-08 33 views
3

在菲羅3右擊在使用MultiColumnListModel給出MessageNotUnderstood的菜單,如本例所示的代碼:開放菜單給出MNU

| specModel list itemMenu group1 item1 | 

itemMenu := MenuModel new. 
item1 := MenuItemModel new 
    name: 'Browse'; 
    shortcut: $b command;  
    enabled: true; 
    action: [ self halt ]; 
    yourself. 
group1 := MenuGroupModel new 
    addMenuItem: item1; 
    autoRefresh: true; 
    yourself. 
itemMenu addMenuGroup: group1. 

specModel := DynamicComposableModel new 
    instantiateModels: #(list MultiColumnListModel); 
    yourself. 
list := specModel list 
    items: {$a. $b. $c. $d. $f.}; 
    displayBlock: [:e | {e asString. e isVowel asString} ]; 
    menu: itemMenu; 
    yourself. 
specModel 
    openWithSpecLayout: (SpecLayout composed 
     newRow: [: r | r add: #list ]; 
     yourself). 

這是在規格或I中的錯誤我錯過了什麼?

回答

0

這是一個衆所周知的目前在規範中的錯誤。有幾個地方右鍵單擊MNU