Declaration (see MWindow.h):
void genNotice(const MString& noticeName);
The name of the Notice to generate.
The function extracts a numeric notice ID, associated with noticeName for this window by a previous call to setNoticeID on this window.
If the associated ID is None, then genNotice has no effect - no notice is generated and no error is reported.
Since None is the default ID for all notices, setNoticeID has to be called at least once for genNotice to be useful. Many window classes call setNoticeID during their creation (the ID is usually specified in the window class constructor).
If the associated ID is anything but None, the function generates a Notice message, which is processed before genNotice returns. During this notice message processing, digNN returns noticeName, and digNID returns the ID extracted by genNotice (even if the actual associated ID changes in the process).
- The function has no effect on a closed window
- None is the default value for performance - to avoid generating notices without explicit authorization
Let us know
Please Contact us to report any errors on this page, or to suggest any improvements.