Print Page | Close Window

LoadSaveFromString issue

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=4076
Printed Date: 04 July 2024 at 10:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: LoadSaveFromString issue
Posted By: LittleJK
Subject: LoadSaveFromString issue
Date Posted: 27 April 2006 at 5:40pm

Does anyone have any ideas on how this is happening? We are trying to save the docking panes into a string to put on a db... and then using the LoadSaveFormString but it adds both pictureboxes to one pane. There should be two panes one on the right and left side. 

 

 

 

The code we are using is this:

With Me.DockingPaneManager
        .VisualTheme = ThemeExplorer
        .Options.CaptionDirection = PaneCaptionHorizontal
        .Options.LockSplitters = True
        .PaintManager.SplitterSize = 2
        .PanelPaintManager.Appearance = xtpTabAppearanceFlat
        .PanelPaintManager.Layout = xtpTabLayoutFixed

        Set PaneOptions = .CreatePane(ID_PANE_OPTIONS, 241, Int(Me.Height / 15), DockLeftOf)
        With PaneOptions
             .Title = "Search Options..."
             .MaxTrackSize.Width = 241
             .Options = PaneNoFloatable Or PaneNoDockable
        End With

        Set PaneFields = .CreatePane(ID_PANE_FIELDS, 115, Int(Me.Height / 15), DockRightOf)
        With PaneFields
             .Title = "Field Chooser"
             .MaxTrackSize.Width = 115
             .Closed = True
             .Options = PaneNoFloatable Or PaneNoDockable
        End With

             Set rs = objWOODLOCH.sel_codejock(curuser.lUserid, Me.Name, .Name)
             If rs.RecordCount > 0 Then .LoadStateFromString (rs.Fields("s_config"))
             rs.Close
    End With

but if we comment out the last lines about setting string to the DB we get the orignial

 




Replies:
Posted By: Oleg
Date Posted: 27 April 2006 at 7:49pm

Are you sure ID_PANE_OPTIONS not equal ID_PANE_FIELDS?

Use debug.Print to check if this constants are different.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Oleg
Date Posted: 27 April 2006 at 7:52pm

I see

.Closed = True
.Options = PaneNoFloatable Or PaneNoDockable

may be these lines problem. because pane must be or PaneNoFloatable  or PaneNoDockable. try to comment them.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: LittleJK
Date Posted: 27 April 2006 at 9:53pm
Well thanks, we figured it out that we had to do a .showpane in the commandbar excute because we had it as PaneFields.Closed = Not PaneFields.Closed to keep it not shown until we click on an option to bring it back.



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