home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / FERRAMEN / QD_HELP / DEFORMAT.QDH < prev    next >
Encoding:
Text File  |  1994-01-26  |  2.7 KB  |  99 lines

  1. //
  2. // defformat command
  3. //
  4.  
  5. /topic DEFFORMAT_COMMAND
  6.  
  7.     /title The /defformat command
  8.     /keywords /defformat;commands
  9.     /browse commands,AUTO
  10.  
  11.     /para \fs40\b\i
  12.       The /defformat command
  13.     /endpara
  14.  
  15.     /para 
  16.       The /defformat command has the following syntax:
  17.     /endpara
  18.  
  19.     /para 
  20.       /text \b\f3,/defformat format commands
  21.     /endpara
  22.  
  23.     /defformat \sa100 \cf9
  24.  
  25.     /para 
  26.       The /defformat command allows you to set the default format for the
  27.       entire document.  The format commands can be text formatting commands.
  28.       This format will be applied to all text in the document.  
  29.     /endpara
  30.  
  31.     /para 
  32.        If the /defformat command is used inside of a /topic then the format
  33.        will only be used for that topic.  If there is a document wide format
  34.        a topic format will override the document format.  You will notice 
  35.        that this topic is a different color from the rest of the topics.
  36.        This was caused using a /defformat command in this topic to change
  37.        the text color.  The actual command is given below.
  38.     /endpara
  39.  
  40.     /para 
  41.       /text \b,Example:
  42.     /endpara
  43.     /para
  44.       /text \b,/defformat \\cf9
  45.     /endpara
  46.  
  47.     /para \sa100
  48.       Once a /defformat is in place all text in the document will have
  49.       those formatting attributes applied to it.  You can, however, 
  50.       override the /defformat commands.  For example, if you set the 
  51.       defformat to the following:
  52.     /endpara
  53.     /para
  54.       \//defformat \\fs20\\cf5
  55.     /endpara
  56.     /para
  57.       This sets the font size to 20 and the foreground color to color 
  58.       number 5 for the whole document.  Now, if inside a topic you use
  59.       another /defformat command
  60.     /endpara
  61.     /para
  62.       \//topic
  63.     /endpara
  64.     /para
  65.       \//defformat \\fs40
  66.     /endpara
  67.     /para
  68.       \//endtopic
  69.     /endpara
  70.     /para
  71.       You will override the document font size of 20 with a font size of
  72.       40, but since you did not change the foreground color it will remain
  73.       color 5.
  74.     /endpara
  75.     /para
  76.       Using this information it is possible to lay out your /defformat  
  77.       so as to make your help writing as easy as possible.  If most of 
  78.       your paragraphs in a topic need a space of 100 after them but some
  79.       need as space of 0,  set your /defformat in the topic as follows:
  80.     /endpara
  81.     /para
  82.       \//defformat \\sa100
  83.     /endpara
  84.     /para
  85.       Now on the paragraphs that need 0 space do the following:
  86.     /endpara
  87.     /para
  88.       \//para \\sa000 
  89.     /endpara
  90.     /para
  91.       \//endpara
  92.     /endpara
  93.     /para
  94.       This will cause this single paragraph to have no spacing after it,
  95.       which is just what we wanted.
  96.     /endpara
  97.  
  98. /endtopic
  99.