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

  1. Path: sparky!uunet!think.com!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!tamsun.tamu.edu!spatel
  2. From: spatel@cs.tamu.edu (Samir K Patel)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: How to pass client data from menubar buttons to the callback function
  5. Date: 25 Jan 1993 04:23:37 GMT
  6. Organization: Computer Science Department, Texas A&M University
  7. Lines: 32
  8. Distribution: world
  9. Message-ID: <1jvq09INNd2n@tamsun.tamu.edu>
  10. NNTP-Posting-Host: solar.tamu.edu
  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 the function which I am calling using menubars pulldown button.
  17.  
  18.   It is very easy to pass data using AddCallback but here I have to pass data
  19. from CreatePulldownMenu or CreateSimpleMenuBar type function. How do you      
  20. pass client data from this funtions. The buttons are not widgets here so
  21. you can not use sepatate AddCallback function. I am going to post this question
  22. in motif newsgroup. I saw same question from one guy in newsgroup sometimes
  23. back.
  24.  
  25.   I tried Dan Hellers book but unfortunately couldn't find a single example
  26. in which he is passing some kind of variables from menubar buttons to the
  27. called funtion. Which is really surprises me.....I need to pass some pointer
  28. to the called funtion. Which I can easyly pass it my button is a widget using
  29. AddCallback function. But here menubar buttons are not widgets so you can not
  30. use AddCallback.
  31.  
  32. Thanks.
  33.  
  34. Samir
  35.  
  36. spatel@cs.tamu.edu 
  37.  
  38. ///////////////////////////////////////////////////////////////////////////
  39.  
  40. The goal of Computer Science is to build something that will last at
  41. least until we've finished building it.
  42.  
  43. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
  44.