Shell.tcl 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # -*- mode: TCL; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
  2. #
  3. # $Id: Shell.tcl,v 1.2 2001/12/09 05:04:02 idiscovery Exp $
  4. #
  5. # Shell.tcl --
  6. #
  7. # This is the base class to all shell widget
  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. #
  16. # type : normal, transient, overrideredirect
  17. #
  18. tixWidgetClass tixShell {
  19. -superclass tixPrimitive
  20. -classname TixShell
  21. -flag {
  22. -title
  23. }
  24. -configspec {
  25. {-title title Title ""}
  26. }
  27. -forcecall {
  28. -title
  29. }
  30. }
  31. #----------------------------------------------------------------------
  32. # ClassInitialization:
  33. #----------------------------------------------------------------------
  34. proc tixShell:CreateRootWidget {w args} {
  35. upvar #0 $w data
  36. upvar #0 $data(className) classRec
  37. toplevel $w -class $data(ClassName)
  38. wm transient $w ""
  39. wm withdraw $w
  40. }
  41. proc tixShell:config-title {w value} {
  42. wm title $w $value
  43. }