Date: Tue, 26 Oct 1999 22:53:26 -0400
Reply-To: Richard DeVenezia <radevenz@IX.NETCOM.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Richard DeVenezia <radevenz@IX.NETCOM.COM>
Organization: MindSpring Enterprises
Subject: Re: Capture RH mouse click over widget.
Here is one way to capture all the RMB clicks over an extended table.
For all objects comprising the extented table,
- the extended table
- the container for each row
- the objects placed in the container
change the command processing ... popmenu processing setting to Run object
Assume the table is named ET and the container is named ETROW and the
objects in the row are name ETRO1 ETRO2 ETRO3...
and the GET section is named GET1
At this point, when you right click anything in the extended table, the
object's label will run, in addition... if the object is not the extended
table, the extended table label will ALSO run (sorta odd).
E.g. RMB click on ETRO1 runs ETRO1 and ET sections.
In the frame SCL place this code:
ET: put 'running ET'; goto ETHANDLE;
ETROW: put 'running ETROW'; goto ETHANDLE;
ETRO1: put 'running ETRO1'; goto ETHANDLE;
ETRO2: put 'running ETRO2'; goto ETHANDLE;
ETRO3: put 'running ETRO3'; goto ETHANDLE;
call send (_FRAME_, '_GET_CURRENT_WIDGET_', w);
name = getnitemc (w, 'NAME');
put 'You clicked on ' name ' in row ' onRow;
put 'Storing this row number for later use:' _CURROW_;
onRow = _CURROW_;
Also understand deeply, Flow of Control in Extended Tables, as documented
Now for the easy part: put all this flow understanding to work in your
Other alternatives include setting command processing to run _POPUP_ and
overriding each widgets _POPUP_ method (but that is trickier, since you can
only modify a widget in a ext.row while in the GET or PUT section.
Jeremy Bassett <firstname.lastname@example.org> wrote in message
> I am trying to capture the widget when a RH mouse event happens. It is
> an extended table, but I cannot get the MAIN section to run even if I put
> control always. Any ideas?