home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18162 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.5 KB

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!cbmvax!peter
  2. From: peter@cbmvax.commodore.com (Peter Cherna)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Public screen - how?
  5. Message-ID: <38306@cbmvax.commodore.com>
  6. Date: 5 Jan 93 15:52:15 GMT
  7. References: <alien.026x@acheron.amigans.gen.nz>
  8. Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
  9. Organization: Commodore-Amiga, Inc.  West Chester, PA.
  10. Lines: 30
  11.  
  12. In article <alien.026x@acheron.amigans.gen.nz> alien@acheron.amigans.gen.nz (Ross Smith) writes:
  13. >How do you make a screen public (from a C program)? The Libraries RKM
  14. >(3rd ed., p. 53) says to use the PubScreenStatus() function, but that
  15. >function's autodoc says that it can only be used to make a public screen
  16. >private, not vice versa. So once I've opened the screen (with an SA_PubName
  17. >tag), how do I switch it from private to public?
  18.  
  19. PSNF_PRIVATE is a bit which controls whether a screen is to be made
  20. private or public, so:
  21.  
  22.     PubScreenStatus( screen, PSNF_PRIVATE )
  23.  
  24. makes a screen private, and:
  25.  
  26.     PubScreenStatus( screen, 0 )
  27.  
  28. makes it public.
  29.  
  30. Note you must specify that the screen will be public during
  31. OpenScreenTagList().  PubScreenStatus() is used to control whether other
  32. applications would have access to your public screen.
  33.  
  34. >...... Ross Smith (Wanganui, NZ) ...... alien@acheron.amigans.gen.nz ......
  35.  
  36.      Peter
  37. --
  38. Peter Cherna, User Interface Development Group, Commodore-Amiga, Inc.
  39. {uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
  40. My opinions do not necessarily represent the opinions of my employer.
  41. "Opinions enlarged to show detail"
  42.