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 window, you will have 
to map "PostMessage" via FFI and you can find the target window handle 
using `get-client-handle`. This will only work on the windows platform.



On Monday, November 19, 2018 at 7:42:12 PM UTC+8, Jason Stewart wrote:
> In Windows, we have a SendMessage() function for dispatching a window 
> event synchronously, and PostMessage() for asynchronously queuing an event 
> to a specified window from any thread.
> Is there a way to do PostMessage() from Racket's GUI library?
> Eventspaces feels warm, but couldn't find what I was looking for in it:
> https://docs.racket-lang.org/gui/windowing-overview.html?q=sleep#%28part._eventspaceinfo%29

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