StdShell.tcl 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # -*- mode: TCL; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
  2. #
  3. # $Id: StdShell.tcl,v 1.2 2001/12/09 05:04:02 idiscovery Exp $
  4. #
  5. # StdShell.tcl --
  6. #
  7. # Standard Dialog Shell.
  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 tixStdDialogShell {
  16. -classname TixStdDialogShell
  17. -superclass tixDialogShell
  18. -method {}
  19. -flag {
  20. -cached
  21. }
  22. -configspec {
  23. {-cached cached Cached ""}
  24. }
  25. }
  26. proc tixStdDialogShell:ConstructWidget {w} {
  27. upvar #0 $w data
  28. tixChainMethod $w ConstructWidget
  29. set data(w:btns) [tixStdButtonBox $w.btns]
  30. set data(w_tframe) [frame $w.tframe]
  31. pack $data(w_tframe) -side top -expand yes -fill both
  32. pack $data(w:btns) -side bottom -fill both
  33. tixCallMethod $w ConstructTopFrame $data(w_tframe)
  34. }
  35. # Subclasses of StdDialogShell should override this method instead of
  36. # ConstructWidget.
  37. #
  38. # Override : always
  39. # chain : before
  40. proc tixStdDialogShell:ConstructTopFrame {w frame} {
  41. # Do nothing
  42. }