Print Page | Close Window

[SOLVED] How to AutoHide Pane?

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=16798
Printed Date: 27 April 2024 at 9:25am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] How to AutoHide Pane?
Posted By: chrisABC
Subject: [SOLVED] How to AutoHide Pane?
Date Posted: 08 June 2010 at 4:58am
I create a Pane and it appears on screen. The pushpin icon is Not Pinned.

But Pane will not Autohide.

If I then do     DPM.HidePane  MyPane
this causes the Pane to hide, and from now on the autohide works OK.


Can you suggest how I can get the Pane to initially appear on screen with the autohide already set to work?


ANSWER: Not possible.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: Aaron
Date Posted: 08 June 2010 at 12:39pm
Hi Chris,
 
Do you mean the pane is initially visible?
And when should the pane hide again?
 
 
 
 


-------------
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: chrisABC
Date Posted: 08 June 2010 at 1:18pm
Yes, I would like pane to be initially visible. Which it is at present.

But when I click on something else the pane does not autohide. 

Maybe with autohide the pane MUST initially be hidden??


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: Aaron
Date Posted: 08 June 2010 at 1:48pm
Hi Chris,
 
Correct, the pane has to be hidden before autohide does something.
 
Maybe something like:
 
Private Sub DockingPane_Action(ByVal Action As XtremeDockingPane.DockingPaneAction, ByVal Pane As XtremeDockingPane.IPane, ByVal Container As XtremeDockingPane.IPaneActionContainer, Cancel As Boolean)
    If Action = PaneActionActivated And Not Pane.Id = ID_PANE_TO_HIDE Then 'another pane has been selected
        Me.DockingPane.HidePane Me.DockingPane.FindPane(ID_PANE_TO_HIDE)
    End If   
End Sub
 
will hide the pane when another pane is selected and select pane (to be hidden at startup) so you are sure user have to select a pane beside the "hidden" pane.
 
 


-------------
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: chrisABC
Date Posted: 08 June 2010 at 2:02pm
OK, thanks. I can live with this.

> the pane has to be hidden before autohide does something.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6


Posted By: Aaron
Date Posted: 09 June 2010 at 2:06pm
Hi Chris,
 
You don't need the code in DockingPane Action event. I tried again and you only have to:
 
Set paneReport = DockingPane.CreatePane(201, 300, 300, DockRightOf, Nothing)
        paneReport.Title = "Data"
        paneReport.Hide
Set paneProperties = DockingPane.CreatePane(202, 300, 300, DockLeftOf, Nothing)
        paneProperties.Title = "Properties"
        
....
 
and after creation of all panes
 
        paneReport.Select
 
 
paneReport.Hide       - This will set the autohide functionality
paneReport.Select    - This will show the hidden pane & autohide is already set
 
 
 


-------------
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: chrisABC
Date Posted: 10 June 2010 at 5:31am
Aaron,

That works brilliantly. Just what I wanted. THANK YOU.

(I have been using DockingPane for several years and have never used  Pane.SELECT.  I expect there is much else I have not used :-)

Just for information, I have now put the CJ Calendar Control in an autohide Pane, and I think this looks really nice in my app.  Move the mouse over the tab and the Calendar appears. And if the Calendar is hidden and an appointment Reminder event is fired, it does pop up the reminder on screen.

Thanks again, Aaron.


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



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