home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!news.u.washington.edu!uw-beaver!ssc-vax!mattb
- From: mattb@ssc-vax (Matt Baney)
- Newsgroups: comp.windows.open-look
- Subject: Re: XV-KEY_DATA Numbers
- Message-ID: <5538@ssc-bee.ssc-vax.boeing.com>
- Date: 1 Sep 92 19:42:09 GMT
- Article-I.D.: ssc-bee.5538
- References: <5510@ssc-bee.ssc-vax.boeing.com> <12665@ecs.soton.ac.uk>
- Sender: news@ssc-vax.boeing.com
- Reply-To: mattb@ssc-vax.boeing.com (Matt Baney)
- Organization: Boeing Aerospace & Electronics
- Lines: 44
-
- In article <12665@ecs.soton.ac.uk> djp@ecs.soton.ac.uk writes:
- >>> Some key values are used by the XView toolkit routines for their
- >>>own purposes. (This is the case in XView 2.0, I haven't checked the
- >>>3.0 source, since the values below have worked fine there also.)
- >>>
- >>> For my key values, I start at 10001 and go up. This has so far
- >>>avoided any collision problems. It is not as easy as it should be
- >>>to figure out what key values are unused.^^^^^^^^^^^^^^^^^^^^^^^^^
- >> ^^^^^^^^^^^^^^^^^^^^^^^
- >>
- >
- >I believe xv_unique_key() does the job.
- >
- What I don't understand though is do I have to call xv_unique_key
- everytime I create an object and want to use an XV_KEY_DATA slot??
- If I create 1000 panel_buttons and I want to attach an author-name
- to each button can I do this
-
- int AUTHOR_KEY = xv_unique_key();
-
- xv_create(XV_NULL, PANEL_BUTTON,
- PANEL_ITEM_LABEL, "sdlkjfl",
- XV_X, ....
- XV_KEY_DATA, AUTHOR_KEY, "M. BANEY",
- NULL);
-
- or
-
- Do I have to do this:
-
- xv_create(XV_NULL, PANEL_BUTTON,
- PANEL_ITEM_LABEL, "sdlkjfl",
- XV_X, ....
- XV_KEY_DATA, xv_unique_key(), "M. BANEY",
- NULL);
-
- thanks~!!
-
-
- --
- | Matt Baney | Boeing Defense and Space Group |
- | "I can't tolerate | UUCP: ..!uw-beaver!ssc-vax!mattb |
- | intolerant people!" | Internet: mattb@ssc-vax.boeing.com |
- |---------------------|--------------------------------------|
-