23# if defined(BI_COMP_BORLANDC)
36class TButtonGadgetEnabler :
public TCommandEnabler {
55 TButtonGadget* Gadget;
59# if defined(BI_COMP_BORLANDC)
68TButtonGadgetEnabler::Enable(
bool enable)
78TButtonGadgetEnabler::SetText(
LPCTSTR)
91TButtonGadgetEnabler::SetCheck(
int state)
133 BitmapOrigin.x = BitmapOrigin.y = 0;
203#if defined(BI_COMP_GNUC)
244#if defined(BI_COMP_GNUC)
273#if defined(BI_COMP_GNUC)
326 _T(
" size ") << size);
332 if (!CelArray && GlyphIndex < 0)
337 _T(
" size ") << size);
424 SharingGlyph =
false;
622#if defined(BI_COMP_GNUC)
629#if defined(BI_COMP_GNUC)
638#if defined(BI_COMP_GNUC)
646#if defined(BI_COMP_GNUC)
669#if defined(BI_COMP_GNUC)
Definition of a bitmap Cel array class.
#define PRECONDITION(condition)
#define DIAG_DECLARE_GROUP(group)
#define TRACEX(group, level, message)
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.
static const TColor Sys3dFace
The symbolic system color value for the face color of 3-dimensional display elements.
uint GetId() const
Retrieves the id of the command.
virtual void Enable(bool enable=true)
Enables or disables the command sender.
TCommandEnabler(uint id, HWND hWndReceiver=0)
Constructs the TCommandEnabler object with the specified command ID.
TDC is the root class for GDI DC wrappers.
Pseudo-GDI object Device Independent Bitmap (DIB) class.
TGadget is the base class for the following derived gadget classes:
bool IsHaveMouse() const
Return true if mouse inside gadget.
TRect & GetBounds()
Returns the boundary rectangle for the gadget.
virtual void LButtonDown(uint modKeys, const TPoint &point)
Captures the mouse if TrackMouse is set.
virtual void MouseMove(uint modKeys, const TPoint &point)
Mouse is moving over this gadget.
virtual void MouseEnter(uint modKeys, const TPoint &point)
Mouse is entering this gadget.
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.
virtual void MouseLeave(uint modKeys, const TPoint &point)
Mouse is leaving this gadget.
virtual bool PtIn(const TPoint &point)
Default behavior returns true if the point is within the receiver's bounding rect.
void SetInMouse(bool state)
Sets if mouse inside gadget or not.
void ChangeBorderStyle(TBorderStyle bs)
Simply changes the border style without recalculating the gadget size.
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.
virtual void SysColorChange()
Called when the system colors have been changed so that gadgets can rebuild and repaint,...
void SetTrackMouse(bool track)
@ Recessed
Recessed into the window.
@ None
No border painted at all.
@ ButtonUp
Button in up position.
@ Raised
Raised above the gadget window.
@ ButtonDn
Button in down position.
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.
TGadget * NextGadget()
Returns the next gadget in the list of gadgets.
virtual void PaintBorder(TDC &dc)
Self sent by method Paint().
virtual void LButtonUp(uint modKeys, const TPoint &point)
Releases the mouse capture if TrackMouse is set.
int GetId() const
Gets the ID for the gadget.
TGadget * NextGadget(TGadget &gadget) const
Returns the next gadget in the list relative to a given gadget.
TGadget * GadgetGetCaptured()
Retrieves gadget with capture.
void SetHintCommand(int id)
(id <= 0) to clear
static uint GetFlatStyle()
Returns the flat style.
@ FlatGrayButtons
Adds Gray buttons effect to FlatStandard.
@ FlatStandard
Flat style IE 3.0 - base style.
virtual TCelArray & GetCelArray(int minX=0, int minY=0)
Gets the Shared CelArray for this gadget window.
@ EnterHints
Hints when the mouse passes over a gadget.
@ PressHints
Hints when a button is pressed.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
bool IsString() const
Returns true if this resource identifier encodes a string pointer.
The tagSIZE struct is defined as.
Encapsulates a themed part.
TUIFace assists in painting UI elements in various states.
TState
Enumeration describing the state of the bitmap to be drawn.
@ Disabled
Disabled or Unavailable state (embossed 3d no color)
@ Indeterm
Indeterminant, or mixed-value state.
@ Down
Down or Option set state (hilit background, +1,+1)
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,...
char * strnewdup(const char *s, size_t minAllocSize=0)
Object Windows Library (OWLNext Core)
LPARAM TParam2
Second parameter type.
#define TYPESAFE_DOWNCAST(object, toClass)
Definition of TSystem, a system information provider class.
Microsoft UxTheme Library Encapsulation.
Definition of the UI Helper Classes: TUIHandle, TUIBorder, TUIFace, TUIPart.
Definition of TUIMetric, a UI metrics provider class.