home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / pascal / 6515 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.4 KB  |  39 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!europa.asd.contel.com!emory!wupost!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!wariat!sjsobol
  3. From: sjsobol@wariat.org (Steven J. Sobol)
  4. Subject: GetFocus
  5. Message-ID: <1992Nov11.210003.16266@wariat.org>
  6. Organization: APK Public Access UNIX/Internet, Cleveland, OH, USA
  7. Date: Wed, 11 Nov 1992 21:00:03 GMT
  8. Lines: 29
  9.  
  10. I need to use GetFocus to tell me which one of two listboxes in a dialog
  11. has the current input focus. Trouble is, it returns a HWindow, and I need
  12. to know how to get the window handles for each of the listboxes so I can
  13. figure out which one is active. And I can't find my reference manual. :/
  14.  
  15. Basically, all I need to know is how to get the address for a list box 
  16. control so that I can do this:
  17.  
  18. F := GetFocus;
  19. if 
  20.   F = { handle to ListBox 1 }
  21. then
  22.   { do processing for ListBox 1 } ;
  23. if 
  24.   F = { handle to ListBox 2 }
  25. then
  26.  { do processing for ListBox 2 } ;
  27.  
  28. { otherwise, do nothing }
  29.  
  30. thanks in advance.
  31.  
  32. -- 
  33. Steve Sobol - SWM ISO a life               sjsobol@tiny.com, sjsobol@wariat.org
  34. President, The Tiny Software Co.  (IRC: RockNRoll)  ag510@cleveland.freenet.edu
  35. Coordinator, Unix SIG, Greater Cleve. PC User Group        23707 Glenhill Drive
  36. Founder, Midwest Regional COHERENT User Group        Cleveland, OH 44122    USA
  37.  
  38. INTERNET ACCESS IS COMING TO CLEVELAND VERY SOON. Stay tunded for details.
  39.