Thread Rating:
  • 347 Vote(s) - 2.73 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page 6: Summary and Extra Practice
06-20-2011, 05:11 PM, (This post was last modified: 06-23-2011, 03:56 PM by ashimo.)
#1
Page 6: Summary and Extra Practice
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



Setting a text style

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

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





Incorporating an image link

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

Code:
{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(, …)}



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.

Code:
{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

Code:
{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.

Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Page 2: Displaying Text and Text Styles ashimo 1 4,590 01-13-2014, 04:01 PM
Last Post: faris
  Page 5: Examining the Program Structure of Images and Links ashimo 0 3,880 06-16-2011, 01:50 PM
Last Post: ashimo
  Page 4: Images and Links ashimo 0 3,501 06-16-2011, 01:41 PM
Last Post: ashimo
  Page 3: Examining the Program Structure of Text Display ashimo 0 3,913 06-16-2011, 01:38 PM
Last Post: ashimo
  Page 1: Creating a Project ashimo 0 3,540 06-16-2011, 01:14 PM
Last Post: ashimo
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('87')