Re: How does the StyleDropDown work? (attaching styles to it)

  •  07-14-2004, 12:06 PM

    Re: How does the StyleDropDown work? (attaching styles to it)

     Aluminum wrote:
    1) Where do the style names and classes come from to populate the menu?
    You can populate the menu yourself by grabbing the wanted dropdownlist and adding whatever items you want.
         Editor1.StyleDropDown.Items.Add("Text", "Value");
    Where "Text" is what will appear in the DropDownList and "Value" is the name of the class (so that class name must be defined in a style sheet that is linked to the page)
     
     Aluminum wrote:
    2) When selecting text, is there a way to have the style class attribute applied via a different tag than FONT?
    I'm not sure if the CuteEditor has anything like this but if you want to make a custom DropDown to do something similar then check out http://www.cutesoft.net/Forums/ShowPost.aspx?PostID=1196 near the bottom where Adam gave me some code that you can probably change to fit your need.
View Complete Thread