Applies to: posted in the Clarion 5.5 Enterprise group; ABC and Clarion template families (the example registers for both).
Problem
A developer wanted his own text for the message a ToDo procedure shows. He found the text in the big CASE statement of StandardWarning in STDFUNC.TPW, next to #EMBED (%BeforeStandardWarningCase, 'Before Standard Warning'), HIDE. The embed is not offered among the global embeds in the IDE, and he did not want to recode the rest of the procedure.
Solution
-
A ToDo is a procedure template. Write your own and make it the default. In a new .TPL file in the template directory:
#Template(Test,'Test'),Family('ABC','CLARION') #PROCEDURE(MyToDo,'Procedure not yet defined'),DEFAULT %Procedure PROCEDURE Window WINDOW('Caption'),AT(,,260,100),GRAY ...
The body is a small window with an OK button, a CODE section that opens it, runs an ACCEPT loop, and ends with GlobalResponse = RequestCancelled. Edit the window with Ctrl+F as usual.
2. Register the template. It can then be chosen instead of the standard ToDo when creating an application.
Caveats
- A first reply suggested a SPLASH procedure called from the embed of every ToDo; the poster rejected it because it means hand-coding each ToDo.
- A second poster believed the message text itself sits in the TRN file; the thread did not follow that up.
- The poster wrote "That worked great" for the template route.
Today (2026)
Writing and registering a procedure template is still how templates are extended; not re-tested for this case on a current build.
Sources: Steve R. (May 2002, the question), Jerome A. (May 2002), Ole-Morten H. (May 2002) in softvelocity.products.c55ee.