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

Getting a VisText to display itself.



Q. We've got a simple application that has a dialog brought up by
   MSG_GEN_INTERACTION_INITIATE. In that dialog are a GenView and two
   triggers. In the GenView are a VisContent and a VisText under that.

   The problem? Even though apparently the text gets added to the VisText
   object's VTI_text chunk, the text object never displays it.

A. VisText doesn't do any geometry handling, so you have to do it yourself.
   (Presumably there's a good reason you are not using a GenText.) The
   content and text object will have zero bounds, since nothing has been
   done. If the content's bounds are zero, nothing will get drawn. You
   should at least stuff bounds for the text object, the content will
   follow suit.