Dialog / Form visiblity

Dialog / Form visiblity

orosztamas
Contributor Contributor
874 Views
3 Replies
Message 1 of 4

Dialog / Form visiblity

orosztamas
Contributor
Contributor

Dear Everyone,

I have a modeless form set to "TopMost". One of the buttons on the modeless form is calling the "ColorSelectionDialog".

 

My goal is to display the ColorSelectionDialog over my Windows Form. The problem is the following:

 

When my modeless form is set to "TopMost", then the ColorSelectionDialog appears behind it. On the other hand, when the modeless form is not set to "TopMost", then the Revit window, and the ColorSelectionDialog are both in front of my form, so it's basicly not visible.

 

It is working fine as ModalDialog, but this breaks some other functionality, since I need to interact with the Revit Database, while the form is open.

 

Is there a solution for  this?

0 Likes
Accepted solutions (1)
875 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk
Accepted solution

This looks very similar to the question I answered this very morning, and the answer is probably identical:

 

https://forums.autodesk.com/t5/revit-api-forum/modeless-dialog-stays-on-top/td-p/9042359

 

Please always search for existing answers before asking a new question.

 

Thank you!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 4

orosztamas
Contributor
Contributor

Yes, you are right! Sorry! And thank you for the JtWindowHandle class!

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

No problem. Thank you for your appreciation. Glad it helps solve your issue!

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes