home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!portal!cup.portal.com!Iris_-_Smith
- From: Iris_-_Smith@cup.portal.com
- Newsgroups: comp.windows.x.motif
- Subject: Re: How to pass client data from menubar buttons to the callbac
- Message-ID: <74428@cup.portal.com>
- Date: Tue, 26 Jan 93 17:59:42 PST
- Organization: The Portal System (TM)
- Distribution: world
- References: <1jvq09INNd2n@tamsun.tamu.edu>
- Lines: 33
-
- 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.
-
- \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
-