![]() |
tlaButton
Process Enhanced Button Actions CodeWright® - API Macro - Royalty Free - Send Comments |
PurposeProcess Enhanced Button Actions. This function adds new capabilities to CodeWrightn. This function is designed to be assigned to multiple buttons. OperationAvail When tlaButton("avail") is invoked, an error message is dispalyed in the message area and the system console beeps. Comp If the Compact button is struck in the distributed version of CodeWright the active window will be placed in Compact mode if Routines has been run against the buffer. If you strike the button a second time, nothing happens. To return to Normal mode you must hit the Esc key. When tlaButton("comp") is invoked it checks the current mode of the display and if it is in Compact mode it is set to Normal and if in Hexadecimal or Normal mode it runs Routines and then sets the display to Compact. You can continue to use the Starbase (Routines function) and (Esc key) if you prefer. With tlaButton("comp") assigned to a button, strike the button ...
Hex If the Hex button is struck in the distributed version of CodeWright the active window will be placed in Hexadecimal mode. If you strike the button a second time, nothing happens. To return to Normal mode you must hit the Esc key. When tlaButton("hex") is invoked it checks the current mode of the display and if it is in Hexadecimal mode it is set to Normal and if in Compact or Normal mode it is set to Hexadecimal. You can continue to use the Starbase (Esc key) if you prefer. With tlaButton("hex") assigned to a button, strike the button ...
Line or Numb tlaButton("line") or tlaButton("line") toggles the display of line numbers in the current buffer. If the line numbers are shown in the current buffer they are hidden. If the line numbers are hidden in the current buffer they are shown. Tab tlaButton("tab") toggles the display between the "new" Tabbed mode and the traditional MDI mode. Vis tlaButton("vis") toggles the display of invisible characters in the current buffer. If the invisible characters are shown in the current buffer they are hidden. If invisible characters are hidden in the current buffer they are shown. WYSIWYG tlaButton("wysiwyg") toggles the display of WYSIWYG "toolbar" in the current buffer. If the "toolbar" was not originally displayed it is made visible (just as if you had hit an F5 key). If the "toolbar" is displayed the "change bit" is checked in the buffer. If the "change bit" is on you are prompted for permission to write the buffer to disk. The "toolbar is then made invisible. Note that the DLL version of this function will maintain the window size and location in addition to the cursor position within the window. This functionality is (unfortunately) not available in the API macro version. Example
Input Parameters
Return Codes
ReferenceThis function calls tlaError. CompatibilityCurrent version verified under:
CodeWright for .NET RestrictionOnly "avail" and "vis" are supported by CodeWright for .NET. InstallationThere are three primary methods for installing this macro on your system. Method A uses the tlaMDE tool available for purchase from this website. Method B manipulates the macro repository directly. Method C uses the API Macro... tool provided in every copy of CodeWright (but not CodeWright for .NET). Method A - tlaMDE - CodeWright or CodeWright for .NET
Method B - Copy to Repository - CodeWright or CodeWright for .NET
Method C - API Macro ... - CodeWright Only
PurchasetlaTools is a Dynamic Link Library that contains most of the API macros on this website in a single easy to install package. The tlaTools DLL can be purchased by selecting the Buy button on this page. tlaButton is included as a function in tlaTools.
|
Copyright © 1993-2005 Thom Little Associates, Ltd. revised One Central Square, Keene, NH 03431-3787 phone 603-357-7567 |