[TBoolStorage] [Index] [TButtonBase]

Class TButtonBase


File: <toad/buttonbase.hh>

The base class for TPushButton and TRadioButtonBase.

Super Classes

TLabelOwner

Attributes

protected bool bDown
protected bool bInside
protected TBitmap *bitmap
public TSignal sigActivate
public TSignal sigArm
public TSignal sigDisarm

Methods

DrawShadow
protected void DrawShadow(TPen &, bool)
Draws the buttons shadow.
DrawText
protected void DrawText(TPen &, const string&, bool, bool bEnabled=true)
Draws the labels text when no bitmap was loaded or the bitmap.

Attention

`DrawLabel' would be a better name now!
IsDown
public bool IsDown()
LoadBitmap
public bool LoadBitmap(const string&)
TButtonBase objects can display either a text label or a bitmap. When this method succeeds the bitmap is used and `true' is returned.
SetDown
public virtual void SetDown(bool down=true)
`true' will move the button down and trigger `sigArm', `false' will release the button and trigger `sigDisarm'.
TButtonBase
public TButtonBase(TWindow *p, const string &t)
public ~TButtonBase()

This page was generated with Stupid -- Another stupid C++ to HTML generator
Written 1998,99 by The Wizards of Zilog
Copyright © 1998,99 by the TOAD Project