home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- 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
- From: sjsobol@wariat.org (Steven J. Sobol)
- Subject: GetFocus
- Message-ID: <1992Nov11.210003.16266@wariat.org>
- Organization: APK Public Access UNIX/Internet, Cleveland, OH, USA
- Date: Wed, 11 Nov 1992 21:00:03 GMT
- Lines: 29
-
- I need to use GetFocus to tell me which one of two listboxes in a dialog
- has the current input focus. Trouble is, it returns a HWindow, and I need
- to know how to get the window handles for each of the listboxes so I can
- figure out which one is active. And I can't find my reference manual. :/
-
- Basically, all I need to know is how to get the address for a list box
- control so that I can do this:
-
- F := GetFocus;
- if
- F = { handle to ListBox 1 }
- then
- { do processing for ListBox 1 } ;
- if
- F = { handle to ListBox 2 }
- then
- { do processing for ListBox 2 } ;
-
- { otherwise, do nothing }
-
- thanks in advance.
-
- --
- Steve Sobol - SWM ISO a life sjsobol@tiny.com, sjsobol@wariat.org
- President, The Tiny Software Co. (IRC: RockNRoll) ag510@cleveland.freenet.edu
- Coordinator, Unix SIG, Greater Cleve. PC User Group 23707 Glenhill Drive
- Founder, Midwest Regional COHERENT User Group Cleveland, OH 44122 USA
-
- INTERNET ACCESS IS COMING TO CLEVELAND VERY SOON. Stay tunded for details.
-