From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Problems with Allegro GUI, or an Allegro bug? Date: Thu, 14 Aug 1997 19:16:50 +0100 Organization: None Distribution: world Message-ID: <+B1c0CASu08zEwSE@talula.demon.co.uk> References: <01bca8b9$cdb2e240$LocalHost AT jose> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 16 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Jose Agustin Vericat writes: >I have created a main menu, like an IDE, and I have two options from that >menu that doesn't need any sub-menu. I put one ghost sub-menu with NULL >options because I want that it highlited when the cursor go over it, but if >I do so, when I press the UP key, the program crashes. Do you mean you are adding a child menu without any contents, ie. the very first item in the list has a NULL 'text' field? That is indeed going to upset the Allegro routines: they weren't written to handle zero size menus. Instead, try giving the sub-menu a single entry with an empty text string ("" rather than NULL). -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ Beauty is a French phonetic corruption of a short cloth neck ornament.