Trigger function on window change

Hi everyone!

I want to trigger a function when a window change event happens. For example; the user works in 2 different rhino windows and he switches between two windows, is there any event listener function for that behavior? Something like onFocus or onVisibiltyChange? I checked both RhinoDoc and RhinoApp events but couldn’t find any.

Thanks!

Is this in Mac Rhino with multi-document? Or do you mean that the user has two instances of windows rhino open, each with one document?

For Mac you can use ActiveDocumentChanged I think, for Windows I’m not sure, probably you need to reference the RhinoWindows.dll assembly and search for a relevant event there, something like GotFocus or some such like that.

1 Like

It is for Windows, thank you I will search for the event.