Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site boring.UUCP Path: utzoo!linus!decvax!ucbvax!ucdavis!lll-crg!seismo!mcvax!boring!guido From: guido@boring.UUCP Newsgroups: net.micro.mac Subject: Re: Megamax control problem Message-ID: <6658@boring.UUCP> Date: Fri, 18-Oct-85 23:06:23 EDT Article-I.D.: boring.6658 Posted: Fri Oct 18 23:06:23 1985 Date-Received: Mon, 21-Oct-85 06:04:30 EDT References: <517@ihwpt.UUCP> Reply-To: guido@mcvax.UUCP (Guido van Rossum) Distribution: net Organization: "Stamp Out BASIC" Committee, CWI, Amsterdam Lines: 15 Apparently-To: rnews@mcvax.LOCAL In article <517@ihwpt.UUCP> wiso@ihwpt.UUCP (Jack Wisowaty) writes: >I have a window with eight controls and if I use the command >hilitecontrol(thecontrol,254) to deactivate say control #5, it deactivates >5, 6, 7, and 8. Findcontrol returns 254 for 5-8 as well as for any other >location in the window. Only clicking in controls 1-4 returns 11 (for a >mousedown in the checkbox). It seems that this is a bug in the Toolbox. I have experienced similar problems with 254 highlighting, and finally decided to use 255 highlighting instead. My theory is that the control definition's Test routine returns 254 when it is called if the control has 254 highlighting EVEN WHEN THE MOUSE IS OUTSIDE THE CONTROL. Funnily, the wording of the paragraph describing the Test routine indeed suggests this if taken literally. -- Guido van Rossum, CWI, Amsterdam (guido@mcvax)