cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

GetActiveWindow()

markus_bonk
1-Visitor

GetActiveWindow()

Am I missing something: I can't seem to be able to query which window is active? I seem to be able to get the current model and the current window but this doesn't tell me which one is active. How does one do this?


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2

answer.jpg

How does one get the active window programmatically? There isn't a ProWindowActiveGet() and the window returned by ProWindowCurrentGet isn't necessarily the active one. Adding a listener for ProWindowChangePost doesn't help because although ProWindowCurrentGet called in the handler does appear to get the active window it also deletes/disables/resets the undo stack which is simply not acceptable.

Announcements


Top Tags