TLabel Class Reference

[tvision Index] [tvision Hierarchy] [Headers]


Attach a label to a view More...

#include <dialogs.h>

Inherits: TStaticText

Public Members

Protected Members


Detailed Description

Used to attach a label to a given view.

Useful mainly with list boxes, check boxes and radio buttons, since they don't have a default caption.

See Also: TCheckBoxes, TListBox, TRadioButtons


TLabel( const TRect& bounds, const char *aText, TView *aLink ) [public]

Constructor.

`bounds' is the bounding rectangle of the view. `aText' is the caption to show. `aLink' is a pointer to the view which will be focused when the user selects this label.

void draw() [public virtual]

Draws the view.

TPalette& getPalette() const [public virtual]

Returns a reference to the label palette.

void handleEvent( TEvent& event ) [public virtual]

Handles TLabel events.

void shutDown() [public virtual]

Releases TLabel resources.

This method releases all the resources allocated by the TLabel. It sets pointer `link' to 0 and then calls TStaticText::shutDown(). Since TStaticText::shutDown() is not implemented, TView::shutDown() will be called instead.

See Also:
TView::shutDown

TStreamable* build() [public static]

Creates a new TLabel.

Used to recover the view from a stream.

TView *link[protected]

This is a pointer to the view to focus when the user selects this label.

Boolean light[protected]

This variable is used to redraw the label with bright colors if the view pointed by `link' is currently focused.

TLabel( StreamableInit ) [protected]

Constructor.

Used to recover the view from a stream.

void write( opstream& os ) [protected virtual]

Used to store the view in a stream.

void* read( ipstream& is ) [protected virtual]

Used to recover the view from a stream.


Documentation generated by sergio@athena.milk.it on Wed Feb 10 22:11:47 CET 1999
Kdoc