How can I save and restore docking state and position of a dialog inherit from SceneExplorerDialog...?

How can I save and restore docking state and position of a dialog inherit from SceneExplorerDialog...?

arnaud.buiXZM2G
Explorer Explorer
275 Views
1 Reply
Message 1 of 2

How can I save and restore docking state and position of a dialog inherit from SceneExplorerDialog...?

arnaud.buiXZM2G
Explorer
Explorer

Hello,

 

At Max startup, I created a dialog inherit from SceneExplorerDialog and show it.
It work well and the use can move, resize and dock it where he want.
But how I can save the position and the docking state of the dialog to restore them when the user restarts Max?

Thank you.

 

0 Likes
Accepted solutions (1)
276 Views
1 Reply
Reply (1)
Message 2 of 2

arnaud.buiXZM2G
Explorer
Explorer
Accepted solution

Finaly I found the solution.

 

To make my SceneExplorerDialog dialog dockable, I manually created a WinFormDockingFrame frame and put the dialog in the frame and I didn't set SceneExplorerDialog.Frame property with the created frame.

 

I removed theses code and used the SceneExplorerDialog.ShowInFrame() to show the dialog and the dialog docking state is automatically saved and restored by Max.

0 Likes