Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

grey out image for tools in ribbon

Last post 07-07-2008 9:56 by [Infragistics] Mike Dour. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-03-2008 12:27

    • rmking
    • Not Ranked
    • Joined on 01-04-2008
    • Points 150

    grey out image for tools in ribbon

    Is there a way to automatically grey out the icons of tools in the ribbon?

     When tools are disabled, the text for the buttons gets greyed out, but the icon does not.  Why is this?

     If you add the same tool to the quick launch bar then it will grey out the icon.  Is there a way to enable this for the ribbon as well?

     Thanks,

    Robson

    • Post Points: 20
  • 07-03-2008 13:46 In reply to

    • somay
    • Top 75 Contributor
    • Joined on 12-10-2007
    • Points 915

    Re: grey out image for tools in ribbon

    Try this code:

     For Each item As Object In <<<Toolbar Ribbon Name>>>.Tools

    item.SharedProps.Enabled = False

    Next

    • Post Points: 20
  • 07-03-2008 14:56 In reply to

    • rmking
    • Not Ranked
    • Joined on 01-04-2008
    • Points 150

    Re: grey out image for tools in ribbon

     Disabling the buttons is not the problem.  I want the image to be greyed out as well.

    I did as you suggest in the "IGPaint with Ribbon CS" sample: 

    foreach (ToolBase tool in this.ultraToolbarsManager1.Ribbon.Tabs[0].Groups[0].Tools)

    {

    tool.SharedProps.Enabled =
    false;

    }

    You can see the result in the attachement.

    The items in the quick launch are greyed out.  The words beside the buttons (cut/Redo/Copy) are greyed out.  But the Images for those buttons are not greyed out in the ribbon (paste image, cut image, redo image, copy image).

    Any ideas? 

    Thanks,

     

    (I am using the NetAdvantage 2006 V3)


    • Post Points: 35
  • 07-03-2008 15:06 In reply to

    • somay
    • Top 75 Contributor
    • Joined on 12-10-2007
    • Points 915

    Re: grey out image for tools in ribbon

    I am not sure why its not disabling image. If you disable tool itself, it will disable text as well as an image. You may need to contact dev center for support.

    • Post Points: 5
  • 07-07-2008 9:56 In reply to

    Re: grey out image for tools in ribbon

    I was not able to reproduce the issue with the latest version. Its possible this was a bug in version 6.3, but that version is no longer supported. Try upgrading to the latest version. If you still experience the problem, you should submit the issue to the support group: http://www.infragistics.com/gethelp.

    • Post Points: 5
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems