[SOLVED] How to AutoHide Pane? |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
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
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
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.... |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |