Custom Panel Dragged Onto Main Screen, Main Active view Window Loses Focus

Custom Panel Dragged Onto Main Screen, Main Active view Window Loses Focus

bnewcombe
Contributor Contributor
174 Views
1 Reply
Message 1 of 2

Custom Panel Dragged Onto Main Screen, Main Active view Window Loses Focus

bnewcombe
Contributor
Contributor

I have a custom panel on a custom ribbon, when i drag the panel off the ribbon and into the main screen(like you can with other revit panels) and move the mouse around I can still select any elements in the main window and I can hover over any buttons or panels and they highlight. However when i press my custom button and the function is run (it ends with a 3d section box being selected)  when i hover over the main window nothing is selected I have to physically click back in the window to 'refocus'. I have tried the following with no effect I think the problem is a Windows issue rather than a revit issue, any thoughts?

 

1) setting the view to be the active view again....doesnt work

2) refreshing active view...doesnt work

3) using show elements...doesnt work

4) filtering all elements and reselecting the 3d section box...doesnt work

 

This issue does not occur if I leave the panel on the ribbon, or if i add the buttons to the quick toolbar, it onlys occurs when the panel is dragged off the ribbon into the main screen

 

cheers



0 Likes
175 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni

Have you tried to use the .NET and Windows APIs to set the focus to the desired window?

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes