Configure custom Contextmenu

Last post 11-13-2008, 10:39 AM by transresult. 3 replies.
Sort Posts: Previous Next
  •  11-06-2008, 3:14 AM 45450

    Configure custom Contextmenu

    Hi Adam,
     
    configuration of a custom toolbar for cuteeditor is pretty easy an may look in most cases like this

    Private Const configFilenameDefault As String = "my.config"
    Editor1.AutoConfigure = CuteEditor.AutoConfigure.Compact
    Editor1.ConfigurationPath = CuteEditor.CEF.FilesVirtualPath +
    "/Configuration/AutoConfigure/" + configFilenameDefault

     
    if i use this code the contextmenu is set zu the compact.config, too. by setting the ContextMenuMode-Property to "minimal"
    i can select another (the minimal) ContextMenu-configuration

    Question:

    is it possible to set the Config-File for the Context-Menu programtically?
     
    something like this??
    Editor1.ConfigurationPath = CuteEditor.CEF.FilesVirtualPath + "/Configuration/ContextMenuMode/" + configFilenameDefault
    Filed under:
  •  11-06-2008, 11:24 AM 45469 in reply to 45450

    Re: Configure custom Contextmenu

    Editor.ContextMenuMode Property

    Determines the appearance and behavior of menus associated with the Context menu.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  11-06-2008, 12:40 PM 45477 in reply to 45469

    Re: Configure custom Contextmenu

    Adam:

    Editor.ContextMenuMode Property

    Determines the appearance and behavior of menus associated with the Context menu.
     
     
     
    you can't do that with the ContextMenuMode Property. only strings like "minimal" or "full" can be assigned to this property.
    ...it is not possible to assign a configuration file (like "my.config) :
     
    Editor1.ContextMenuMode = CuteEditor.CEF.FilesVirtualPath + "/Configuration/ContextMenuMode/my.config" +
     
    If i try to do so i get the message "Failed to load menus!"
     
    Question:
    is there a way to set the config-file for the ContextMenu by using a virtual path like ~/cuteedior/Configuration/ContextMenuMode/my.config?
     
     
    thanks
     
    PS: for the toolbar this is quite simple by using the ConfigurationPath-Property...
     
     
  •  11-13-2008, 10:39 AM 45689 in reply to 45477

    Re: Configure custom Contextmenu

    hi adam,
     
    could you please answer the question?
     
    thx
View as RSS news feed in XML