Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Persist the MDI State – PB Docs 126 – PowerBuilder Library

Persist the MDI State – PB Docs 126


Persist the MDI State

You can set the application so that, when the user launches the application, the
sheets are open in the same position and state as when the user closed it.

To persist the states of opened sheets, it is important to associate a meaningful string
ID with each opened sheet. There are two ways to do this:

  • Set it as an argument when using the OpenSheetAsDocument,
    OpenSheetWithParmAsDocument,
    OpenSheetDocked,
    OpenSheetWithParmDocked,
    OpenSheetInTabGroup, or
    OpenSheetWithParmInTabGroup function.
  • Set it using the SetSheetID function.

You can use a function to store the MDI state in the registry when the application
closes. You can then use other functions to load and open the sheets in their docking
states, and present them.

Parent topic: Dockable Windows

Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x