TXF_TOOLBAR

Enable the display of a toolbar. By default the toolbar is two rows high and contains all of the objects shown in the screen shot below. (A ruler is also shown here, although it is enabled via the TXF_RULER flag.

You can reduce the toolbar display to just the first or second row, and you can also remove each of the objects (individually or in related groups) via flags in the TXC.TOOLBARMASK field of the txtctl parameter. For example, if you want to limit editing to plain text, you will probably want to remove the buttons and drop-down boxes related to character and paragraph attributes. And unless you want to allow the user the freedom to perform their own file operations (new, open, save, print, etc.) then you would probably want to remove those icons as well. See TXF_STATUS for a screen shot of a stripped-down toolbar.

See Trapping Toolbar Commands for additional information on intercepting mouse clicks on certain toolbar icons so that the application can handle them.