in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

C1NavBar Autohide?

Last post 04-11-2008 11:55 AM by C1_JohnAd. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 04-07-2008 6:44 AM

    C1NavBar Autohide?

    Is there a way to auto-hide the C1NavBar on mouseleave()?

    Filed under:
  • 04-07-2008 10:30 AM In reply to

    Re: C1NavBar Autohide?

    Hi,

    In order to achieve the desired behavior. I would suggest you to drop a
    C1CommandDock on the form then drop a C1DockingTab on it and then drop a
    C1NavBar C1DockingTabPage.
    Set the AutoHiding property of C1DockingTab to True

    This will give you the autohiding functionality. I have attached a sample
    for the same.

    Hope this helps.

    Regards,
    John Adams

    wrote in message news:203546@10.0.1.98...
    Is there a way to auto-hide the C1NavBar on mouseleave()?




    http://helpcentral.componentone.com/cs/forums/p/74854/203546.aspx#203546
  • 04-10-2008 7:30 AM In reply to

    Re: C1NavBar Autohide?

    Thanks very much!

     When I set the auto-hide to true, my whole NavBar disappears in runtime! And when you hide the menu in runtime, how do you show it? There doesn't seem to be a "show" button anywhere?

     


     

  • 04-11-2008 11:55 AM In reply to

    Re: C1NavBar Autohide?

    Hi,

    When we put C1NavBar or any other control on C1DockingTan and set the
    AutoHiding property of C1DockingTab to True the C1DockingTabPage and all
    its contents slides in (i.e., gets invisible).However, if you move your
    mouse on that page it slides out and you will see all its contents (or
    C1NavBar in your case). If you click on PIN symbol the C1DockingTabPage and
    its contents will appear on the form without any slide in- slide out effect.

    Regarding the menu question I would like to mention that you can show the
    menu using the Show() method of C1MainMenu. Below is the code snippet for
    the same.

    BEGIN CODE

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
    System.EventArgs) Handles Button1.Click

    Me.C1MainMenu1.Show()

    End Sub

    END CODE

    Hope this helps.

    Regards,
    John Adams

    wrote in message news:203683@10.0.1.98...
    Thanks very much!
    When I set the auto-hide to true, my whole NavBar disappears in runtime!
    And when you hide the menu in runtime, how do you show it? There doesn't
    seem to be a "show" button anywhere?






    http://helpcentral.componentone.com/cs/forums/p/74854/203683.aspx#203683
Page 1 of 1 (4 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.