FSButton

 

Derived from: public BButton, public FSView

Declared in: FSButton.h

Library: none


Overview

BButton-derived class which provides font-sensitivity for the label text.

 


Constructor and Destructor


FSButton()

 
      FSButton(const char *name, const char *label, BMessage *message,
            button_width width_mode = B_WIDTH_FROM_LABEL,
            uint32 resize_mask = B_FOLLOW_LEFT|B_FOLLOW_TOP,
            uint32 flags = B_WILL_DRAW|B_NAVIGABLE)
 

Creates a FSButton at the minimum size necessary to accommodate the label..


Member Functions


SetFont()

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

Augments the BButton version of SetFont() to resize the button to accommodate the label.


By Brian Tietz

Copyright 2000

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