Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Jason Stewart
I tried queue-callback this evening. Just what I needed! Thank you. -- 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.

Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Jason Stewart
I tried queue-callback this evening. Just what I needed! Thank you. On Monday, November 19, 2018 at 6:31:04 PM UTC-6, Alex Harsanyi wrote: > > The `send-message-to-window` has a corresponding `on-message` method which > needs to be implemented in the target control for it to do something

Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Alex Harsanyi
The `send-message-to-window` has a corresponding `on-message` method which needs to be implemented in the target control for it to do something useful so it is not a general replacement for `PostMessage`, but it can be used for cases where PostMessage is called with WM_USER, messages. The

Re: [racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Philip McGrath
There is a send-message-to-window function ( http://docs.racket-lang.org/gui/Windowing_Functions.html#%28def._%28%28lib._mred%2Fmain..rkt%29._send-message-to-window%29%29), though I've never used it, and it sounds like it is different from what you describe. -Philip On Mon, Nov 19, 2018 at 5:22

[racket-users] Re: Posting Events To Window Asynchronously From Different Thread?

2018-11-19 Thread Alex Harsanyi
I think `queue-callback` is the closest "general" equivalent: it allows invoking methods on GUI objects from outside the event handler thread. It can also be used to schedule some work to be done outside a GUI widget's callback invocation. If you actually want to post specific messages to a