Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtSetWarniA(3x) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtAppSetErrorHandler(1)

XtAppSetErrorMsgHandler(1)

XtAppSetWarningMsgHandler(1)

XtAppWarning(1)

XtErrorHandler(2)

XtErrorMsgHandler(2)

 

NAME

XtSetWarningHandler − set the low-level warning handler procedure. 

Synopsis

void XtSetWarningHandler(handler)

    XtErrorHandler handler;

Inputs

handlerSpecifies the new low-level warning procedure. 

Availability

XtSetWarningHandler() has been superseded by XtAppSetWarningHandler(). 

Description

XtSetWarningHandler() registers the procedure handler as the procedure to be invoked by XtWarning(). It should display the string it is passed and return. 

Usage

XtSetWarningHandler() has been superseded by XtAppSetWarningHandler(), which performs the same function on a per-application context basis.  XtSetWarningHandler() now calls XtAppSetWarningHandler() passing the default application context created by XtInitialize().  Very few programs need multiple application contexts, and you can continue to use XtSetWarningHandler() if you initialize your application with XtInitialize().  We recommend, however, that you use XtAppInitialize(), XtAppSetWarningHandler(), and the other XtApp*() application context specific functions.  See XtAppSetWarningHandler() for more information. 

See Also

XtAppSetErrorHandler(1), XtAppSetErrorMsgHandler(1), XtAppSetWarningMsgHandler(1), XtAppWarning(1),
XtErrorHandler(2), XtErrorMsgHandler(2). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026