Cute Editor for ASP

Zoom dropdown Customization

Zoom dropdown Customization


The Zoom dropdown of CuteEditor by default displays a predefined set of zoom ratios. You can easily modify this default set using the following methods.

1. Edit Dropdown Configuration file (Common.config).

The dropdown configuration file (Common.config) can be found in the CuteEditor_Files/Configuration/Shared folder. In dropdown configuration file you can find the Zoom element which contains the configuration information for the Zoom dropdown within Cute Editor.  By default, it contains the following format blocks:

 

 

You can modify the Zoom element to create your own format block list.


Example:

  1. <Zoom>  
  2.        <item text="300%" value="300%"></item>  
  3.         <item text="200%" value="200%"></item>  
  4.         <item text="100%" value="100%"></item>  
  5.        <item text="66%" value="66%"></item>  
  6. </Zoom>   

Now the Zoom dropdown contains the following zoom ratios.


 


2. Programmatically populate the Zoom dropdown

Example:

 

  1. <%   
  2.        Dim editor   
  3.        Set editor = New CuteEditor   
  4.        editor.ID = "Editor1"  
  5.           
  6.        'Programmatically populate the Zoom dropdown.     
  7.        editor.ZoomsList = "50%, 75%, 100%"  
  8.        editor.Text = "Hello World"  
  9.        editor.Draw()   
  10. %>