home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 13031 < prev    next >
Encoding:
Internet Message Format  |  1992-09-02  |  1.0 KB

  1. Path: sparky!uunet!wupost!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!cste3
  2. Newsgroups: comp.sys.amiga.programmer
  3. Subject: Attaching menus to more than 1 win
  4. Message-ID: <1992Sep3.060459.20274@cs.aukuni.ac.nz>
  5. From: cste3@cs.aukuni.ac.nz (Christopher Paul    Stevens        )
  6. Date: Thu, 3 Sep 1992 06:04:59 GMT
  7. Organization: Computer Science Dept. University of Auckland
  8. Lines: 18
  9.  
  10. Is anybody able to tell me how I can attach a single menu to two different
  11. windows and then recieve the IDCMP flags for the windows as one ??
  12.  
  13.  
  14. ie I have two windows on my screen which both display different data and
  15. I want the user to be able to select from the menu an action the problem being
  16. that I have no way of setting up my loop to recieve IDCMP from the two windows
  17.  
  18. Is there some way that I can get a pointer to the currently active window ?
  19.  
  20. so in line
  21.      Wait (1 << 'currentlyActiveWindow'->UserPort->mp_SigBit);
  22.  
  23. I have my own screen and it is not public so I know that only my windows will
  24. be active on it!!
  25.  
  26. AdvaTHANKSnce.
  27.  
  28.