Thanks for the help. Here is what I've done so I can have an "About CuteSoft" type button in the Toolbar. The reason I want one is to make it faster for me to determine if the version online is the latest version available, without having to go the webserver and "hover" over the dll file.
I created an About.aspx page in the root of my website with the following code:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
override protected void OnInit(EventArgs args)
{
System.Reflection.AssemblyName assemblyName = System.Reflection.AssemblyName.GetAssemblyName("C:\\Projects\\OnlineServices\\OnlineServices\\Bin\\CuteEditor.dll");
Version version = assemblyName.Version;
Literal1.Text = "Current Version: " + version + "<br />";
Literal1.Text += "Major: " + version.Major + "<br />";
Literal1.Text += "Minor: " + version.Minor + "<br />";
Literal1.Text += "Build: " + version.Build + "<br />";
Literal1.Text += "Revision: " + version.Revision;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Literal ID="Literal1" runat="server"></asp:Literal>
</div>
</form>
</body>
</html>
In the page I have the editor I added the following bit of BLOCKED SCRIPT
<script language="JavaScript" type="text/javascript">
function ShowMyDialog(button)
{
//use CuteEditor_GetEditor(elementinsidetheEditor) to get the cute editor instance
var editor=CuteEditor_GetEditor(button);
//show the dialog page , and pass the editor as newwin.dialogArguments
//(handler,url,args,feature)
var newwin=editor.ShowDialog(null,"About.aspx",editor,"dialogWidth:200px;dialogHeight:100px");
}
</script>
Then in the codebehind for my page I have:
int pos = Editor1.ToolControls.IndexOf("Zoom") + 1;
WebControl ctrl = Editor1.CreateCommandButton("aboutButton", "about.gif", "About CuteSoft Editor");
ctrl.Attributes["onclick"] = "ShowMyDialog(this)";
Editor1.InsertToolControl(pos, "aboutButton", ctrl);
Finally, I added an "about.gif" image to the Themes/Images folders.
I hope this helps anyone interested.