Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8565

Automatic Viewport-Mesh creation takes application focus because of Command Prompt

$
0
0

@atair wrote:

Hi,´
I have a lot of object creation and destruction happening in the background (unrelated to user input). Now every time a meshable object gets added to the ActiveDoc, it is meshed instantly, unless a view manipulation is active (e.g. RMB Orbit).

The problem is - if the user has the mouse in a drop-down menu, and at this moment an object is added in the background (from my script), the Rhino Command prompt outputs "Creating Meshes... Press Esc to cancel" and by doing so takes the window focus. This results in the drop-down menu closing instantly.

If there any way to detect that the mouse is on the drop down menu i can delay the creation myself. I wouldn't want to rely on mouse position in trying to figure out the state (as people have all kinds of view setups / multiple monitors etc.)

Any ideas?

I am using C# - I see there is RhinoApp.MainWindow, but i don't know if this is the right place to start, and also what to do with the handle from here on..

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 8565

Trending Articles