home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!rutgers!cbmvax!peter
- From: peter@cbmvax.commodore.com (Peter Cherna)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Public screen - how?
- Message-ID: <38306@cbmvax.commodore.com>
- Date: 5 Jan 93 15:52:15 GMT
- References: <alien.026x@acheron.amigans.gen.nz>
- Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
- Organization: Commodore-Amiga, Inc. West Chester, PA.
- Lines: 30
-
- In article <alien.026x@acheron.amigans.gen.nz> alien@acheron.amigans.gen.nz (Ross Smith) writes:
- >How do you make a screen public (from a C program)? The Libraries RKM
- >(3rd ed., p. 53) says to use the PubScreenStatus() function, but that
- >function's autodoc says that it can only be used to make a public screen
- >private, not vice versa. So once I've opened the screen (with an SA_PubName
- >tag), how do I switch it from private to public?
-
- PSNF_PRIVATE is a bit which controls whether a screen is to be made
- private or public, so:
-
- PubScreenStatus( screen, PSNF_PRIVATE )
-
- makes a screen private, and:
-
- PubScreenStatus( screen, 0 )
-
- makes it public.
-
- Note you must specify that the screen will be public during
- OpenScreenTagList(). PubScreenStatus() is used to control whether other
- applications would have access to your public screen.
-
- >...... Ross Smith (Wanganui, NZ) ...... alien@acheron.amigans.gen.nz ......
-
- Peter
- --
- Peter Cherna, User Interface Development Group, Commodore-Amiga, Inc.
- {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com
- My opinions do not necessarily represent the opinions of my employer.
- "Opinions enlarged to show detail"
-