From e73e4cf98daec92e4c4214ff02c745e86cdfa3db Mon Sep 17 00:00:00 2001 From: Steve Fryatt Date: Sat, 25 Dec 2021 14:01:30 +0000 Subject: [PATCH] Use b% instead of block% in PROCmenu_selection(). --- Chapters/ch01-an-example-application.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chapters/ch01-an-example-application.xml b/Chapters/ch01-an-example-application.xml index e47357b..3aee825 100644 --- a/Chapters/ch01-an-example-application.xml +++ b/Chapters/ch01-an-example-application.xml @@ -483,7 +483,7 @@ ENDCASE

The final thing that we need to do is to handle Menu_Selection events, for which we will use PROCmenu_selection() as seen in .

-DEF PROCmenu_selection(block%) +DEF PROCmenu_selection(b%) LOCAL reopen% SYS "Wimp_GetPointerInfo",,q% @@ -491,7 +491,7 @@ reopen% = (q%!8 = 1) CASE MenuOpen% OF WHEN IconbarMenu% - CASE !block% OF + CASE !b% OF WHEN 1 : Quit% = TRUE ENDCASE ENDCASE