DtlList.tcl 1002 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # -*- mode: TCL; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
  2. #
  3. # $Id: DtlList.tcl,v 1.2 2001/12/09 05:04:02 idiscovery Exp $
  4. #
  5. # DtlList.tcl --
  6. #
  7. # This file implements DetailList widgets
  8. #
  9. # Copyright (c) 1993-1999 Ioi Kim Lam.
  10. # Copyright (c) 2000-2001 Tix Project Group.
  11. #
  12. # See the file "license.terms" for information on usage and redistribution
  13. # of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  14. #
  15. tixWidgetClass tixDetailList {
  16. -classname TixDetailList
  17. -superclass tixScrolledGrid
  18. -method {
  19. }
  20. -flag {
  21. -hdrbackground
  22. }
  23. -configspec {
  24. {-hdrbackground hdrBackground HdrBackground #606060}
  25. }
  26. -alias {
  27. {-hdrbg -hdrbackground}
  28. }
  29. -default {
  30. {*grid.topMargin 1}
  31. {*grid.leftMargin 0}
  32. }
  33. }
  34. proc tixDetailList:FormatCmd {w area x1 y1 x2 y2} {
  35. upvar #0 $w data
  36. case $area {
  37. main {
  38. }
  39. default {
  40. $data(w:grid) format border $x1 $y1 $x2 $y2 \
  41. -filled 1 \
  42. -relief raised -bd 1 -bg $data(-hdrbackground)
  43. }
  44. }
  45. }