home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / maths / plplot / plplot_2 / drivers / tk / help_keys. < prev    next >
Encoding:
Text File  |  1994-05-26  |  1.6 KB  |  58 lines

  1. # $Id: help_keys.tcl,v 1.4 1994/05/26 19:23:20 mjl Exp $
  2. # $Log: help_keys.tcl,v $
  3. # Revision 1.4  1994/05/26  19:23:20  mjl
  4. # Inserted missing CVS Id and Log fields.
  5. #
  6. #----------------------------------------------------------------------------
  7. # help_keys w
  8. #
  9. # Create a top-level window that displays info for On keys.. help item.
  10. # Maurice LeBrun, IFS
  11. # Adapted from mkStyles.tcl from widget demo.
  12. #
  13. # Arguments:
  14. #    w -    Name to use for new top-level window.
  15. #----------------------------------------------------------------------------
  16.  
  17. proc help_keys {{w .help_keys}} {
  18.     catch {destroy $w}
  19.     toplevel $w
  20.     dpos $w
  21.     wm title $w "Help on keys"
  22.     wm iconname $w "help_keys"
  23.     normal_text_setup $w 
  24.  
  25.     insertWithTags $w.t {\
  26. When a plframe widget has the input focus, keyboard input is relayed to
  27. its remote TK driver.  The default actions of the keyboard handler are as
  28. follows:
  29.  
  30. "Q"                Terminate program
  31. <Return> or <Page Down>        Advance to the next page
  32.  
  33. The user code can supply its own keyboard handler, and thereby add to
  34. or modify these actions (this is in fact what is done by plrender).
  35.  
  36. } normal     
  37.     insertWithTags $w.t {
  38. plrender} bold
  39.     insertWithTags $w.t {\
  40.  supports the following additional set of actions:
  41.  
  42. <Backspace>
  43. <Delete>    Back page
  44. <Page up>
  45.  
  46. +<n><Return>    Seek forward <n> pages.
  47. -<n><Return>    Seek backward <n> pages.
  48.  
  49. <n><Return>    Seek to page <n>.
  50.  
  51. Both <Backspace> and <Delete> are recognized for a back-page since the
  52. target system may use either as its erase key.  <Page Up> is present on
  53. some keyboards (different from keypad key).  
  54. } normal
  55.     $w.t configure -state disabled
  56.     $w.t mark set insert 0.0
  57. }
  58.