home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / ingres / 2339 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.5 KB  |  54 lines

  1. Newsgroups: comp.databases.ingres
  2. Path: sparky!uunet!paladin.american.edu!howland.reston.ans.net!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!doug.cae.wisc.edu!umn.edu!bru!miracle!buntrock
  3. From: buntrock@mayo.edu (Jim Buntrock)
  4. Subject: Re: Windows4gl question on stackfield
  5. Message-ID: <1993Jan21.200009.23781@bmw.mayo.edu>
  6. Sender: newsman@bmw.mayo.edu (Usenet News Administrator)
  7. Reply-To: buntrock@mayo.edu
  8. Organization: Mayo Foundation
  9. References: <1993Jan21.042018.3170@news.nd.edu>
  10. Date: Thu, 21 Jan 93 20:00:09 GMT
  11. Lines: 41
  12.  
  13.  
  14. ---
  15.   
  16. In article 3170@news.nd.edu, nariani@tiamat.cc.nd.edu (Sunil Nariani) writes:
  17. >I have 2 stackfields containing button fields.
  18. >The stackfields are called row1, row2.
  19. >If a user clicks on a button in one of the rows, I 
  20. >want to know which row (not button) was clicked.
  21. >
  22. >The code should go as follows
  23. >
  24. >on ChildClick row1, on ChildClick row2 = 
  25. >begin
  26. >        What code tells if it was row1 or row2 ?
  27. >end;
  28. >
  29.  
  30. This code will tell you if the StackField(row1) or StackField(row2) 
  31. triggered the event block.  Hope it helps!?  
  32.  
  33. on childclick row1, 
  34. on childclick row2 =
  35. begin
  36.   if (Curframe.OriginatorField.Name = 'row1') then
  37.      message 'row1';
  38.   elseif (CurFrame.OriginatorField.Name = 'row2') then
  39.      message  'row2';
  40.   endif;
  41. end;
  42.  
  43. ///////////////////////////////
  44. James Buntrock
  45. Analyst/Programmer
  46. Medical Information Resources
  47. Mayo Clinic
  48. 200 First Street SW
  49. Rochester, MN 55905
  50. Email - buntrock@mayo.edu
  51. ///////////////////////////////
  52.  
  53.  
  54.