Re: How to get the width of a container
MaysonG@aol.com
Tue, 24 Dec 1996 00:36:14 -0500
One way, not documented and not guaranteed to be supported, but which I have
found to work reasonably well, is Views.HostOf():
given your frame, it returns the containing frame. Note that the containing
frame may go away, change size, etc, so you probably have to check it each
time. The recommended way to set your size will include calling
yourView.context.SetSize(), and checking your size afterward.