adding custom toolbar button

  •  12-17-2003, 4:33 PM

    adding custom toolbar button

    I've created a custom toolbar button, and added it to the toolbar with "toolbar.Add" method, as described in the sample files.
    The button always appear as the first button in the toolbar, and I'd like to insert the button at a specific place in the toolbar.


    I've tried ".toolbar.Controls.AddAt" method, but all index values above 0 terminates with: Specified argument was out of the range of valid values. Parameter name: index.

    The toolbar is populated in Page_Load method with:
    myEditor.Template = "Cut,Copy,Paste,PasteText,PasteWord,Separator"
    myEditor.toolbar.Controls.AddAt(5,myCustomButton)

    How do I add my custom button at a specific location in the toolbar?

View Complete Thread