Button Handling

Last post 11-24-2006, 5:51 PM by Adam. 1 replies.
Sort Posts: Previous Next
  •  11-23-2006, 6:06 PM 24535

    Button Handling

    Adam,
     
    Thanks for the answers:
     
    1. How do I change the ToFullPage and FromFullPage to postback = "True" in VB code? I realize I can edit the configuration files, but that's not an option.
     
    You answered: "Try create a server side custom button. "
     
    I don't want to create a custom button. I want to change the properties of toolbars item "ToFullPage" and "FromFullPage".
     
    Is there a way to do it in VB Code? If not, then just tell me that.
     
    2. What is the VB code to prevent various toolbars from displaying entirely?
     
    You answered:
     
    Please check the following article:
     
    How to change the layout of the toolbars?
     
    I did check that article. However, it doesn't show how in VB code to simply prevent specific toolbars from displaying.
     
    Could you show me some code, please?
     
    3. What is the VB code to prevent/allow specific items in a toolbar from/to displaying/display?
     
    You answered the same as 2. above, but, again I don't find actual VB code to show me how to do it. Can you please quickly give me a bit of code to help?
     
    Thanks
    Fred
  •  11-24-2006, 5:51 PM 24548 in reply to 24535

    Re: Button Handling

    >>I don't want to create a custom button. I want to change the properties of toolbars item "ToFullPage" and "FromFullPage".

    Why do you want to do that? It doesn't make sense to me. The button will do post back, however the clietn function will be ignored.
     
    Anyways, here are the solutions:
     
    1. Open the toolbar configuration file and change the following code:
     
    <item type="image" name="ToFullPage" imagename="fit" hotkey="F12" />
    <item type="image" name="FromFullPage" imagename="restore" hotkey="F12" />
    to

    <item type="image" name="ToFullPage" imagename="fit" hotkey="F12" PostBack="true"/>
    <item type="image" name="FromFullPage" imagename="restore" hotkey="F12" PostBack="true"/>
     
    2. Programmatically set button do post back.
     
    Control tofullpage=Editor2.ToolControls["ToFullPage"].Control;
    tofullpage.Attributes["postback"]="true";
     
     
    How to change the layout of the toolbars?
     
    I did check that article. However, it doesn't show how in VB code to simply prevent specific toolbars from displaying.
     
    Could you show me some code, please?
     
     The sample code is included.
     
    5. Put the toolbar items needed to be disabled into this Editor.DisableItemList string.

    For example:

    <CE:Editor id="Editor1" DisableItemList="save, help, CssStyle" runat="server"></CE:Editor>

    C# Example: 
    Editor1.DisableItemList = "save, help, CssStyle";


    VB

    Editor1.DisableItemList = "save, help, CssStyle"
     
     

    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

View as RSS news feed in XML