LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 1999, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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 label.

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; ETHANDLE: call send (_FRAME_, '_GET_CURRENT_WIDGET_', w); name = getnitemc (w, 'NAME'); put 'You clicked on ' name ' in row ' onRow; return;

GET1: put 'Storing this row number for later use:' _CURROW_; onRow = _CURROW_; return;

Also understand deeply, Flow of Control in Extended Tables, as documented online.

Now for the easy part: put all this flow understanding to work in your application :-)

Richard

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 <jb95661@glaxowellcome.co.uk> wrote in message news:01bf1f90$83f6bb40$6a891782@ukd24300... > I am trying to capture the widget when a RH mouse event happens. It is over > an extended table, but I cannot get the MAIN section to run even if I put > control always. Any ideas? > > TIA > > Jez


Back to: Top of message | Previous page | Main SAS-L page