Key Item Example - part 3

Part of the "Working With QuSheet" tutorial for QuSheet   
Part of the "Working With QuSheet" tutorial for QuSheet   
 
 
     
Summary   
    
Starting by looking at the output generated at the end of the last tutorial, note how everything lines up, with decimals lining up on decimal point and integer comma delimiters, and explanatory text all beginning at the same place.    
    
Explanations are either provided as part of the Heading or Sheet entry (as in the case of the fields for Materials and Size), or may be set by QuSheet by default to the name of the Table or Heading being used (this default behaviour is set using Styles).    
    
A new style called “currency” is defined to set how currency should be displayed – in this case, using the operand tab, a prefix unit (left aligned) showing a “$”.    
    
A second style called “quantity” is set up the same way, this defines the postfix unit “tiles”.    
    
The style “currency summary”, set up as an override to the “currency” style, builds on the “currency” style by removing the display of an operator (since at the top level the addition of a list of tile prices is implied).    
    
Having defined the Styles, the style setting of various Heading and Sheet entries is set to point to them (so that they are used).    
    
The top, summary line, of the output is now changed to use a Heading called “total price headline”, which uses formatted text operations to build a paragraph which contains the final value in a more user-friendly fashion, rather than simply having a line saying “15,500 total price”.    
    
The value in this paragraph is styled using a “currency headline” style, built on “currency”, with a different background colour to highlight the amount.    
    
“Total price headline” is placed in the explanation part of the Sheet entry and styled with a new style called “top line” which suppresses the display of the “15,500” appearing before the explanation.    
    
Adding a Farewell message to the sheet, using a Table with fixed text rather than a Heading with variable text (as was the case for the Greeting message), finishes this part of the tutorial.    
 
 
Summary   »  
 
     
View (duration 11m10s)   
        
      
 
 
You will need to view this page on a non-handheld screen to see the presentation.   
 
     
Addenda / Errata   
 
 
Addenda / Errata   
 
     
index previous next    
 
 
index previous next    
 
 

 « Summary

Starting by looking at the output generated at the end of the last tutorial, note how everything lines up, with decimals lining up on decimal point and integer comma delimiters, and explanatory text all beginning at the same place.    

Explanations are either provided as part of the Heading or Sheet entry (as in the case of the fields for Materials and Size), or may be set by QuSheet by default to the name of the Table or Heading being used (this default behaviour is set using Styles).    

A new style called “currency” is defined to set how currency should be displayed – in this case, using the operand tab, a prefix unit (left aligned) showing a “$”.    

A second style called “quantity” is set up the same way, this defines the postfix unit “tiles”.    

The style “currency summary”, set up as an override to the “currency” style, builds on the “currency” style by removing the display of an operator (since at the top level the addition of a list of tile prices is implied).    

Having defined the Styles, the style setting of various Heading and Sheet entries is set to point to them (so that they are used).    

The top, summary line, of the output is now changed to use a Heading called “total price headline”, which uses formatted text operations to build a paragraph which contains the final value in a more user-friendly fashion, rather than simply having a line saying “15,500 total price”.    

The value in this paragraph is styled using a “currency headline” style, built on “currency”, with a different background colour to highlight the amount.    

“Total price headline” is placed in the explanation part of the Sheet entry and styled with a new style called “top line” which suppresses the display of the “15,500” appearing before the explanation.    

Adding a Farewell message to the sheet, using a Table with fixed text rather than a Heading with variable text (as was the case for the Greeting message), finishes this part of the tutorial.    

-> output produced by QuSheet, licenced to "Richard Develyn", 15 Oct 2009 130|1|24094