[comp.windows.x] Creating a widget which is subclass of list widget

srinath@salt.uucp (Srinath Ramarathnam) (02/09/89)

 I tried to create a widget which is a subclass of list widget(Athena
 widget). Apart from the resources in the list widget I added a couple
 of more resources. In the application program when I specify a callback
 using XtSetArg and then create the widget(using XtCreateManagedWidget)
 by specifying the Arglist, the callback procedure does not get added
 (the XtCallbackList has no entries). But after creation of the widget if
 I specify a callback using XtAddCallback the callback procedure gets
 added to the CallbackList. This is not the case if list widget is used
 directly.Am I missing out some detail when writing the new widget?
 Advance thanks for a reply.

			Srinath

kit@ATHENA.MIT.EDU (Chris D. Peterson) (02/10/89)

>  In the application program when I specify a callback
>  using XtSetArg and then create the widget(using XtCreateManagedWidget)
>  by specifying the Arglist, the callback procedure does not get added
>  (the XtCallbackList has no entries). But after creation of the widget if
>  I specify a callback using XtAddCallback the callback procedure gets
>  added to the CallbackList.

These two methods take very different arguments.

> Am I missing out some detail when writing the new widget?

I don't think so, barring any name collision the intrinsics should handle things
correctly.  If you are still unable to find the problem, shar up your widget
and test case and send them to me.  I will see if I can spot the problem.


						Chris D. Peterson     
						MIT X Consortium /
						Project Athena 

Net:	kit@athena.mit.edu		
Phone: (617) 253 - 1326			
USMail: MIT - Room E40-321
	77 Massachusetts Ave.		
	Cambridge, MA 02139