home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / languages / tcl / !tcldoc / doc / w / w_bar next >
Encoding:
Text File  |  1996-01-14  |  671 b   |  18 lines

  1. .SH NAME
  2. w_init \- put an icon on the iconbar.
  3. .SH SYNOPSIS
  4. \fBw_bar \fR?\fB-menu \fImenudescription\fR? ?\fB-click \fIscript\fR? ?\fB-drag \fIscript\fR?
  5. .BE
  6.  
  7. .SH DESCRIPTION
  8. .PP
  9. Puts an icon from the wimp icon pool called !\fIprogname\fR on the icon bar. 
  10. This can provide a menu, a script that is run when the icon is clicked on,
  11. and a script that is run if something is dragged to the icon.
  12.  
  13. Before the click script is interpreted \fB%b\fR is set to a button description
  14. string of the form \fBa\fR|\fBs\fR?\fBS\fR??\fBC\fR?. 
  15.  
  16. Before the drag script is interpreted \fB%t\fR is set to the file type in
  17. decimal. The global variable \fBw_file\fR is set to the file name.
  18.