Windows tcl gui builder


















There are a few types of applications for which Tcl is not an ideal fit. In particular, applications with sophisticated graphics or printing needs are not good candidates for Tcl. Nevertheless, note Tcl can still be used productively in such applications as the "glue" language that drives and automates the core application engine. Tcl is covered under the very liberal open source BSD license. This means Tcl and its associated libraries can be used in all applications, including commercial ones.

The ActiveState distribution also contains a Windows Help CHM file that includes not only the core documentation but also documentation for various extensions and libraries. See the online Tcl tutorial. In addition, the Tcler's Wiki provides tutorials, explanations and sample code in all areas. It is also an excellent jump point to the various Tcl resources on the net. You can get questions answered on the comp. Commercial support is available from ActiveState.

There are several distributions of Tcl that consist of a single executable file. These distributions also support binding your applications scripts within the executable so that your entire application itself can be distributed as a single executable. The most commonly used ones are tclkit and freewrap. You can also create your own versions from the KitCreator site. Pre-built executables are available from rkeene.

Windows distinguishes between console mode and graphical interface programs. Tcl distributions correspondingly come with two different programs, tclsh. The former is used for scripts that run in console mode and the latter for applications with a graphical user interface, generally based on Tk. Depending on the actual Tcl distribution being used, the executables may be named differently, for example tclsh86t.

To run the Tcl interpreter, so that you can interactively invoke Tcl commands, simply type in the name of the appropriate executable. This will display a Tcl shell prompt where you can type in commands.

To run a console script, invoke the tclsh. Any additional arguments on the command line are passed as a list to the script in the argv global variable. Windows can associate a file with an application so that typing the name of the file will result in the application being invoked.

During its install, the ActiveState distribution gives the user the option to associate files ending in. If you are not using this distribution, or you want to associate the. In addition, if you want to run the script from the command line simply by typing its name, add the extension to the PATHEXT environment variable.

You may wish to associate separate extensions, for example. In order to run a Tcl script by double-clicking the script file, the file type must be associated with the Tcl shell.

See the previous entry in this FAQ. As an alternative to making. For example, assume printargs. See an explanation of the above and more sophisticated versions in the Tcl wiki.

On startup, tclsh. Some tasks can be accomplished from Tcl by invoking external programs or through the use of a Tcl extension example. If you are writing a one-off script with limited use or the command is rarely invoked, using an external program might be sufficient. In other cases, use of an extension is likely to be beneficial. It is generally much faster and also protects against the external program not being available or installed on the target system this is true even for Windows components and differences arising from localization.

Tcl provides the registry command for doing various operations on the Windows registry. You will need to load the registry package first:. Additional information is provided in the Windows environment variables which can be accessed via the global env array. The TkPrint or Printer extensions may be used for printing under Windows. Tcl provides the exec command for starting new processes. The following commands all start a copy of notepad:. Line 1 assumes notepad. Line 2 explicitly specifies the path to the program.

Line 1 returns the path to notepad. Line 3 returns the command line to invoke an internal cmd. For additional control over the child process, such as its display properties, security attributes, priority etc.

Use the Tcl open command to open a pipe by prefixing the child process command line with a character. To start up an application associated with a file or URL, invoke the Windows cmd.

For example,. The Windows Explorer Shell associates certain actions that can be carried out on a document based on its file type. These actions, such as Open , Edit , Print can be invoked from the right-click menu in Explorer. The following will use the default action Open to start editing the file with Microsoft Word.

Windows Vista and later versions implement User Account Control UAC under which even processes belonging to privileged accounts run with reduced privileges unless explicitly elevated by the user. As an alternative, you can invoke the Windows command line program taskkill. Hence when used in a literal it needs to be doubled:. You can either use the Tcl glob command to read a directory and poll for changes or use the TWAPI extension as shown in the session below.

Both methods have their advantages and disadvantages. Polling can be expensive as the entire directory tree has to be read and compared. On the other hand, notifications are not guaranteed to be delivered under load. Reliability is particularly an issue with remote file systems.

You may wish to use a combination of the two methods depending on the application. This command will print a line whenever an executable. The vwait command is required in this small example as notifications require the Tcl event loop to be running.

It invokes the supplied callback whenever a device volume change event occurs. The callback can filter for the events of interest based on the parameter supplied to it. For example, the above console session shows the insertion and removal of a USB pen drive Lines 6 and 8 followed by the removal and insertion of a new CD Lines 10 and The tclstorage extension provides access to Microsoft's structured storage format.

The code below will create a shortcut on the desktop to notepad. Windows hotkeys are a means to invoke actions in an application irrespective of which application has the keyboard focus. Run the example below in a DOS window. Ctrl-Alt-F11 will start a copy of notepad no matter which application has the foreground. Ctrl-Alt-F12 will stop the script. The Snack extension is a complete and powerful cross-platform package for audio generation, playback, recording and analysis.

See the Snack tutorial for examples. If you are also using Tk , use the clipboard command to read and write the clipboard. Since HTML format is not a standard predefined clipboard format, Line 2 of the example first gets the format identifier associated with it. Tcl's built-in dde package allows Tcl scripts to act as a DDE client or server.

Application and calling methods on it. You can find documentation on MSDN. Automation or integration with Office can be accomplished using any of the COM extensions mentioned above. For documentation on the objects and methods exposed by Office, follow the links on the Office developer page. The tdbc package shipped as part of the core Tcl 8. In addition to the reference pages in the Tcl documentation, an online introduction is available. Either method requires one of the Tcl COM extensions.

Updates continue to appear, with a formal release currently planned for February Description: Code-Navigator is a source code navigating, analysis and developing tool. With Code-Navigator, you can edit your source code. Further more you can browse and navigate through it using the components provided with the tool, like the Retriever and Class Browser.. Features include syntax highlighting, ability to add many tools and help files, braces matching with display, auto-indentation, etc.

It has some bug fixes for original V3. Richard Hipp Originally written in the 90's for Tk About lines. Mentioned in the Tcl Chatroom on No user manual exists yet. Requires Tix 4. Tcl is supported through the EclipseDLTK plugin, offering synatax coloring, code folding, autocompletion, integration with TclDevKit syntax checker, etc.

It lets you edit 'projects', consisting of groups of chunks of text. It has support for primitive data-flow diagrams, generates EPS files from the diagrams, and uses emacs style key-bindings. The first URL above is not there, and the version downloadable from the second appears to be corrupt.

Has a 30 day free evaluation period. Features a pluggable architecture supporting compilers including JDK 1. Features file status indicator, syntax coloring, etc. A free lite version with a 10 Java file limit is available. You can edit, run, and debug applications in many different computer languages. It is very extensible and programmable. XEmacs is a variant of Emacs that some people prefer. The only real down side is that the extension language is Lisp.

Emacspeak is built on top of Emacs. With emacspeak loaded, Emacs provides spoken feedback for everything you do. Emacspeak currently supports the new Dectalk Express speech synthesizer, as well as older versions of the Dectalk e. Features include syntax highlighting, auto-completion, code browsing, auto-indentation, etc.

Currently v5. It was developed to provide a small and fast IDE, which has only a few dependencies from other packages. Designed as a general purpose text editor, gedit emphasizes simplicity and ease of use. It includes tools for editing source code and structured text such as markup languages. Currently at version 1. IPEnv does not work with projects. Currently at version Beta 1.

Plugins currently exist for editing files on FTP servers, browsing Java source, code completion, compilation, one-click compiler error go to, and much more.

Applications include an abbreviation manager jabbrevs , a multi-font help viewing system jdoc , a extensible multi-font, multi-mode text editor jedit - includes some vi-like bindings , a tool supporting multilingual text msg management jldb , a graphical analogue to more jmore , a preferences manager jprefs , plus numerous other support tools and demonstration programs.

Note that there are a large number of useful procedures that come as a part of this package including a set of rich text management procedures, as well as ones to save tagged and marked text to a file and restore it, as well as arbitrary metadata, also saving to HTML, TeX, PostScript. Includes an editor, debugger, integrated Syntax check There is a free version of the editor, called ''Komodo Edit''.

It provides an intuitive GUI including toolbars, line numbering, file list box, etc. Nice Program with added features, like a toolbar. User extensible via its own built in scripting language, no Lisp involved. Cross platform in existance since Currently at version 7. Supports various writing systems, directional writing, specific text associations with particular languages, user modifiable writing rules, use of a standard keyboard, co-mingling of 1 and multi byte character sets.

MtScript is freely available for non-commerical, non-military purposes. Note that the edit widget itself is stand-alone so that you can use it in other applications. Also, mxedit. Updated: Contact: mailto:inhak. Updated: Contact: mailto:np2 doc. Includes built-in syntax highlighting for a number of languages including Tcl.

The editor itself does not use Tcl. It also has ''almost'' i18n support. Embedded Perl and embedded Tcl are provided, but they cannot both be used in the same build. Oriented around the concept of book a directory , section subdirectory and page text file. Provides a command line like vi. Supports table formating, an index generator, filtering, links between pages. Latest version not available at this URL - email the contact for availability.

Updated: Contact: mailto:leen bio PSPad has the features and functionality of most professional, commercial editors and even a few they wish they had. I can't even begin to list the features of this program, so I won't. Suffice it to say that if your favorite editor has a feature that you just can't live without, it's probably available in PSPad.

Check out the website, and the program. You'll be glad you did. It incorporates a text editor, software project aka makefile editor and enables you to develop and build your packages within a single program. It can start an external debugger, and execute almost any external text program, putting its output into a specialized PVM text window.

It looks like a Microsoft MDI application. Requires Unix, X, Tk 4. Scintilla is a free source code editing component. It comes with complete source code and a license that permits use in any free project or commercial product. Tcl and IncrTcl fully supported. Currently at Version 6. Includes code parsers, a symbol hierarchy browser, source code editor, retriever, code metrics, and more.

The doc is in French with menus in English. Text selections including rectangulars can be piped through filters, search and replace using regular expressions, multilevel undo and redo, colorisation and many other features. Works with tk8. And it's the only collaborative one you can actually use.

By combining the ease of Bonjour with the world's best text collaboration engine, it makes working together not only possible but even fun The tau that can be found is not the real tau, I guess Does automatic word wrap, paragraph reformatting, Emacs like bindings, cut and paste, Postscript printing, and a virtual keyboard.

Provides multi-file editor with syntax indenting, highlighting, find functions, CVS control interface, simple project support, printing fast file navigation. Currently at v. Tdb has syntax highlighting for C and Tcl, undo, change fonts colors, etc. Written entirely in Tcl.



0コメント

  • 1000 / 1000