A '''megawidget''' is a [widget] that is implemented in [Tcl], not in [C]. It should behave according to the principles set out by the standard Tk widgets, being able to be manipulated by invoking methods on its pathname, being constructed in the standard way, supporting [options] through '''configure''' and '''cget''' methods, participating in [geometry management], [focus] traversal, [bind%|%event handling], etc. ** See Also ** [What is a Megawidget]: [Composite fields megawidgets]: a code snippet for specifying composite fields [Useful Tk Widgets]: a catalog of widgets and megawidgets [Adding User Data to Widgets the Megawidget Way]: [Mumbling over a mega widget framework]: [A New Megawidget Library]: a discussion about political strategy for organizing a megawidget project ** Description ** [snit] provides a framework for creating megawidgets. I don't know whether there are any megawidgets actually in there, but certainly people are using the snit code to build them. ** Libraries ** [Agentk Widgets]: fade ,ticket ,navigation bar ,roll ,anthropomorphic [BLT]: table, graph, barchart, tree, tabset, htext etc. [BWidget]: a popular widget library [incr Widgets]: based on [incr Tk] [Iwidgets]: based on [incr tcl] [MegaWidget package]: combobox , [obTcl]: fully-transparent Tk megawidgets [mkWidgets]: a widget framework, but comes with some demonstration widgets [Tix]: [Tklib]: community-maintained library of Tk [widgets] and utilities ** Examples ** [Namespace MegaWidgets] ,by [NEM]: someone in the [Tcl Chatroom] for a simple example of a megawidget [overloading widgets] ,by [RS]: ** Tools ** [megawidget framework with tclOO (1)]: [MIT otcl megawidget system]: a simple otcl megawidget system [Snit's Not Incr Tcl]: often used for creating megawidgets [XOWidget]: a widget class for [XOTcl] ** Misc ** [LV]: there are certainly examples here on the wiki of [snit] widgets. Perhaps the authors would consider working with the tklib maintainers to have them incorporated into tklib? What about other widgets or procs that would provide a Tk developer useful tools? Any authors of such software willing to visit http://tcllib.sf.net/ and submit Feature Requests to have your software included? Anyone a fan of any specific Tk related procs/packages that would be useful for developing Tk applications? You could contact the author to see if they would be willing to allow their code to be included in tklib. ---- [NEM] 2004-02-26 [http://wiki.tcl.tk/_/revision?N=1777&V=36%|%1]: I am currently working on a [CSS] parser, which will then lead on to work to create CSS megawidgets based around the text widget and the canvas (which is more work, and so much longer term). The CSS parser is pure Tcl, should be finished some time in the next month (it probably has about 2 days more work left + testing, but finding the time...), and I will be submitting it for inclusion in [tcllib] when finished. The megawidgets will probably be written using [snit], and might find their way in to [tklib] at some point. Combined with [tdom] or [TclXML] these might make a decent alternative to [tkhtml] with support for more recent (XML-based) web standards. Much work to do though. <> Glossary | GUI | Widget