Article View: comp.windows.x
Article #38027Re: Problems subclassing Athena widgets
From: palmer
Date: Tue, 13 Mar 1990 15:02
Date: Tue, 13 Mar 1990 15:02
37 lines
1409 bytes
1409 bytes
> Subject: Problems subclassing Athena widgets
> Message-Id: <102193@linus.UUCP>
> Sender: xpert-request@expo.lcs.mit.edu
> To: xpert@expo.lcs.mit.edu
>
> Summary:
> Warning: Representation size 4 must match superclass's
> to override fooBar
>
> Then, in Barfo.c, I have the following:
>
> #define offset(field) XtOffset(BarfoWidget, field)
>
> static XtResource resources[] = {
> { XtNfooBar, XtCfooBar, XtRInt, sizeof(int),
> offset(xopcmd.w_foo_bar), XtRInt, (int) 100 },
> };
> #undef offset
>
Chris,
The problem is in the default_addr field. Try :
> offset(xopcmd.w_foo_bar), XtRInt, (XtPointer) 100 },
^^^^^^^^^^^ ^^^
------------------------------------------------------
Forrest Palmer (x5668)
Systems Programmer/Administrator
MITRE Corp. - Washington Center
palmer@mwunix.mitre.org
------------------------------------------------------
Technical Details
Message-ID:
<9003131502.AA01661@mwunix.mitre.org>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!MWUNIX.MITRE.ORG!palmerReferences:
<102193@linus.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!mcgill-vision!bloom-beacon!MWUNIX.MITRE.ORG!palmer From: palmer@MWUNIX.MITRE.ORG Newsgroups: comp.windows.x Subject: Re: Problems subclassing Athena widgets Message-ID: <9003131502.AA01661@mwunix.mitre.org> Date: 13 Mar 90 15:02:10 GMT References: <102193@linus.UUCP> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 37