Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - [SOLVED] How to AutoHide Pane?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] How to AutoHide Pane?

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

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] How to AutoHide Pane?
    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
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: 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....
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
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: 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....
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
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: 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....
Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
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.141 seconds.