🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #2931

Intuition Bug / Toggle Menu Item, extended select

#2931
From: asaph
Date: Wed, 24 Jan 1990 22:43
28 lines
1799 bytes
I recently found a bug in intuition. If this is a known bug please forgive
me for repeating it here.

Descripition:

Short:
If you have a menu item with menu-toggle on it. And you extended-select it with
the left mouse button twice in one operation, thereby doing actualy nothing
(once on, once off), your program will recieve only one event from the IDCMP.

Long:
Suppose I have a program with a menu in it. This menu has its menu toggle flag
on and is check marked. Niw I go to it using the regular right-mouse button
method. When the pointer is on the item I hit the left mouse button, the menu
will toggle. The check mark (assuming it was on) will be erased immediatly. The
menu is now off. If I press the left mouse button again, without first
releasing the right mouse button, the menu will reselect. It will re-toggle
i.e. return to its intial state including the check mark. The program however
will recieve only one event. So it will think the item has only been toggled
once, now the item appreance and the program internal record of it are
unsynced.

Work-Around:

When using these toggleable menu items, I guess I will have to ignore the
number of events recieved and actualy look in the MenuItem->Flags SELECTED bit,
if I recieve an event related to this menu item.
Technical Details
Message-ID: <1215@taurus.BITNET>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!TAURUS.BITNET!asaph

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!TAURUS.BITNET!asaph
From: asaph@TAURUS.BITNET
Newsgroups: comp.sys.amiga.tech
Subject: Intuition Bug / Toggle Menu Item, extended select
Keywords: menu, bug, intuition, select
Message-ID: <1215@taurus.BITNET>
Date: 24 Jan 90 22:43:45 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: <asaph%math.tau.ac.il@CUNYVM.CUNY.EDU>
Organization: Tel-Aviv Univesity Math and CS school, Israel
Lines: 28