Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Disappearing Panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disappearing Panes

 Post Reply Post Reply
Author
Message
antcella View Drop Down
Newbie
Newbie


Joined: 20 January 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote antcella Quote  Post ReplyReply Direct Link To This Post Topic: Disappearing Panes
    Posted: 20 January 2009 at 9:22am
HI,
im evalueting Docking Panes in VB.NET 2005.
 
My code adds a Pane and handles a form Properties.
 
If i start with Floating Pane i see the pane, but if i try to drag it and dock to any side of MDI form, on drop it disappear.
 
Here is the code:

Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

dp.Options.ThemedFloatingFrames = True

dp.SetMDIClient(Properties.Handle.ToInt32())

Dim G As Pane

G = dp.CreatePane(1, 200, 120, DockingDirection.DockLeftOf, Nothing)

dp.Options.LunaColors = True

dp.VisualTheme = VisualTheme.ThemeOffice2003

dp.TabPaintManager.OneNoteColors = False

dp.PanelPaintManager.OneNoteColors = False

dp.TabPaintManager.ClientFrame = XtremeDockingPane.XTPTabClientFrame.xtpTabFrameNone

dp.Options.ShowDockingContextStickers = True

dp.Options.AlphaDockingContext = True

dp.Options.ShowCaptionMaximizeButton = True

dp.Options.CloseGroupOnButtonClick = True

'dp.Options.HideGroupOnButtonClick = True

 

G.Title = "Pane 1 - Not Hideable " & Constants.vbLf & "Pane 1"

G.Floating = True

G.Options = PaneOptions.PaneNoHideable

End Sub

Private Sub dp_AttachPaneEvent(ByVal sender As Object, ByVal e As AxXtremeDockingPane._DDockingPaneEvents_AttachPaneEvent) Handles dp.AttachPaneEvent

Select Case e.item.Id

Case 1

e.item.Handle = Properties.Handle.ToInt32

End Select

End Sub

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 21 January 2009 at 2:14am
Hi,
 
Don't think you need
dp.SetMDIClient(Properties.Handle.ToInt32())
line.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.