Print Page | Close Window

saveStatetoString / LoadStateFromString

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=10735
Printed Date: 30 September 2024 at 11:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: saveStatetoString / LoadStateFromString
Posted By: suja
Subject: saveStatetoString / LoadStateFromString
Date Posted: 22 May 2008 at 1:50am

How can i use "saveStatetoString / LoadStateFromString "

Where Can i Find the saved string???



Replies:
Posted By: Aaron
Date Posted: 22 May 2008 at 2:26am
Hi,
 
If you would see the help you would find this:

Example

[LoadStateFromString Sample (Visual Basic)] This sample code illustrates how to Load your Docking Pane layout from a string saved in a file.

    Dim FreeF As Integer, sFile As String, sLayout As String

    On Error Resume Next:

    sFile = "c:\Layout.000"
    FreeF = FreeFile
    sLayout = Space(FileLen(sFile))
    Open sFile For Binary As #FreeF
    Get #FreeF, , sLayout
    Close #FreeF
    On Error GoTo 0
    DockingPaneManager.LoadStateFromString sLayout
 
 
 
 

Example

[SaveStateToString Sample (Visual Basic)] This sample code illustrates how to Save your Docking Pane layout to a string and save the string in a file.

    Dim FreeF As Integer, sFile As String, sLayout As String

    sFile = "c:\Layout.000"
    FreeF = FreeFile
    Kill sFile
    Open sFile For Binary As #FreeF
    Put #FreeF, , DockingPaneManager.SaveStateToString
    Close #FreeF

 



-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: suja
Date Posted: 27 May 2008 at 12:17am
thank you~~~~~



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net