From owner-oi-users Thu Mar 16 11:05:21 1995 Return-Path: oi-users-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA23418 for oi-users-outgoing; Thu, 16 Mar 1995 11:05:21 -0800 Received: from mailer.jhuapl.edu (mailer.jhuapl.edu [128.244.198.31]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id LAA23412 for ; Thu, 16 Mar 1995 11:05:19 -0800 Received: from euler.jhuapl.edu by mailer.jhuapl.edu (5.65/DEC-Ultrix/4.3) id AA17843; Thu, 16 Mar 1995 14:04:17 -0500 Received: by euler.jhuapl.edu.jhuapl.edu (4.1/SMI-4.1) id AA09809; Thu, 16 Mar 95 14:04:15 EST Date: Thu, 16 Mar 95 14:04:15 EST From: krh@euler.jhuapl.edu (Kevin R. Holloway) Message-Id: <9503161904.AA09809@euler.jhuapl.edu.jhuapl.edu> To: oi-users@freefall.cdrom.com, perry@pure.com Subject: Re: Getting the selection in an OI_abbr_menu Sender: oi-users-owner@FreeBSD.org Precedence: bulk Perry, > I'm having a bit of trouble finding out which is the selected cell in an > OI_abbr_menu. None of the members which relate to the currently selected > cell will admit to anything being selected. > > For example, the following code fragment always prints "num_selected -1" > although the menu obviously has a currently selected item: > > else if ( obj->is_derived_from( "OI_abbr_menu" ) ) > { > printf("\nSetOptionsFromFields: num_selected %d\n", > ((OI_menu *)obj)->num_selected() ); > }