Applies to: ABC, coming from Legacy; posted in the comp.lang.clarion group; the thread names no build.
Problem
In legacy the original poster used these lines to run a procedure without showing its window:
0{prop:hide} = true
post(event:accepted,?button)
The button runs code and then ends by posting EVENT:CloseWindow. In ABC the window still showed. He asked which embed point to use.
Solution
- To find the ABC equivalent of a legacy embed, click the Legacy button to show the legacy embeds and put the code where it would go in Legacy.
- In the application tree right-click the procedure and choose Source. All possible embed points are generated.
- Find your code, note the priority numbers just above and below it, then go up to the first ABC embed you reach. Move the code into that embed and adjust its priority into the noted range.
- In this case the original poster found his code sat before
SELF.Open(Window); it belongs after it. - A second poster added:
0{PROP:Hide}can be set right after the window opens, but leave thePOST(EVENT:Accepted, ?Button)until after EVENT:OpenWindow has fired.
Caveats
- The original poster reported the problem found and said the second advice made sense; he did not post the final code.
- The thread does not name the embed point he finally used for the POST.
Today (2026)
Not re-tested. The compare-with-legacy-source technique is likely still usable on current builds.
Sources: Johan (Jun 2012, the question), Stamos (Jun 2012), Mike H. (Jun 2012) in comp.lang.clarion.