Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - SOLVED: Maximize and minimize panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Maximize and minimize panes

 Post Reply Post Reply
Author
Message
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Maximize and minimize panes
    Posted: 10 September 2008 at 10:30am
Is there a way to maximize a pane and minimize/restore?

I tried it with sample code from Aaron from this thread: http://forum.codejock.com/forum_posts.asp?TID=9610
Quote
Dim pane As XtremeDockingPane.pane
    For Each pane In DockingPane
        If pane.Id <> 2 Then '2 = index of the pane you want to size to full screen"
            pane.Hide
        End If
    Next pane


Instead of .hide I like to use .close.
But I don't know how to restore the panes like they were before!

What I like to do:
Private Sub DockingPane_PanePopupMenu(ByVal Pane As XtremeDockingPane.IPane, ByVal x As Long, ByVal y As Long, Handled As Boolean)

   On Error GoTo PROC_ERR
    'Panes can only be closed by code. So if a pane is closed, there is a pane in "maximized mode"
    Dim bolMaximized As Boolean
    Dim tmpPane As XtremeDockingPane.Pane
    For Each tmpPane In DockingPane(1)
        If tmpPane.Closed Then
            bolMaximized = True
            Exit For
        End If
    Next
   
    If bolMaximized Then
        'Re-Open all panes
'        For Each tmpPane In DockingPane(1)
'            If tmpPane.id <> Pane.id Then
'                tmpPane.Open '?????
'            End If
'        Next
    Else
        'Maximize the active pane
        For Each tmpPane In DockingPane(1)
            If tmpPane.id <> Pane.id Then
                tmpPane.Close
            End If
        Next
    End If
End If

End Sub


The .open method is missing...
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2
Language: VB6 / C# 4.0
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 10 September 2008 at 10:40am
Hi,
 
Try this:
 
If bolMaximized Then
        'Re-Open all panes
        For Each tmpPane In DockingPane(1)
            If tmpPane.id <> Pane.id Then               
                DockingPane.ShowPane tmpPane.Id
            End If
        Next
    Else
.................
 
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....
Back to Top
Jean View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 December 2006
Status: Offline
Points: 110
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jean Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2008 at 2:28am
Thank you Aaron!
SOLVED.
Product: Xtreme SuitePro (ActiveX) Version 15.0.2
Platform: Windows XP (32bit) German - SP 2
Language: VB6 / C# 4.0
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 11 September 2008 at 8:59am
Hi,
 
Don't forget to add SOLVED to topic description
 
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....
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.125 seconds.