home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / windows / x / motif / 8852 < prev    next >
Encoding:
Internet Message Format  |  1993-01-27  |  1.7 KB

  1. Path: sparky!uunet!portal!cup.portal.com!Iris_-_Smith
  2. From: Iris_-_Smith@cup.portal.com
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Re: How to pass client data from menubar buttons to the callbac
  5. Message-ID: <74428@cup.portal.com>
  6. Date: Tue, 26 Jan 93 17:59:42 PST
  7. Organization: The Portal System (TM)
  8. Distribution: world
  9. References:  <1jvq09INNd2n@tamsun.tamu.edu>
  10. Lines: 33
  11.  
  12. Hi,
  13.     I have one very important question about menubars which most of the
  14.  people use in there applications.
  15.  
  16.    I am using menubar for front menus. The problem is in passing client data to
  17.  the function which I am calling using menubars pulldown button.
  18.  
  19.   It is very easy to pass data using AddCallback but here I have to pass data
  20. from CreatePulldownMenu or CreateSimpleMenuBar type function. How do you      
  21. pass client data from this funtions. The buttons are not widgets here so
  22. you can not use sepatate AddCallback function. I am going to post this question
  23. in motif newsgroup. I saw same question from one guy in newsgroup sometimes
  24. back.
  25.  
  26.   I tried Dan Hellers book but unfortunately couldn't find a single example
  27. in which he is passing some kind of variables from menubar buttons to the
  28. called funtion. Which is really surprises me.....I need to pass some pointer
  29. to the called funtion. Which I can easyly pass it my button is a widget using
  30. AddCallback function. But here menubar buttons are not widgets so you can not
  31. use AddCallback.
  32.  
  33. Thanks.
  34.  
  35. Samir
  36.  
  37. spatel@cs.tamu.edu 
  38.  
  39. ///////////////////////////////////////////////////////////////////////////
  40.  
  41. The goal of Computer Science is to build something that will last at
  42. least until we've finished building it.
  43.  
  44. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  45.