Click here to Skip to main content
15,893,904 members
Articles / Programming Languages / XML

Adaptive Console Framework - Build Your Console Application on the Fly

Rate me:
Please Sign up or sign in to vote.
3.00/5 (1 vote)
18 Sep 2008CDDL9 min read 31K   286   15  
Introduces the goal and use of the Adaptive Console Framework.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Help Screen Customization</title>
<meta name="GENERATOR" content="WinCHM">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">

</head>

<BODY>
<P><FONT face=Verdana size=2>Developers can customize the help screen generated 
by ACF. In order to customize the banner and help body structure of the help 
screen, please override the <FONT face=Courier 
color=#800000>BannerTemplate</FONT> and <FONT face=Courier 
color=#800000>HelpBodyTemplate</FONT> abstract&nbsp;properties in your provider 
class. In order to customize the syntax line and the description for the option 
contract, please override the <FONT face=Courier color=#800000>Syntax</FONT> and 
<FONT face=Courier color=#800000>HelpText</FONT> abstract properties in the 
contract class.</FONT></P>
<P><FONT face=Verdana size=2>The help screen consist of two parts: Banner and 
HelpBody. The Banner is mainly for displaying the&nbsp;brief information of the 
application. By default, the Banner shows the following elements:</FONT></P>
<UL>
  <LI><FONT face=Verdana size=2>Application Logo (Returned by the overrided 
  <FONT face=Courier color=#800000>Logo</FONT> property in your provider 
  class)</FONT> 
  <LI><FONT face=Verdana size=2>Copyright Information (Defined on the <FONT 
  face=Courier color=#800000>AssemblyCopyright</FONT> property of the entry 
  assembly)</FONT> 
  <LI><FONT face=Verdana size=2>Application Description (Returned by the 
  override <FONT face=Courier color=#800000>Description</FONT> property in your 
  provider class)</FONT></LI></UL>
<P><FONT face=Verdana size=2>And the HelpBody shows the followings:</FONT></P>
<UL>
  <LI><FONT face=Verdana size=2>Syntax line for each option contract 
  (syntax)</FONT> 
  <LI><FONT face=Verdana size=2>Syntax description for each syntax 
  line</FONT></LI></UL>
<P><FONT face=Verdana size=2>For example, the catool application gives the 
following help screen, which is generated by using the default 
format.</FONT></P>
<P><FONT face=Verdana size=2><IMG alt="" src="images/banner_helpbody.png"></FONT></P>
<P><FONT face=Verdana size=2>You can use templates in the <FONT face=Courier 
color=#800000>BannerTemplate</FONT> and <FONT face=Courier 
color=#800000>HelpBodyTemplate</FONT> properties to define your customized help 
screen. You cannot use templates in the <FONT face=Courier 
color=#800000>Syntax</FONT> and <FONT color=#800000>HelpText</FONT> properties, 
however, the <FONT face=Courier color=#800000>Attribute</FONT> and <FONT 
face=Courier color=#800000>OptionAttributes</FONT> protected member in your 
contract class may help you to get the required information while you are going 
to generate your customized syntax lines and syntax description.</FONT></P>
<P><FONT face=Verdana size=2>For more information about templates, please refer 
to the <A href="Template Reference.htm">Template 
Reference</A>.</FONT></P></BODY>
</html>

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 Common Development and Distribution License (CDDL)


Written By
Architect Prosource Development
China China
I have more than 13 years' experience in software development and more than 5 years' working experience in software industry. I'm the National Certified System Analyst and now I'm the consultant of China System Analyst Institution. I also got the MCP/MCAD certificate on .NET technology in the year 2004.
I'm very interested in system architect and analysis, and also interested in .NET technologies. For my blog please refer to http://www.sunnychen.org.

Comments and Discussions