Adding a new Dropdown

  •  07-29-2009, 1:18 PM

    Adding a new Dropdown

    I would like to add a  new dropdown in the same lines as code snippet dropdown and progammatically assign values to it
     
    I did the following 
    I  added this line in my config file
     <item type="dropdown" name="Mydropdown" width="90" RenderItemBorder="true" text="[[Mydropdown]]" />
    I added these lines in include_cuteeditor.asp
    Public Property Let MyDropDownMenuNames(input_string)
            s_MydropdownMenuNames = input_string
        End Property    
        Public Property Let MyDropDownMenuList(input_string)
            s_MydropdownMenuList = input_string
        End Property       
     
    and also added a case statement
     with 
     case "mydropdown":
                    name_s=s_MydropdownMenuNames
                  list_s=s_MydropdownMenuList
     
    Also in my code 
    I assigned values as 
     
    editor.MyDropDownMenuNames = "test value 1, test value 2"
     editor.MyDropDownMenuList = "test value 1, test value 2"
     
     
    When I see my editor it displays the dropdown with the values but the name of the dropdown is enclosed within paranthesis, like this
    {MyDropDown}
     
    Please help
     
     
View Complete Thread