home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / motif / 8489 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.4 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!lsl!snail
  2. From: snail@lsl.co.uk
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Re: MrmNcreateCallback documentation?
  5. Message-ID: <1993Jan11.175141.2917@lsl.co.uk>
  6. Date: 11 Jan 93 17:51:41 GMT
  7. References: <1993Jan9.171824.3426@wam.umd.edu>
  8. Organization: Laser-Scan Ltd., Cambridge
  9. Lines: 25
  10.  
  11. In article <1993Jan9.171824.3426@wam.umd.edu>, liuxia@wam.umd.edu (New VaxHacker) writes:
  12. >     I am trying to find the functionality of MrmNcreateCallback.
  13. > I looked at the UIL programming guide but couldn't find any explanation
  14. > for it. Any help would be greatly appreciated. 
  15. >     
  16. >     liuxia@wam.umd.edu 
  17.  
  18. It gets called when the widget is created as a result of a call to
  19. MrmFetchWidget(TAG) or MrmFetchWidgetOverride(TAG). The callback passes the
  20. widget id, the client data TAG, and a callback structure to the callback.
  21. Your callback should then remember the widget id for use later. 
  22.  
  23. Hint, set the tag value up to be a pointer to an object, in the callback cast
  24. the tag to be the pointer and then store your widget id in this object. Bingo!
  25. no global variables. Easy.
  26.  
  27. byeeee
  28. -- 
  29. snail@lsl.co.uk      
  30.  
  31. "Washing one's hands of the conflict between the powerful and the powerless
  32.  means to side with the powerful, not to be Neutral."
  33.                                                      Quote by Freire.
  34.                                                      Poster by OXFAM.
  35.