home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / FERRAMEN / QD_HELP / QDHLPSRC.ZIP / TMACRO.QDH < prev    next >
Encoding:
Text File  |  1994-03-28  |  1.1 KB  |  52 lines

  1. //
  2. // topicmacro command
  3. //
  4.  
  5. /topic TOPICMACRO_COMMAND,WIN31
  6.  
  7.     /title The /topicmacro command
  8.     /keywords /topicmacro;commands
  9.     /browse commands,AUTO
  10.  
  11.     /para 
  12.       /text \b\i\fs40,The /topicmacro command {\i0\cf0 (Win 3.1)}
  13.     /endpara
  14.  
  15.     /para \sa150
  16.       The /topicmacro command has the following syntax:
  17.     /endpara
  18.  
  19.     /para \sa150
  20.       /text \b\f3,/topicmacro macro1[;macro2...]
  21.     /endpara
  22.  
  23.     /para \sa150
  24.       The /topicmacro command is used to cause a macro to be run when
  25.       a topic is activated via a hotspot, etc.  In this way you can cause
  26.       a macro to be run when a topic is selected.
  27.       Select this to see an
  28.       /link TOPICMACRO_EXAMPLE,Example
  29.     /endpara
  30.  
  31.     /para \sa150
  32.       /text \b,Command Placement
  33.     /endpara
  34.  
  35.     /para
  36.       This command must be placed after the /topic command
  37.       but before any /para command.
  38.     /endpara
  39.  
  40. /endtopic
  41.  
  42. /topic TOPICMACRO_EXAMPLE
  43.  
  44.     /topicmacro about()
  45.  
  46.     /para
  47.       This is an example. Notice how the About box came up when you 
  48.       chose this topic!  That was a /topicmacro running
  49.     /endpara
  50.  
  51. /endtopic
  52.