Currently Being Moderated

Try 1: Page 6

VERSION 1

Created on: Dec 10, 2007 3:35 PM by Curl Education - Last Modified:  Jan 3, 2008 4:33 PM by Curl Education

!../../wiki/easy-ide-book/common/images/prev_page.gif! !../../wiki/easy-ide-book/common/images/toc.gif! 

 

 

 

Try 1 Summary

 

 

  • A project groups together related files

  • A Curl applet file contains herald declarations, text, and styles

  • There are predefined text styles for common situations

 

 

 

           

-


           

<font color="#006968">Setting a text style</font>

           

  • Frequently used text styles such as bold and italic are predefined.

   

{text Option 1 = Value, Option 2 = Value, … displayed text}

</font>            

-


           

 

 

 

           

-


           

<font color="#006968">Incorporating an image link</font>

           

  • The IDE help documents let us acquire information about the Curl language.

   

{image
     source = {url path to image file}
     (, …)  ||When options are to be specified, describe them delimited with “,”.
 }
 {link href = {url path to link destination}, linking text(, …)}

</font>            

-


           

 

 

Try 1: Extra Practice

 

 

Practice Problem 1: Basics

 

 

Without using the text style, create a program that produces the same result as that shown below.

 

{curl 6.0 applet}
{curl-file-attributes character-encoding = utf8}
{applet manifest = manifest.mcurl,
    {compiler-directives careful? = true}
}
{text
    font-weight = bold,
    text-underline? = true,
    font-style = italic,
    We’re studying Curl programming!
}

Hint: Use predefined text formats.

 

Solution

 

 

Solution Program: c:\Curl\Try1\03_exercise1\start.curl

{curl 6.0 applet}
{curl-file-attributes character-encoding = utf8}
{applet manifest = manifest.mcurl,
    {compiler-directives careful? = true}
}
{bold
    {underline
      {italic
        We’re studying Curl programming!
      }
    }
}

 

 

 

Explanation

The created program uses the predefined text formats to display text on the screen.

 

 

 

!../../wiki/easy-ide-book/common/images/toc.gif!

Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...