Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dwtdisplaycsmessage(3dwt) [ultrix man page]

DwtDisplayCSMessage(3Dwt)												 DwtDisplayCSMessage(3Dwt)

Name
       DwtDisplayCSMessage - Displays a compound-string message.

Syntax
       Widget DwtDisplayCSMessage(parent_widget, name,
				  default_position, x, y,
				  style, message_vector,
				  widget_id convert_proc,
				  ok_callback, help_callback)
	    Widget parent_widget;
	    char *name;
	    int default_position;
	    int x, y;
	    int style;
	    int *message_vector;
	    Widget *widget;
	    int (*convert_proc)();
	    DwtCallbackPtr ok_callback;
	    DwtCallbackPtr help_callback;

Arguments
       parent_widget
		 Specifies the parent widget ID.

       name	 Specifies the name of the created widget.

       default_position
		 Specifies  a boolean value that, when True, indicates that DwtNx and DwtNy are to be ignored forcing the widget to be centered in
		 the parent window.

       x	 Specifies the placement, in pixels, of the left side of the widget window relative to the inner upper left corner of  the  parent
		 window.

       y	 Specifies,  in pixels, the placement of the upper left corner of the widget window relative to the inner upper left corner of the
		 parent window.

       style	 Specifies the style of the message box widget.  You can pass DwtModal (modal) or DwtModeless (modeless).

       message_vector
		 Specifies the message argument vector identifying the message identifier and associated information.

		 The first longword contains the number of longwords in the message blocks to follow.  The first longword in  each  message  block
		 contains a pointer to the compound-string.  The next word consists of the FAO parameter count.  The final n longwords in the mes-
		 sage block are the FAO parameters.

       widget_id This argument contains the widget ID of an already-existing message box widget.  If this argument is nonzero, a new  message  box
		 is  not  created.   An  XtSetValues will be performed on this widget to change the text of the message to match this new message.
		 This is an input/output argument.  That is, the function fills in widget_id after you call it.

       convert_proc
		 Specifies a pointer to a function that is executed after the message is formatted but before it is displayed.

		 A pointer to the formatted compound-string is passed to the function as a parameter.  This parameter is a NULL-terminated charac-
		 ter string.

       ok_callback
		 Specifies the callback function or functions called when the user clicks on the Acknowledged push button.  For this callback, the
		 reason is DwtCRYes.

       help_callback
		 Specifies the callback function or functions called when a help request is made.

Description
       The DwtDisplayCSMessage function accepts an array of compound-strings, formats them, and creates a message box.

       If the function returns a zero, the message is not appended to the messages to be displayed.

Return Values
       Upon completion, DwtDisplayCSMessage returns to the calling program the ID of the created message box widget.

See Also
       Guide to the XUI Toolkit: C Language Binding
       Guide to the XUI Toolkit Intrinsics: C Language Binding

															 DwtDisplayCSMessage(3Dwt)

Check Out this Related Man Page

DwtWorkBox(3Dwt)														  DwtWorkBox(3Dwt)

Name
       DwtWorkBox, DwtWorkBoxCreate - Creates a work-in-progress box widget for the application to display work in progress messages.

Syntax
       Widget DwtWorkBox(parent_widget, name, default_position,
			 x, y, style, label, cancel_label,
			 callback, help_callback)
	    Widget parent_widget;
	    char *name;
	    Boolean default_position;
	    Position x, y;
	    int style;
	    DwtCompString label, cancel_label;
	    DwtCallbackPtr callback, help_callback;

       Widget DwtWorkBoxCreate (parent_widget, name,
				override_arglist, override_argcount)
	    Widget parent_widget;
	    char *name;
	    ArgList override_arglist;
	    int override_argcount;

Arguments
       parent_widget
		 Specifies the parent widget ID.

       name	 Specifies the name of the created widget.

       default_position
		 Specifies  a  boolean	value  that,  when True, causes DwtNx and DwtNy to be ignored and forces the default widget position.  The
		 default widget position is centered in the parent window.  If False, the specified DwtNx and DwtNy attributes are used  to  posi-
		 tion the widget.  This argument sets the DwtNdefaultPosition attribute associated with DwtDialogBoxCreate.

       x	 Specifies  the  placement, in pixels, of the left side of the widget window relative to the inner upper left corner of the parent
		 window.  This argument sets the DwtNx core widget attribute.

       y	 Specifies, in pixels, the placement of the upper left corner of the widget window relative to the inner upper left corner of  the
		 parent window.  This argument sets the DwtNy core widget attribute.

       style	 Specifies  the  style of the dialog box widget.  You can pass DwtModal (modal) or DwtModeless (modeless).  This argument sets the
		 DwtNstyle attribute associated with DwtDialogBoxPopupCreate.

       label	 Specifies the text in the message line or lines.  This argument sets the DwtNlabel attribute associated with DwtWorkBoxCreate.

       cancel_label
		 Specifies the label for the Cancel push button.  If the label is a NULL string, the button is not displayed.  This argument  sets
		 the DwtNcancelLabel attribute associated with DwtWorkBoxCreate.

       callback  Specifies the callback function or functions called back when the Cancel button is activated.	This argument sets the DwtNcancel-
		 Callback attribute associated with DwtWorkBoxCreate.

       help_callback
		 Specifies the callback function or functions called when a help request is made.  This argument sets the DwtNhelpCallback  common
		 widget attribute.

       override_arglist
		 Specifies the application override argument list.

       override_argcount
		 Specifies the number of attributes in the application override argument list (override_arglist).

Description
       The  DwtWorkBox	and  DwtWorkBoxCreate  functions  create an instance of a work-in-progress box widget and return its associated widget ID.
       When calling DwtWorkBox, you set the work-in-progress box widget attributes presented in the formal parameter list.  For  DwtWorkBoxCreate,
       however,  you  specify  a  list	of attribute name/value pairs that represent all the possible work-in-progress box widget attributes.  The
       work-in-progress box widget is a dialog box that allows the application to display work in progress messages to the user.  When the  appli-
       cation  determines  that an operation will take longer than five seconds, it is recommended that the application call this function to dis-
       play a work-in-progress box with a message such as ``Work in Progress./Please Wait.''  The work-in-progress box may contain a  push  button
       labeled	``Cancel Operation.''  Do not include the push button if the operation cannot be canceled.  If the style is DwtModal when the user
       selects the Cancel push button, the widget is cleared from the screen, but not destroyed.  The widget can be redisplayed by calling  XtMan-
       ageChild.

Inherited Attributes
       ----------------------------------------------------------------------
       Attribute Name		   Data Type	    Default
       ----------------------------------------------------------------------
       Core Attributes

       DwtNx			   Position	    Determined by the geome-
						    try manager
       DwtNy			   Position	    Determined by the geome-
						    try manager
       DwtNwidth		   Dimension	    5 pixels
       DwtNheight		   Dimension	    5 pixels
       DwtNborderWidth		   Dimension	    One pixel
       DwtNborder		   Pixel	    Default foreground color
       DwtNborderPixmap 	   Pixmap	    NULL
       DwtNbackground		   Pixel	    Default background color
       DwtNbackgroundPixmap	   Pixmap	    NULL
       DwtNcolormap		   Colormap	    Default color map
       DwtNsensitive		   Boolean	    True
       DwtNancestorSensitive	   Boolean	    The  bitwise  AND of the
						    parent widget's DwtNsen-
						    sitive   and  DwtNances-
						    torSensitive attributes
       DwtNaccelerators 	   XtTranslations   NULL
       DwtNdepth		   int		    Depth of the parent win-
						    dow
       DwtNtranslations 	   XtTranslations   NULL
       DwtNmappedWhenManaged	   Boolean	    True
       DwtNscreen		   Screen *	    The parent screen
       DwtNdestroyCallback	   DwtCallbackPtr   NULL

       Dialog Pop-Up Attributes

       DwtNforeground		   Pixel	    Default foreground color
       DwtNhighlight		   Pixel	    Default foreground color
       DwtNhighlightPixmap	   Pixmap	    NULL
       DwtNuserData		   Opaque *	    NULL
       DwtNfont 		   DwtFontList	    The  default XUI Toolkit
						    font
       DwtNhelpCallback 	   DwtCallbackPtr   NULL
       DwtNdirectionRToL	   NOT SUPPORTED
       DwtNunits		   NOT SUPPORTED
       DwtNtitle		   DwtCompString    Widget name
       DwtNstyle		   unsigned char    DwtModal
       DwtNmapCallback		   DwtCallbackPtr   NULL
       DwtNunmapCallback	   DwtCallbackPtr   NULL
       DwtNfocusCallback	   DwtCallbackPtr   NULL
       DwtNtextMergeTranslations   NOT SUPPORTED
       DwtNmarginWidth		   Dimension	    12 pixels
       DwtNmarginHeight 	   Dimension	    10 pixels
       DwtNdefaultPosition	   Boolean	    False
       DwtNchildOverlap 	   NOT SUPPORTED
       DwtNresize		   unsigned char    DwtResizeShrinkWrap
       DwtNtakeFocus		   Boolean	    True  for  modal  dialog
						    box
						    False  for modeless dia-
						    log box
       DwtNnoResize		   Boolean	    True (that is, no window
						    manager resize button)

       DwtNautoUnmanage 	   Boolean	    True
       DwtNdefaultButton	   NOT SUPPORTED
       DwtNcancelButton 	   NOT SUPPORTED
       ----------------------------------------------------------------------

Widget-Specific Attributes
       ------------------------------------------------------
       Attribute Name	    Data Type	     Default
       ------------------------------------------------------
       DwtNlabel	    DwtCompString    Widget name
       DwtNcancelLabel	    DwtCompString    "Cancel"
       DwtNcancelCallback   DwtCallbackPtr   NULL
       ------------------------------------------------------

       DwtNlabel      Specifies the text in the message line or lines.

       DwtNcancelLabel
		      Specifies the label for the Cancel push button.  If the label is a NULL string, the button is not displayed.

       DwtNcancelCallback
		      Specifies  the callback function or functions called when the user clicks on the Cancel button.  For this callback, the rea-
		      son is DwtCRCancel.

Return Values
       These functions return the ID of the created widget.

Callback Information
       The following structure is returned to your callback:
       typedef struct {
			 int reason;
			 XEvent *event;
       } DwtAnyCallbackStruct;
       The reason member is set to a constant that represents the reason why this callback was invoked.  For this callback, the reason member  can
       be set to:

       DwtCRCancel	    The  user  activated  the
			    cancel push button.

       DwtCRFocus	    The work-in-progress  box
			    has  received  the	input
			    focus.

       DwtCRHelpRequested   The  user  selected  Help
			    somewhere in the work-in-
			    progress box.

       The event member is a pointer to the Xlib structure XEvent, which describes the event that generated this callback.  This  structure  is  a
       union of the individual structures declared for each event type.  For information on XEvent and event processing, see the Guide to the Xlib
       Library: C Language Binding.

See Also
       Guide to the XUI Toolkit: C Language Binding
       Guide to the XUI Toolkit Intrinsics: C Language Binding

																  DwtWorkBox(3Dwt)
Man Page