Date: Thu, 25 Aug 2005 17:22:00 -0400
Reply-To: Randy Herbison <RandyHerbison@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Randy Herbison <RandyHerbison@WESTAT.COM>
Subject: Re: Cascading popmenu or right-click button simulation
Content-Type: text/plain; charset="us-ascii"
Tim,
As far as I know, there is no way to make a pmenu pull-down by clicking
on a button.
There are a couple of frame attributes that, depending on the control
and where you click on it, will cause the pmenu to display when a popup
menu would ordinarily display. They might decrease the portion of the
frame sensitive to popmenu actions and increase the portion where a
right-click would display a pmenu. Checkout the frame attributes
popMenuProcessing and popMenuSupport (although I suspect you will not
find this a satisfactory solution).
You can make a pmenu respond to keys. If you use the MENUB application
to build a pmenu, place an ampersand before the character in the item
text. If using PROC PMENU, specify a mnemonic character for the item.
Here is an example of how to create the effect (almost) of a cascading
popmenu:
dcl list primaryMenu={'Red','Green...','Blue'};
dcl list subMenu={'Light','Dark'};
dcl num index index2;
index=popmenu(primaryMenu);
select (index);
when (1) put 'Red';
when (2)
do;
index2=popmenu(subMenu);
if index2=1 then put 'Light Green' ;
else if index2=2 then put 'Dark Green';
end;
when (3) put 'Blue';
otherwise;
end;
rc=dellist(primaryMenu);
rc=dellist(subMenu);
RandyHerbison@westat.com
-----Original Message-----
From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu]
On Behalf Of tmuir@rdg.boehringer-ingelheim.com
Sent: Thursday, August 25, 2005 3:26 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Cascading popmenu or right-click button simulation
Hello SAS-Lers,
I'm in a quandary. Having a pmenu at the top of the AF is ok, but then
again, right-clicking and having the menu display is pretty nice, but
you have to right-click in specific locations. Is there a way to have
action behind a button that will trigger the pmenu to display? The
other thing I had considered, but have found nothing was to make
cascading popmenus. Has anyone tried the latter or know how to do the
former?
Thanks in advance,
Tim
900 Ridgebury Road
Ridgefield CT 06877
Telephone: (203) 798-5259
Fax: (203) 798-5660
Email: tmuir@rdg.boehringer-ingelheim.com