.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Determine Focus Change of Floating Viewports

1 REPLY 1
Reply
Message 1 of 2
rhinton
434 Views, 1 Reply

How to Determine Focus Change of Floating Viewports

I'm looking for an events that is fired when a user switches between different floating viewports.  I would like to update a list of viewport names when the user switches to a different viewport.  Does anyone know how to determine when the user changes focus to a different viewport?

1 REPLY 1
Message 2 of 2
cadMeUp
in reply to: rhinton

You can monitor the 'SystemVariableChanged' event of the Application object and look for the the 'CVPORT' variable changing to a value greater than 1. See the attached C# sample code...

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost