Article View: comp.windows.interviews
Article #760Client data in callbacks?
From: Adam Janin 5-3545
Date: Mon, 05 Oct 1992 21:51
Date: Mon, 05 Oct 1992 21:51
13 lines
951 bytes
951 bytes
Is it possible to pass client data thru a callback? For example, I have (say) 20 buttons, each with almost identical behavior. I'd like to write one callback and pass client data to the callback which identifies which button was pressed. I know I could subclass a button, but I'd prefer to use the existing kit's buttons. I could also wrap the button returned by the kit in a monoglyph with a field that identifies its contents, but that seems kinda like a kludge. Any suggestions? Thanks, Adam Janin janin@espresso.boeing.com,
Technical Details
Message-ID:
<9210052151.AA11188@espresso.bcs.eca>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!espresso.boeing.com!janinShow Full Headers
Complete Article Headers
Newsgroups: comp.windows.interviews Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!espresso.boeing.com!janin From: janin@espresso.boeing.com (Adam Janin 5-3545) Subject: Client data in callbacks? Message-ID: <9210052151.AA11188@espresso.bcs.eca> Sender: news@shelby.stanford.edu (USENET News System) Organization: Internet-USENET Gateway at Stanford University Date: Mon, 5 Oct 1992 21:51:52 GMT Lines: 13