home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.st.tech
- Path: sparky!uunet!mcsun!sun4nl!ruuinf!plato.phil.ruu.nl!hjv
- From: hjv@phil.ruu.nl (Hendrik Jan Veenstra)
- Subject: Re: drop down menus in GEM
- Message-ID: <hjv.724704709@groucho.phil.ruu.nl>
- Sender: news@phil.ruu.nl
- Nntp-Posting-Host: groucho.phil.ruu.nl
- Organization: Department of Philosophy, University of Utrecht, The Netherlands
- References: <1992Dec18.120356.2386@infodev.cam.ac.uk>
- Date: Fri, 18 Dec 1992 18:51:49 GMT
- Lines: 23
-
- rpj12@cus.cam.ac.uk (R.P. Jones) writes:
-
- >Rather a simple question, but its giving me some stick!!!
-
- >When using drop down menus how do you get the chech marks to work?
-
-
- I use the following (can be either a #define or a function), and have never had
- any problems. Be sure you #include "aes.h" and be sure the menubar is drawn
- and 'active' (i.e. not removed with menu_bar(..)).
-
- #define CHECK(ob,tree) ((tree)[ob].ob_state |= CHECKED)
- #define UNCHECK(ob,tree) ((tree)[ob].ob_state &= ~CHECKED)
- #define CHECK_FLIP(ob,tree) ((tree)[ob].ob_state ^= CHECKED)
-
- Of course, 'ob' is an integer, and is the index of the object (menu-item in
- this case). 'Tree' is the address of the menu-tree (i.e an OBJECT * ).
-
- --
- Hendrik Jan Veenstra hjv@phil.ruu.nl * How can I save my dreams
- Dept. of Philosophy * in the nightmare, in the flood
- University of Utrecht * But I try.
- The Netherlands *
-