Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

PubScreenStatus

Change status flags for a public screen.

Declaration

Source position: intuition.pas line 4146

function PubScreenStatus(

  screen: pScreen;

  statusFlags: LongWord

):Word;

Arguments

screen

  

A pointer to public screen

statusFlags

  

Any of the PSNF_ flags (only PSNF_PRIVATE is currently defined).

Function result

Returns 0 in the lowest order bit of the return value if the screen wasn't public, or because it can not be taken private because visitors are open in it. All other bits in the return code are reserved for future enhancement.

Description

Changes status flags for a given public screen. The only flag bit currently defined is PSNF_PRIVATE. Thus, PubScreenStatus(Screen, PSNF_PRIVATE); makes a screen private, while PubScreenStatus(Screen, 0); makes it public.

Do not apply this function to a screen if your program isn't the screen's "owner", in particular, don't call this function for the Workbench screen.

See also

OpenScreen

  

Open an Intuition screen


Documentation generated on: 2021-07-30