FSTextControl

 

Derived from: public BTextControl, public FSLeftLabelView

Declared in: FSTextControl.h

Library: none


Overview

BTextControl-derived class which provides font-sensitivity.

 


Constructor and Destructor


FSTextControl()

 
      FSTextControl(const char* name, const char* label, const char* text, BMessage* message,
            float entry_area_width = -1, uint32 resizing_mode = B_FOLLOW_LEFT|B_FOLLOW_TOP,
            uint32 flags = B_WILL_DRAW|B_NAVIGABLE)
 
 

Creates a FSTextControl at the minimum size necessary to accommodate the label and the content text entry area. If entry_area_width is less than 0, the width of the entry area is set appropriately for text plus a few extra pixels. The BInvoker portion of the inheritance chain takes ownership of the message. The divider is set to a position appropriate for the label.


Member Functions


SetFont()

 
      virtual void SetFont(const BFont* font, uint32 properties = B_FONT_ALL)
 

Augments the BTextControl version of SetFont() to resize the view to accommodate the label and the content text entry area. The content text entry area size is determined based on the entry_area_width passed to teh FSTextControl constructor: If entry_area_width is less than 0, the width of the entry area is set appropriately for text plus a few extra pixels.


By Brian Tietz

Copyright 2000

Bug reports (including documentation errors) and feature requests can be sent to briant@timelinevista.com.