1

我正在使用 Delphi 6 和 JEDI Docking 视觉组件。我实现了我的程序窗口之间的拖放。我需要保存窗口的当前状态。例如,在第一次运行中,我有一个单独的服务器窗口和两个客户端窗口,然后我使用 DragandDrop 将客户端窗口删除到服务器窗口中。然后我关闭我的程序并在第二次运行中我希望看到窗口的最后状态(服务器窗口内的两个客户端窗口)。如何实现这一点?

4

1 回答 1

1

I have found solution. There are two methods for saving and loading windows state in JvDockControlForm module.

SaveDockTreeToFile('MyFile');
LoadDockTreeFromFile('MyFile');

Also there are another ways to save state by components in JvPersistence tab. Anyway you need to put JvDockServer component from Jv Docking tab to your main form to use these methods above.

于 2016-02-29T11:24:57.887 回答