tlaTouchBuffer
Mark Non-System Read-Write Buffers as Modified CodeWright® - API Macro - Royalty Free - Send Comments |
PurposeMark Non-System Read-Write Buffers as Modified. OperationConsider an environment that has tlaEventSaveBuffer installed and the Write on change of focus option is set. In such an environment we find it convenient to work on multiple modules at a time leaving them loaded in CodeWright buffers sometimes for many days. The date/time stamp in each module will indicate when it was last updated. When it comes time to publish the set of modules it is almost mandatory that the date/time stamp in all modules be close to the same. To do this, issue tlaTouchBuffer (in our systems it is assigned to two buttons) and then click on the screen anywhere outside CodeWright. If you want to just force the update of selected documents, select the document and issue tlaTouchBuffer("cur") instead of tlaTouchBuffer("all"). tlaTouchBuffer will only set a buffer to "modified" if it is not a system buffer, not a read-only buffer, and not already marked as modified. Example
Input Parameters
Return Codes
ReferenceThis function calls tlaError. CompatibilityCurrent version verified under:
CodeWright for .NET RestrictionNone. 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. tlaTouchBuffer 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 |