Article # 29, added by Geoworks, historical record
| first | previous | index | next | last |

Content as a child of another content



Q:
I've got a VisContent object as a child of a GenDocument. The GenDocument
is acting as the content of a GenView. For some weird reason, the
MSG_VIS_DRAW is not reaching the VisContent. Can you tell me why? 

A:
You can't have a VisContent under a GenDocument. This is because
GenDocuments are subclasses of GenContent, and GenContent resolves into a
VisContent at run-time. And, you can't have a VisContent under another
VisContent and expect things to work. Change the VisContent to a VisComp
and everything will work fine.