[prev in list] [next in list] [prev in thread] [next in thread]
List: racket-users
Subject: [plt-scheme] Dynamic menu-item% callback assignment?
From: greg.johnston () gmail ! com (Greg Johnston)
Date: 2007-02-22 15:12:03
Message-ID: 11b0d47d0702220712g637e20c9sa250ce6a46460aa8 () mail ! gmail ! com
[Download RAW message or body]
On 2/22/07, Daniel Yoo <dyoo at cs.wpi.edu> wrote:
> On Thu, 22 Feb 2007, Greg Johnston wrote:
>
> > Is there any way to assign a callback later, or do I need to work around
> > this?
>
> Hi Greg,
>
> Yes; I have a small example of this in:
>
> http://hkn.eecs.berkeley.edu/~dyoo/plt/mr-ed-notes.txt
>
>
> Here's the example:
Oh, thanks. Actually, I've already read that page and it isn't
entirely what I want. The problem is that not only the callbacks but
the actual menu-item%s are dynamic (created from a file which is
parsed). I think I've figured it out, though, because that reminded me
of something...
I can create an assoc-list of menu-item% IDs and callbacks and then
mutate those. I'm pretty sure that will work...I'll put some of the
code up here to demonstrate when it does.
Thanks,
Greg
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic