LabFrame.tcl 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # -*- mode: TCL; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
  2. #
  3. # $Id: LabFrame.tcl,v 1.2 2001/12/09 05:04:02 idiscovery Exp $
  4. #
  5. # LabFrame.tcl --
  6. #
  7. # TixLabelFrame Widget: a frame box with a label
  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 tixLabelFrame {
  16. -classname TixLabelFrame
  17. -superclass tixLabelWidget
  18. -method {
  19. frame
  20. }
  21. -flag {}
  22. -static {}
  23. -configspec {
  24. {-labelside labelSide LabelSide acrosstop}
  25. {-padx padX Pad 2}
  26. {-pady padY Pad 2}
  27. }
  28. -alias {}
  29. -default {
  30. {*Label.anchor c}
  31. {.frame.borderWidth 2}
  32. {.frame.relief groove}
  33. {.border.borderWidth 2}
  34. {.border.relief groove}
  35. {.borderWidth 2}
  36. {.padX 2}
  37. {.padY 2}
  38. {.anchor sw}
  39. }
  40. }
  41. #----------------------------------------------------------------------
  42. # Public methods
  43. #----------------------------------------------------------------------
  44. proc tixLabelFrame:frame {w args} {
  45. return [eval tixCallMethod $w subwidget frame $args]
  46. }