SetMouseEvents()

  •  05-12-2005, 1:41 PM

    SetMouseEvents()

    I'm adding a custom button to the toolbar; but SetMouseEvents() causes a compile error ("member does not exist in the class or namespace").  I've looked at the document and a couple of examples and it looks correct to me.  I've posted my code below.  Let me know what I'm doing wrong.

    Thanks!!!
     
    C#
    System.Web.UI.WebControls.Image PageBreak = new System.Web.UI.WebControls.Image ();
    PageBreak.ID = "PBreak";
    // This ID will be used in template
    PageBreak.ToolTip = "Insert Page Break";
    PageBreak.ImageUrl = "~/CuteEditor_Files/images/PageBreak.gif";
    PageBreak.CssClass = "CuteEditorButton";
    SetMouseEvents(PageBreak);
    PageBreak.Attributes.Add("onclick","insertHTML('" +
    this.ClientID + "_editBox', '" + HTMLPageBreak + "')");
    PageBreak.Attributes.Add("type","button");
    this.RegisterCustomButton("PageBreak", PageBreak);
    this.ToolControls["InsertPageBreakHolder"].Control.Controls.Add(PageBreak);
View Complete Thread