On 10/11/2018 10:16 PM, Jeyron A.C wrote:

Even so I have another doubt, and it is like using the menu bar in a simple and useful way.

I have my code:

(define menu-volunteers
(new menu%
     [label "& Volunteers"]
     [parent menu-bar]))

(define my_item_agregar_volun
   (new menu-item%
        [label "& Add"]
        [parent menu-volunteers]
        "Here goes the callback"

Exactly where the callback goes, is where I have that big doubt. That has to go in that section.

The idea is to call a new window where you can add data, which are necessary.

The callback function only needs to be in scope (ie. visible to the calling code) at the point where it is called.  The function does not need to be in the same menu, in the same window, in the same code module, or even in the same code file  [files can contain multiple modules].  The menu action can call any function that it can see.


You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to