130 TRACEX(
OwlGadget, 1,
"TBitmapGadget::GetDesiredSize() called @" <<
this);
180# if defined(BI_COMP_BORLANDC)
197 void SetCheck(
int state);
200 TDynamicBitmapGadget* Gadget;
202# if defined(BI_COMP_BORLANDC)
207void TDynamicBitmapGadgetEnabler::Enable(
bool enable)
214void TDynamicBitmapGadgetEnabler::SetCheck(
int state)
Definition of class TBitmapGadget Definition of class TDynamicBitmapGadget.
Definition of a bitmap Cel array class.
#define PRECONDITION(condition)
#define DIAG_DECLARE_GROUP(group)
#define TRACEX(group, level, message)
Derived from TGadget, TBitmapGadget is a simple gadget that can display an array of bitmap images one...
void SetBounds(const TRect &boundRect)
Set the bounding rect for this button gadget.
void SysColorChange()
When the system colors have been changed, SysColorChange is called by the gadget window's EvSysColorC...
TBitmapGadget(TResId imageResIdOrIndex, int id, TBorderStyle borderStyle, int numImages, int startImage=0, bool sharedCels=false)
Construct a bitmap gadget.
void Paint(TDC &dc)
Paint this bitmap gadget. Uses normal borders, plus draws the image centered.
~TBitmapGadget()
Destruct a bitmap gadget and free its resources.
int SelectImage(int imageNum, bool immediate)
Choose the relative image to display.
virtual TCelArray * CreateCelArray(TResId resId, int numImages) const
void GetDesiredSize(TSize &size)
Find out how big this bitmap gadget wants to be.
TCelArray is a horizontal array of cels (a unit of animation) created by slicing a portion of or an e...
TSize CelSize() const
Return the size of the celarray.
Base class for an extensible interface for auto enabling/disabling of commands (menu items,...
uint GetId() const
Retrieves the id of the command.
virtual void Enable(bool enable=true)
Enables or disables the command sender.
TDC is the root class for GDI DC wrappers.
Pseudo-GDI object Device Independent Bitmap (DIB) class.
Class will send EvEnable message to window, so you can set bitmap, using SetCheck() method of TComman...
TDynamicBitmapGadget(TResId imageResIdOrIndex, int id, TBorderStyle borderStyle, int numImages, int startImage=0, bool sharedCels=false)
TDynamicBitmapGadget Constructor.
virtual void CommandEnable()
TGadget is the base class for the following derived gadget classes:
void Invalidate(bool erase=true)
Used to invalidate the active (usually nonborder) portion of the gadget, Invalidate calls InvalidateR...
void GetInnerRect(TRect &rect)
Computes the area of the gadget's rectangle excluding the borders and margins.
TGadgetWindow * GetGadgetWindow()
Return a pointer to the owning or parent window for the gadget.
virtual void SetBounds(const TRect &rect)
Called by the gadget window to inform the gadget of a change in its bounding rectangle.
bool GetEnabled() const
Determines whether keyboard and mouse input have been enabled for the specified gadget.
TBorderStyle
Gadget border styles.
virtual void SetEnabled(bool enabled)
Enables or disables keyboard and mouse input for the gadget.
void Update()
Paint now if possible.
virtual void GetDesiredSize(TSize &size)
Request by the gadget window to query the gadget's desired size.
virtual void PaintBorder(TDC &dc)
Self sent by method Paint().
virtual TCelArray & GetCelArray(int minX=0, int minY=0)
Gets the Shared CelArray for this gadget window.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
TResult HandleMessage(TMsgId, TParam1=0, TParam2=0)
Dispatches the given message using the response table.
HWND THandle
TWindow encapsulates an HWND.
#define WM_COMMAND_ENABLE
Definition of TGadgetList, TGadgetWindow & TGadgetWindowFont A list holding gadgets,...
Object Windows Library (OWLNext Core)
LPARAM TParam2
Second parameter type.