Results 1 to 2 of 2

Thread: Ribbon API (not CUI API) - RibbonButtons are tiny

  1. #1
    Join Date
    Login to Give a bone

    Default Ribbon API (not CUI file API) - RibbonButtons are tiny

    I am trying to add a ribbon button with a png file for a picture and some text. I am following the code from CP208-2 from AU. I am adding the button using the following:

    RibbonButton ribButtonTest = new RibbonButton();
    ribButtonTest.Text = "Hello";
    ribButtonTest.ShowText = true;
    ribButtonTest.Image = LoadImage();

    There is a function LoadImage() that is based off the class handout described above, but it does not matter since I can remove this line and still the button is just the size of the text basically.

    With the picture it is clipped and the text appears to the left of the tiny picture. In the AU course they show a button created using this code, but the button appears like the move button in the ribbon.

    I am using ACAD 2011, did something change in this version? Has anyone else out there successfully made a normal or even large size button with 2011 and .net?

    I tried change the size, height, width, orientation etc. properties but nothing seems to change with the button.
    Last edited by tonofsteel; 2010-05-14 at 11:46 PM.

  2. #2
    AUGI Addict sinc's Avatar
    Join Date
    Login to Give a bone

    Default Re: Ribbon API (not CUI API) - RibbonButtons are tiny

    The buttons should be either 16x16 (for small) or 32x32 (for big). With at least some image formats (such as PNG), you must also configure the PNG to be 96dpi, or it will not show up sized correctly in the Ribbon.

Similar Threads

  1. My Tiny Work.
    By M.Jamal Khan in forum Revit - Gallery
    Replies: 1
    Last Post: 2015-06-05, 04:59 PM
  2. My Tiny attempt ...
    By M.Jamal Khan in forum AutoCAD Gallery
    Replies: 0
    Last Post: 2013-08-19, 07:40 AM
  3. Tiny DLL
    By arqt49 in forum Revit Architecture - General
    Replies: 1
    Last Post: 2011-03-03, 11:21 PM
  4. Go away, little tiny window! Go away!
    By ppirtle in forum Revit Structure - General
    Replies: 1
    Last Post: 2010-01-08, 07:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts