home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!think.com!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!tamsun.tamu.edu!spatel
- From: spatel@cs.tamu.edu (Samir K Patel)
- Newsgroups: comp.windows.x.motif
- Subject: How to pass client data from menubar buttons to the callback function
- Date: 25 Jan 1993 04:23:37 GMT
- Organization: Computer Science Department, Texas A&M University
- Lines: 32
- Distribution: world
- Message-ID: <1jvq09INNd2n@tamsun.tamu.edu>
- NNTP-Posting-Host: solar.tamu.edu
-
- Hi,
- I have one very important question about menubars which most of the
- people use in there applications.
-
- 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.
-
- It is very easy to pass data using AddCallback but here I have to pass data
- from CreatePulldownMenu or CreateSimpleMenuBar type function. How do you
- pass client data from this funtions. The buttons are not widgets here so
- you can not use sepatate AddCallback function. I am going to post this question
- in motif newsgroup. I saw same question from one guy in newsgroup sometimes
- back.
-
- I tried Dan Hellers book but unfortunately couldn't find a single example
- in which he is passing some kind of variables from menubar buttons to the
- called funtion. Which is really surprises me.....I need to pass some pointer
- to the called funtion. Which I can easyly pass it my button is a widget using
- AddCallback function. But here menubar buttons are not widgets so you can not
- use AddCallback.
-
- Thanks.
-
- Samir
-
- spatel@cs.tamu.edu
-
- ///////////////////////////////////////////////////////////////////////////
-
- The goal of Computer Science is to build something that will last at
- least until we've finished building it.
-
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
-