Curses::Widgets::Menu Question



Anyone with experience using this module--the following code fragment is
supposed to run a sub after menu item selection is finished.

What *actually* happens is that *every one* of the subs is run (in order)
after menu item selection is finished.

I must be missing something simple, but I've run out of ideas.

MENUS => {
MENUORDER => [qw(Encrypt Decrypt Verify Sign Clearsign ListKeys)],
Encrypt => {
ITEMORDER => [('SingleFile','GlobbedFiles')],
'SingleFile' => \&return_selection1("single"),
'GlobbedFiles' => \&return_selection1("glob"),
},
Decrypt => {
ITEMORDER => [('SingleFile','GlobbedFiles')],
'SingleFile' => \&return_selection2("single"),
'GlobbedFiles' => \&return_selection2("glob"),
},
...

Any suggestions appreciated.

HW
--
Powered by SuSE Linux 9.0 -- Kernel 2.6.11
News Reader slrn 0.9.8.1


.



Relevant Pages

  • Re: Class Events
    ... "large" label. ... for each of the grid labels. ... > Just run userform1 and make a selection on the grid using left mouse ... > Private Sub UserForm_Initialize ...
    (microsoft.public.excel.programming)
  • Re: Command Button question
    ... The form includes a listbox, a textbox and a command button. ... If the user makes a selection on teh list box, ... Private Sub lstManager_Enter ... Me.btnAddRemoveManger.Caption = "Remove Manager" ...
    (microsoft.public.excel.programming)
  • Re: extraction VB code
    ... Sub extractall() ... '' so the Selection is this - where noduplicaterows leaves off - I believe. ... '' Get a specific reference to the added sheet. ... > I've put together this code to extract and id code data from an excel ...
    (microsoft.public.excel.programming)
  • Re: Shape instead of Target
    ... You select this macro. ... I then had it called from sub Worksheet_SelectionChange and got a run type ... Dim strSelectedShape As String ... If the selection is a named range then Shape.Name returns the ...
    (microsoft.public.excel.programming)
  • Re: Method to query all items from a multiselect=none listbox???
    ... I had a RefreshQuery Sub with all criterias for the SQL string. ... I have replaced Sub by Fonction in my Form, declared Dim RefreshQuery ... I have tried to set the box as Sinlge or Extended selection but then ...
    (microsoft.public.access.formscoding)