Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

An Alpha Channel Composited Windows Form with Designer Support

, 5 Oct 2009
An alpha channel composited form for image based Window frames
alphaformdemo.zip
TestFormGroBotoTV
bin
Release
AlphaFormTransformer.dll
TestForm.exe
TestFormSkinChange
bin
Release
AlphaFormTransformer.dll
TestFormSkinChange.exe
alphaformtransformer.zip
bin
Img Source
obj
Debug
TempPE
Release
TempPE
Properties
obj
Properties
Settings.settings
obj
Properties
Settings.settings
Resources
skin1.tif
skin2.tif
skin1.tif
skin2.tif
TutorialTemplate
bin
obj
Properties
Settings.settings
alphaform_1_1_1.zip
alphaform
ControlsOnTopOfSkin
Properties
Settings.settings
Help
afms.jpg
aform.jpg
AlphaForm API Help
AlphaForm Documentation.chm
CloseSearch.png
CollapseAll.bmp
Collapsed.gif
ExpandAll.bmp
Expanded.gif
fti
FTI_100.bin
FTI_101.bin
FTI_102.bin
FTI_103.bin
FTI_104.bin
FTI_105.bin
FTI_106.bin
FTI_108.bin
FTI_109.bin
FTI_110.bin
FTI_111.bin
FTI_112.bin
FTI_114.bin
FTI_115.bin
FTI_116.bin
FTI_117.bin
FTI_118.bin
FTI_119.bin
FTI_97.bin
FTI_98.bin
FTI_99.bin
FTI_Files.bin
html
icons
alert_caution.gif
alert_note.gif
alert_security.gif
Caution.gif
CFW.gif
collapse_all.gif
copycode.gif
expand_all.gif
LastChild.gif
NotLastChild.gif
privclass.gif
privdelegate.gif
privenum.gif
privevent.gif
privfield.gif
privinterface.gif
privmethod.gif
privproperty.gif
privstructure.gif
protclass.gif
protdelegate.gif
protenum.gif
protevent.gif
protfield.gif
protfield.png
protinterface.gif
protmethod.gif
protoperator.gif
protproperty.gif
protstructure.gif
pubclass.gif
pubdelegate.gif
pubenum.gif
pubevent.gif
pubfield.gif
pubinterface.gif
pubmethod.gif
puboperator.gif
pubproperty.gif
pubstructure.gif
security.gif
static.gif
Item.gif
LastBuild.log
scripts
Search.gif
Splitter.gif
styles
SyncTOC.gif
Tutorials
images
alpha controls splash.jpg
cntrldsk.jpg
controls splash.jpg
controlsontop small.jpg
cutout small.jpg
img0.jpg
img1.jpg
img1.png
img2.jpg
img2.png
img3.jpg
img3.png
img4.jpg
img5.jpg
interior.jpg
logo.gif
mainsplash.jpg
ontopdesign.jpg
ontopsplash.jpg
ontopwithcntrls.jpg
winmedia.jpg
marker.png
Properties
TestFormGroBotoTV
Properties
Settings.settings
TestFormSkinChange
Properties
Settings.settings
Resources
skin1.tif
skin2.tif
skin1.tif
skin2.tif
Transformer.png
TutorialTemplate
Properties
Settings.settings
TV Set
Properties
Settings.settings
tvpic1.jpg
tvpic2.jpg
AlphaForm_1_1_3_Part1.zip
AlphaForm_1_1_3
AlphaForm.csproj.user
AlphaForm.suo
ControlsOnTopOfSkin
bin
Debug
Properties
Settings.settings
LayerdOnBottom
Properties
Settings.settings
marker.png
Properties
TestFormGroBotoTV
bin
Debug
Properties
Settings.settings
TestFormSkinChange
bin
Debug
Properties
Settings.settings
Resources
skin1.tif
skin2.tif
Thumbs.db
skin1.tif
skin2.tif
Thumbs.db
Thumbs.db
Transformer.png
TutorialTemplate
bin
Debug
Properties
Settings.settings
TV Set
bin
Debug
Properties
Settings.settings
Thumbs.db
tvpic1.jpg
tvpic2.jpg
AlphaForm_1_1_3_Part2.zip
Help
afms.jpg
aform.jpg
AlphaForm API Help
AlphaForm Documentation.chm
CloseSearch.png
CollapseAll.bmp
Collapsed.gif
ExpandAll.bmp
Expanded.gif
fti
FTI_100.bin
FTI_101.bin
FTI_102.bin
FTI_103.bin
FTI_104.bin
FTI_105.bin
FTI_106.bin
FTI_108.bin
FTI_109.bin
FTI_110.bin
FTI_111.bin
FTI_112.bin
FTI_114.bin
FTI_115.bin
FTI_116.bin
FTI_117.bin
FTI_118.bin
FTI_119.bin
FTI_97.bin
FTI_98.bin
FTI_99.bin
FTI_Files.bin
html
icons
alert_caution.gif
alert_note.gif
alert_security.gif
Caution.gif
CFW.gif
collapse_all.gif
copycode.gif
expand_all.gif
LastChild.gif
NotLastChild.gif
privclass.gif
privdelegate.gif
privenum.gif
privevent.gif
privfield.gif
privinterface.gif
privmethod.gif
privproperty.gif
privstructure.gif
protclass.gif
protdelegate.gif
protenum.gif
protevent.gif
protfield.gif
protfield.png
protinterface.gif
protmethod.gif
protoperator.gif
protproperty.gif
protstructure.gif
pubclass.gif
pubdelegate.gif
pubenum.gif
pubevent.gif
pubfield.gif
pubinterface.gif
pubmethod.gif
puboperator.gif
pubproperty.gif
pubstructure.gif
security.gif
static.gif
Item.gif
LastBuild.log
scripts
Search.gif
Splitter.gif
styles
SyncTOC.gif
Thumbs.db
Tutorials
images
_vti_cnf
alpha controls splash.jpg
cntrldsk.jpg
controls splash.jpg
controlsontop small.jpg
cutout small.jpg
img0.jpg
img1.jpg
img1.png
img2.jpg
img2.png
img3.jpg
img3.png
img4.jpg
img5.jpg
interior.jpg
logo.gif
mainsplash.jpg
ontopdesign.jpg
ontopsplash.jpg
ontopwithcntrls.jpg
Thumbs.db
winmedia.jpg
alpha controls splash.jpg
cntrldsk.jpg
controls splash.jpg
controlsontop small.jpg
cutout small.jpg
img0.jpg
img1.jpg
img1.png
img2.jpg
img2.png
img3.jpg
img3.png
img4.jpg
img5.jpg
interior.jpg
logo.gif
mainsplash.jpg
ontopdesign.jpg
ontopsplash.jpg
ontopwithcntrls.jpg
Thumbs.db
winmedia.jpg
SlidingPanes
bin
Debug
Properties
Settings.settings
<%@ Page Language="C#" EnableViewState="False" %>

<script runat="server">
//=============================================================================
// System  : Sandcastle Help File Builder
// File    : FillNode.aspx
// Author  : Eric Woodruff  (Eric@EWoodruff.us)
// Updated : 06/21/2007
// Note    : Copyright 2007, Eric Woodruff, All rights reserved
// Compiler: Microsoft C#
//
// This file contains the code used to dynamically load a parent node with its
// child table of content nodes when first expanded.
//
// This file may be freely used for any purpose including commercial
// applications PROVIDING that this notice and the author's name and all
// copyright notices remain intact.  In addition, altered source versions of
// this file must be clearly marked as such.
//
// This code is provided "as is" with no warranty either express or implied.
// The author accepts no liability for any damage or loss of business that
// this product may cause.
//
// Version     Date     Who  Comments
// ============================================================================
// 1.5.0.0  06/21/2007  EFW  Created the code
//=============================================================================

protected override void Render(HtmlTextWriter writer)
{
    StringBuilder sb = new StringBuilder(10240);
    string id, url, target, title;

    XmlDocument toc = new XmlDocument();
    toc.Load(Server.MapPath("WebTOC.xml"));

    // The ID to use should be passed in the query string
    XmlNode root = toc.SelectSingleNode("//HelpTOCNode[@Id='" +
        this.Request.QueryString["Id"] + "']");

    if(root == null)
    {
        writer.Write("<b>TOC node not found!</b>");
        return;
    }

    foreach(XmlNode node in root.ChildNodes)
    {
        if(node.ChildNodes.Count != 0)
        {
            // Write out a parent TOC entry
            if(node.Attributes["Url"] == null)
            {
                id = node.Attributes["Id"].Value;
                title = node.Attributes["Title"].Value;
                url = "#";
                target = String.Empty;
            }
            else
            {
                id = node.Attributes["Id"].Value;
                title = node.Attributes["Title"].Value;
                url = node.Attributes["Url"].Value;
                target = " target=\"TopicContent\"";
            }

            sb.AppendFormat("<div class=\"TreeNode\">\r\n" +
                "<img class=\"TreeNodeImg\" " +
                "onclick=\"javascript: Toggle(this);\" " +
                "src=\"Collapsed.gif\"/><a class=\"UnselectedNode\" " +
                "onclick=\"javascript: return Expand(this);\" " +
                "href=\"{0}\"{1}>{2}</a>\r\n" +
                "<div id=\"{3}\" class=\"Hidden\"></div>\r\n</div>\r\n",
                url, target, HttpUtility.HtmlEncode(title), id);
        }
        else
        {
            title = node.Attributes["Title"].Value;
            url = node.Attributes["Url"].Value;

            // Write out a TOC entry that has no children
            sb.AppendFormat("<div class=\"TreeItem\">\r\n" +
                "<img src=\"Item.gif\"/>" +
                "<a class=\"UnselectedNode\" " +
                "onclick=\"javascript: return SelectNode(this);\" " +
                "href=\"{0}\" target=\"TopicContent\">{1}</a>\r\n" +
                "</div>\r\n", url, HttpUtility.HtmlEncode(title));
        }
    }

    writer.Write(sb.ToString());
}
</script>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Jeff J Anderson
Software Developer
United States United States
Jeff Anderson has been a computer graphics software developer for over twenty years.
 
He is a co-founder of Braid Art Labs and a developer of Braid's GroBoto 3D software. Jeff also dabbles in shareware with an expanded version of the AlphaForm control and other programs here.

| Advertise | Privacy | Mobile
Web01 | 2.8.140827.1 | Last Updated 5 Oct 2009
Article Copyright 2007 by Jeff J Anderson
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid