Notifications
Clear all

[Closed] tracview.open in modal mode ?

Opened trackview with command

trackviews.open "name"

and now, I would like it to be modal.
I tried sending DS_MODALFRAME message to the window but nothing happens.
Any idea how to do this ?

B.

4 Replies
2 Replies
(@denist)
Joined: 11 months ago

Posts: 0

you can’t make already opened window MODAL (at least I don’t know how to do it). MODAL is a style of window creation.
But you can Disable parent window and enable the window that you want to behave as “MODAL”.
But on the window’s close event you have to enable the parent window back. Which is not trivial to catch. If you interested I can give a scenario.

So the easier way might be to create some MODAL dialog and capture the trackview dialog as a child. I showed how to do it in this forum. (for example http://forums.cgsociety.org/showpost.php?p=6343507&postcount=1 )

(@cgbartosz)
Joined: 11 months ago

Posts: 0
  This trick doesn't work with modal dialog . Creating maxscript dialog with modal style suspends maxscript code execution, so window reparenting does not happen until modal dialog is closed.
   Moving reparenting code to "on open" event handler does not help either.
	 createdialog owner_dialog 0 0 pv[1] pv[2] modal:true\
       		 style:#(#style_sysmenu, #style_maximizebox, #style_minimizebox, #style_border, #style_titlebar, #style_resizing)

you right. i didn’t think well. so there is only one way that i see. it’s to disable the parent window (max) and enable only the trackview.

could you give me the scenario where the trackview has to be modal? i can make any max popup dialog modal but i need to get the reason.