home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x.motif
- Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!nsisrv!kong!dealy
- From: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
- Subject: problem subclassing off BulletinBoard for RectObj Children
- Message-ID: <1992Aug31.122105.1656@kong.gsfc.nasa.gov>
- Keywords: widget RectObj Motif BulletinBoard
- Sender: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
- Reply-To: dealy@kong.gsfc.nasa.gov (Brian Dealy - CSC)
- Organization: Goddard Space Flight Center
- Date: Mon, 31 Aug 92 12:21:05 GMT
- Lines: 42
-
-
-
- --
-
- Hi, I have written a container widget which I would like to make a subclass ofd
- XmBulletinBoard. The widget accepts RectObj subclasses as children and maintains
- stacking order for them and distributes events to the children. As a child of
- Bulletin Board I get the following feedback from dbx after it dumps core.
-
- warning: object file read error: text address not found
- ConvertATranslation() at 0xf7791778
- XtInstallAccelerators() at 0xf7791d7c
- `Manager`ConstraintInitialize() at 0x23764
- CallConstraintInitialize() at 0xf77759a0
- CallConstraintInitialize() at 0xf7775978
- CallConstraintInitialize() at 0xf7775978
- _XtCreate() at 0xf7775d28
- _XtCreateWidget() at 0xf7775f80
- XtCreateWidget() at 0xf7776010
- XtCreateManagedWidget() at 0xf7776034
- main() at 0x2ac0
-
- this occurs when I add an RectObj subclass to the container. It takes widget children fine. I have the code segment in my manager widget which says:
- #ifdef X11R4_INTRINSICS
- static CompositeClassExtensionRec ext;
-
- ext.next_extension = NULL;
- ext.record_type = NULLQUARK;
- ext.version = XtCompositeExtensionVersion;
- ext.record_size = sizeof(CompositeClassExtensionRec);
- ext.accepts_objects = True;
- genManagerClassRec.composite_class.extension = (XtPointer) &ext;
- #endif
-
- I got this from the athena tools plotter widget and it worked
- fine until I switched from subclassing off constraint to BulletinBoard.
-
- A friend says this is a problem with Bulletin Board (or maybe XmManager).
- Anybody know about this? any info will be greatly appreciated. Thanks
- Brian Dealy
- dealy@kong.gsfc.nasa.gov
-