Ribbon Settings and drop down Pin

Ribbon Settings and drop down Pin

Anonymous
Not applicable
489 Views
2 Replies
Message 1 of 3

Ribbon Settings and drop down Pin

Anonymous
Not applicable

How can we access Ribbon's drop down Pin and settings (a small arrow at the corner)

 

 ribbonSettings1.jpg

ribbonSettings2.jpg

0 Likes
490 Views
2 Replies
Replies (2)
Message 2 of 3

rosalesduquej
Alumni
Alumni

The way to access this will be using AdWindows.dll which for Revit API is unsupported. You can take a look at some of the examples from the blog The Builder Coder regarding cutomization of the Ribbon using this DLL. 

 

http://thebuildingcoder.typepad.com/blog/2011/02/pimp-my-autocad-or-revit-ribbon.html

 

In the case of supported API, RibbonPanel.AddSlideOut() adds a sliding panel like the one shown to custom Ribbon UI.  You can’t do anything with the pin – the user should have control over whether they want it extended or not.

 

Hope this helps.

 

Cheers,

 



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes
Message 3 of 3

Anonymous
Not applicable

here is the code how i get the pin to work.

    

 public void PushButton_Settings(RibbonPanel HyderApp)
        {
            HyderApp.AddSlideOut();// this Give me Pin! 

            PushButtonData pushButtonData1 = new PushButtonData("Settings", "File path Settings", _introLabPath, "HCL_Ribbon.Command");
            pushButtonData1.LargeImage = NewBitmapImage("Setting-icon.png");
            pushButtonData1.Image = NewBitmapImage("Setting-icon.png");
            pushButtonData1.ToolTip = "set the path to the folder location";

            HyderApp.AddItem(pushButtonData1);

        }   

 pin.jpg


  

0 Likes