HELP on component Menu Bar...

gamjah!perez <[email protected]> Tue, 23 Aug 2005 18:54:49 +0200
Newsgroups gmane.lisp.allegro
Message-ID <[email protected]>
Hello, im using allegro-cl to create an interface, my window has a
menubar and i´m not able to call a function properly from an item of
the menubar.

I´m using the menu editor and i´ve introduced the call to the function
in the corresponding "value" field (with the desired item selected),
but  when i run the GUI and press that item inside the menubar i get
this error about the number of the parameters...

Error: INICIAR_LISTA got 1 arg, wanted 2 args.
[condition type: PROGRAM-ERROR]

the declaration of the function is as follows:
(defun iniciar_lista (dialog widget))

the function works fine calling it from an on-click event from a
button component. I´ve read the Allegro´s documentation about menubar
and the examples it contains, and cannot remove the problem....

¿can you help me? ¿what do i have to insert in this value field to
call the function properly?


thanks...