in

C1 Community

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

C1NavBar collapse function

Last post 06-17-2008 11:05 AM by chinitatuntun. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 05-08-2008 3:55 PM

    C1NavBar collapse function

    I'm developing an application with C# in Visual 2005. 

     I cannot find the way to use the collapse button on a nav bar to work properly. I want the navbar to collapse to the left, the way it is done in Microsoft Outlook 2007. When i set the collapse option to ToLeft, i just get the arrows to the left in the panel header, but i also want to show at least the title of the panel header in a vertical direction. is there any way to do this? i can't find either the way to collapse it downwards.

    Any help is appreciated.

     

  • 05-23-2008 1:25 PM In reply to

    Re: C1NavBar collapse function

    I am looking for the same thing.  I'm also looking for a way to force the navbar to collapse since the .Collapsed property is read only this way if the application is closed with the bar collapsed, I can restore that same display configuration the next time the application is run.  I am using the .ButtonArrangement property but that doesn't store the .Collapsed value.

  • 05-26-2008 1:01 PM In reply to

    Re: C1NavBar collapse function

    I don't think there is such a function.  That seems like a pretty bad omission on their part.

    Filed under: , ,
  • 06-05-2008 1:01 PM In reply to

    Re: C1NavBar collapse function

    *nod*  C1 responded saying it's not in there.  It seems like a common sense feature to have since the property is there, it's just read-only.  I went ahead and started using the DevComponents version instead which now that I've used I like better because it supports the vertical text and the pop up view when it's collapsed.  We'll see if C1 decides to improve this functionality so we don't have to look for it elsewhere.

  • 06-09-2008 1:46 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 516

    Re: C1NavBar collapse function

    >>> When i set the collapse option to ToLeft, i just get the arrows to the left in the panel header

    It sounds like maybe you have the NavBar fill-docked in a parent container, rather than just left-docked?  if it's fill-docked then the parent needs to be resized.

     To me, the C1NavBar collapse functionality just looks like it sets the Width real small and does a few things with the arrow buttons and the panel area.  Taking that into consideration, check out my sample which implements this collapse functionality all in code, and it also draws the panel header vertically in the Paint method.

     -Greg

    Filed under: ,
  • 06-17-2008 11:05 AM In reply to

    Re: C1NavBar collapse function

    Thanks for your response. That it was i was looking for. I was able to collapse the navbar to teh leftr, but not draw the header vertically. I will take a look at your code and take a note of that.

    Thanks again! :D 

Page 1 of 1 (6 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.