#include <dialogs.h>
Inheritance diagram for TLabel::
Public Methods | |
TLabel (const TRect &bounds, const char *aText, TView *aLink) | |
virtual void | draw () |
virtual TPalette& | getPalette () const |
virtual void | handleEvent (TEvent &event) |
virtual void | shutDown () |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TLabel (StreamableInit) | |
virtual void | write (opstream &os) |
virtual void* | read (ipstream &is) |
Protected Attributes | |
TView* | link |
Boolean | light |
A TLabel object is a piece of text in a view that can be selected (highlighted) by a mouse click, cursor keys, or Alt-letter hot key. The label is usually "attached" via a pointer (called link) to some other control view such as an input line, cluster, or list viewer to guide the user.
Definition at line 2056 of file dialogs.h.
|
Constructor. Creates a TLabel object of the given size and text by calling TStaticText::TStaticText(bounds, aText), then setting the link data member to `aLink' for the associated control (make `aLink' 0 if no control is needed).
|
|
Each streamable class needs a "builder" to allocate the correct memory for its objects together with the initialized virtual table pointers. This is achieved by calling this constructor with an argument of type StreamableInit. |
|
Creates a new TLabel. Called to create an object in certain stream-reading situations. Reimplemented from TStaticText. |
|
Draws the label with the appropriate colors from the default palette. Reimplemented from TStaticText. |
|
Returns a reference to the label palette. Reimplemented from TStaticText. |
|
Handles TLabel events. Handles all events by calling TView::handleEvent(). If an evMouseDown or hot key event is received, the appropriate linked control (if any) is selected with link->select().
Reimplemented from TView. |
|
Used to recover the view from a stream. Reads from the input stream `is'. Reimplemented from TStaticText. |
|
Releases TLabel resources. Used internally by TObject::destroy() to ensure correct destruction of derived and related objects. shutDown() is overridden in many classes to ensure the proper setting of related data members when destroy() is called. 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. Reimplemented from TView. |
|
Used to store the view in a stream. Writes to the output stream `os'. Reimplemented from TStaticText. |
|
If True, the label and its linked control has been selected and will be highlighted. Otherwise, light is set to False. |
|
This is a pointer to the view to focus when the user selects this label. |
|
Undocumented. Reimplemented from TStaticText. |