SetImagePath of Ribbon

Dear Friends
I am Trying to Set Image Path of Already Created Ribbon Button.
But the Image is Not Set For The Already Created Ribbon Button.
Please see the Code Below
pButton->setImagePath(_T("D:\TestImage.png"), true);
please give your Suggestion to Solve this Problem.

please note that :I am Using C++ and Bricscad V17.

Thank You Friends,
Nathan

Comments

  • Nathan Shan
    edited September 2017

    Dear Friends
    I Tried the same In C#.net Also.
    I can iterate Upto Panels.But I can't iterate RibbonItemCollection From RibbonPanelSource.

    please see the following code.
    RibbonPanelSource ribbonPanelSource = ribbonPanel.Source;
    RibbonItemCollection ButtonCollection = ribbonPanelSource.Items;

    The ButtonCollection Always 0.
    please give your Suggestion to Solve this Problem.

    please note that :I Used C#.net and Bricscad V17.

    Thank You Friends,
    Nathan

This discussion has been closed.