[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2462.0. "Prob: Composite class routine not executed" by MDVAX3::WALTON () Fri Mar 16 1990 15:36

Regarding note 2452 I would like to thank Leo for his response.  I modified
my resource list to be of type DwtPartResource instead of XtResource, and 
used the macro DwtPartOffset instead of XtOffset.  It helped and that part 
works.  But on to other problems.

Before I get into the new problem, I would like to say that most of the 
things that I am running into have to do with subclassing.  Examples of widgets
which subclass off something other than the core class would be very helpful.
However, when this same request was made by Olav in the DW_EXAMPLES conference
note #149, he did not receive any examples.  Does that mean no one has done 
this?  (that was a rhetorical question)

Now my real problem.  The widget that I am working on is posted in 2452.
I have modified the initialization of the composite class part of the 
RectArray widget class to specify a "add a child" routine as follows:


    {			/* COMPOSITE CLASS RECORD */
    XtInheritGeometryManager,		/* children's geometry mgr. */
    XtInheritChangeManaged,		/* set changed proc */
    (XtWidgetProc)RectArrayAddChild,	/* add a child */
    XtInheritDeleteChild,		/* remove a child */
    NULL				/* extension */
    },

However, when I execute my example, that routine is not being executed.  All
routines referenced in the core class part work, but not this routine 
referenced in the composite class part.

Any suggestions or examples of subclassed widgets?
T.RTitleUserPersonal
Name
DateLines
2462.1LEOVAX::TREGGIARISat Mar 17 1990 09:146
    I can't see any reason for it not being called.  Try examining your
    widget class record with the debugger to see if the composite class
    fields are being initialized correctly 
    (examine your_class_name.composite_class).
    
    Leo