home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_01_06 / 1n06024a < prev    next >
Text File  |  1990-10-01  |  704b  |  27 lines

  1.  
  2. DOMAINS
  3.  
  4.    % a topic is a keyword, some text, and a collection 
  5.    %   of associated buttons
  6.   topic_type = topic(keyword, topic_text, buttons)
  7.  
  8.    % a collection of buttons is a list of objects of type button
  9.   buttons = button_type*
  10.  
  11.    % a button is an association of a region of the topic text   
  12.    %  and an action to be executed when the button is "pressed"
  13.   button_type = button(region, action)
  14.  
  15.   region = rectangle(row, column, high, wide)
  16.  
  17.   action = show_info_on(keyword) ;
  18.           paste_as_comment(region);
  19.           paste_as_code(region);
  20.           finish_existing;
  21.           show_main_index;
  22.           user_pressed_escape
  23.  
  24.   keyword, topic_text = string
  25.   row, col, high, wide = integer
  26.  
  27.