How to "gray out" a menu button in Toolbar

Last post 05-27-2011, 12:57 PM by [email protected]. 2 replies.
Sort Posts: Previous Next
  •  05-26-2011, 1:43 PM 67698

    How to "gray out" a menu button in Toolbar

    Hi,

    Product Name: CuteEditor
    Product Version: 6.4
    Platform: windows 2003


    Problem Details:

    How to gray out a menu button instead of removing it? The following function call removes the button not gray out.

     

    CuteEdit.DisableItemList = "InsertImage";

     
    Thanks

    Qian
  •  05-26-2011, 8:56 PM 67700 in reply to 67698

    Re: How to "gray out" a menu button in Toolbar

     
    The code below shows you how to disable the function but not remove the button.
     
    For now does not achieve to  gray out the button directly.
     
    <script>
    function CuteEditor_OnCommand(editor,command,ui,value)
    {
        if(command=="InsertImage")
        {
            alert("Disable!");
            return true;
        }
    }
    </script>
     
     
    Regards,
     
    Ken
  •  05-27-2011, 12:57 PM 67703 in reply to 67700

    Re: How to "gray out" a menu button in Toolbar

    Hi Ken, Thanks for your reply.
     
    Thanks, Qian 

    Qian
View as RSS news feed in XML