|
Runar,
>menu := (Panda.Menu new addMenuItem: (Panda.MenuItem new
> label: 'Do halt on receiver object';
> actionID: #doHalt)).
>menu open
The new menu open methods answer the selected menu item when a menu item is
selected. They also announce the selected menu item. In terms of anonymous
popups (which is what these are considered), the do not attach themselves to a
pane, and thus do no action lookup.
With this new API, it is up to you to either attach an announcement to the menu
items, or react to the answered menu item when it returns from the open.
And So It Goes
Sames
______________________________________________________________________
Samuel S. Shuster [|]
VisualWorks Engineering, GUI Project
Smalltalk Enables Success -- What Are YOU Using?
|