/****************************************************************************** Copyright (c) 1999 Unigraphics Solutions, Inc. Unpublished - All Rights Reserved *******************************************************************************/ /* The following example displays several nonmodal messages at various screen locations. */ #include #include int nonmodal(void); void ufusr(char *param, int *retcod, int param_len) { int err_cod; char message[132]; UF_initialize(); err_cod = nonmodal(); if (err_cod) { UF_get_fail_message(err_cod,message); printf("Error in nonmodal function: %s", message); } UF_terminate(); } int nonmodal( void ) { int err = 0; err = UF_UI_display_nonmodal_msg( "Message #1", "This nonmessage dialog is displayed\n" "at the top left corner of the screen.", UF_UI_MSG_POS_TOP_LEFT ); err = UF_UI_display_nonmodal_msg( "Message #2", "This dialog is displayed at the bottom\n" "right corner of the graphics window.", UF_UI_MSG_POS_BOTTOM_RIGHT ); err = UF_UI_display_nonmodal_msg( "Message #3", "Now it's under the mouse cursor.", UF_UI_MSG_POS_CURSOR ); return (err); }