Derived from: BTextView
Declared in: myTextView.h
Library: not currently in a library--someday I hope!
The MyTextView Class is used as a simple (or not so simple) multi-line text entry box. It is a wrapper for the BeOS BTextView class.
This is the constructor. The first parameter, paramName is passed on to the BTextView. The second parameter, paramText is the text with which the gadget initially opens (it may be NULL).
The third and fourth parameters, fparamMaxWidth and fparamMaxHeight control the width and height of the text box.
The fifth parameter, lpparamLayoutMatrix is the LayoutMatrix to which this gadget will be attached.
There is a bit of code in this CTOR, it most all deals with text, filling the box and setting the style, size and color. The text entry region is limited to not being resizable, as doing so could cover up other gadgets.
This is the destructor. It does nothing.
This just overrides the BTextControl method to provide color control, it calls the inherited version.
The BTextView class's method GetPreferredSize() has some problems, so I have provided a replacement which works for my needs.
for version 0.4.2
Copyright © 1998 Ed Musgrove Be Developer #2076. All rights reserved.
edgar@harbornet.com
emusgrov@linknet.kitsap.lib.wa.us
Last modified November 25, 1998.