NAME NextPubScreen -- Identify next public screen in the cycle. (V36) SYNOPSIS Buff = NextPubScreen( screen, namebuff ) D0 A0 A1 UBYTE *NextPubScreen( struct screen *, ubyte * ); FUNCTION Returns name of next public screen in system rotation, to allow visitor windows to provide function to "jump" among public-screens in a cycle. INPUTS screen = pointer to the screen your window is currently open in, or NULL, if you don't have a pointer to a public screen. NameBuff = pointer to a buffer of MAXPUBSCREENNAME+1 characters, for Intuition to fill in with the name of the next public screen in rotation. RESULT Returns NULL if there are no public screens, otherwise a pointer to your NameBuff. NOTES There is no guarantee that the public screen whose name was returned by this function will exist or be in "public" state by the time you call lockpubscreen(), etc. you must handle cases where lockpubscreen(), etc. will fail. BUGS Due to a bug, your buffer needs to be (MAXPUBSCREENNAME + 1) characters big, which is one more than originally documented. The starting screen and cycle order of the public screens isn't defined, so do not draw conclusions about the order you see in the current version of Intuition. We reserve the right to add meaning to the ordering at a future time. SEE ALSO openscreen(), intuition v36 update documentation