Aros/Developer/Docs/Libraries/ScreenNotify

From Wikibooks, open books for an open world
Jump to: navigation, search
Navbar for the Aros wikibook
Aros User Docs
Aros User Docs
Aros User FAQs
Aros User Applications
Aros User DOS Shell
Aros/User/AmigaLegacy
Aros Dev Docs
Aros Developer Docs
Porting Software from AmigaOS/SDL
For Zune Beginners
Zune .MUI Classes
For SDL Beginners
Aros Developer BuildSystem
Specific platforms
Aros x86 Complete System HCL
Aros x86 Audio/Video Support
Aros x86 Network Support
Aros Intel AMD x86 Installing
Aros Storage Support IDE SATA etc
Aros Poseidon USB Support
x86-64 Support
Motorola 68k Amiga Support
Linux and FreeBSD Support
Windows Mingw and MacOSX Support
Android Support
Arm Raspberry Pi Support
PPC Power Architecture
misc
Aros Public License

Introduction[edit]

You can get some notifications on status changes for your screen (like screen to front/screen to back) with screen notify messages

You can get the following messages:

SNOTIFY_AFTER_OPENSCREEN        /* screen has been opened */
SNOTIFY_BEFORE_CLOSESCREEN      /* going to close screen */
SNOTIFY_AFTER_OPENWB            /* Workbench is open */
SNOTIFY_BEFORE_CLOSEWB          /* Workbench is going to be closed */
SNOTIFY_AFTER_OPENWINDOW        /* new window */
SNOTIFY_BEFORE_CLOSEWINDOW      /* window is going to be closed */
SNOTIFY_PUBSCREENSTATE          /* PubScreenState() */
SNOTIFY_LOCKPUBSCREEN           /* LockPubScreen() */
SNOTIFY_SCREENDEPTH             /* ScreenDepth() */
SNOTIFY_AFTER_CLOSESCREEN       /* notify after CloseScreen() */
SNOTIFY_AFTER_CLOSEWINDOW       /* dto. CloseWindow() */
SNOTIFY_BEFORE_OPENSCREEN       /* notify before OpenScreen() */
SNOTIFY_BEFORE_OPENWINDOW       /* dto. OpenWindow() */
SNOTIFY_BEFORE_OPENWB           /* like OPENSCREEN */
SNOTIFY_AFTER_CLOSEWB           /* like CLOSESCREEN */
SNOTIFY_WAIT_REPLY              /* wait for reply before taking action */
SNOTIFY_UNLOCKPUBSCREEN         /* UnlockPubScreen() */
SNOTIFY_BEFORE_UPDATEINTUITION  /* Intuition is going to be updated */
SNOTIFY_AFTER_UPDATEINTUITION   /* Intuition is updated */

Examples[edit]

FireScreenNotifyMessageCode((IPTR) screen, SNOTIFY_SCREENDEPTH, flags, IntuitionBase);

References[edit]