73 TPopupGuard(
const TPopupGuard&) =
delete;
74 TPopupGuard(TPopupGuard&&) =
delete;
75 auto operator =(
const TPopupGuard&) -> TPopupGuard& =
delete;
76 auto operator =(TPopupGuard&&) -> TPopupGuard& =
delete;
86bool TPopupGuard::Flag =
false;
262 if (TPopupGuard::IsPopupActive())
return;
275 Bounds.right-Bounds.left,Bounds.bottom-Bounds.top).
Contains(p)){
298 if (TPopupGuard::IsPopupActive())
return;
309 if (TPopupGuard::IsPopupActive())
return;
321 if (TPopupGuard::IsPopupActive())
return;
329 if (TPopupGuard::IsPopupActive())
return;
400 Window->ClientToScreen(
p1);
403 Window->ClientToScreen(
p2);
406 tpm.rcExclude.top =
p1.y;
407 tpm.rcExclude.left = 0;
408 tpm.rcExclude.bottom =
p2.y;
409 tpm.rcExclude.right = 32000;
412 if(!IsWindow(Window->GetHandle()))
Definition of a bitmap Cel array class.
#define PRECONDITION(condition)
#define DIAG_DECLARE_GROUP(group)
Derived from TButtonGadget, TButtonTextGadget represents buttons with bitmap and text,...
virtual void Layout(TRect &srcRect, TRect &textRect, TRect &btnRect)
Layout button and text in the control area.
virtual void SetBounds(const TRect &rect)
If (Style & sBitmap) calls TButtonGadget::SetBounds; otherwise calls TGadget::SetBounds to set the bo...
TStyle
TStyle contains values that defines how gadget will be displayed:
@ sBitmap
Only the bitmap is displayed.
@ sText
Only text is displayed.
virtual void PaintText(TDC &dc, TRect &rect, const tstring &text)
Paint Text.
virtual void GetDesiredSize(TSize &size)
Calls TButtonGadget::GetDesiredSize if (Style & sBitmap); calls TGadget::GetDesiredSize and adds the ...
Class wrapper for management of color values.
static const TColor SysBtnText
The symbolic system color value for the text on buttons.
static const TColor Sys3dHilight
The symbolic system color value for highlighted 3-dimensional display elements (for edges facing the ...
static const TColor Sys3dShadow
The symbolic system color value for the shadow regions of 3-dimensional display elements (for edges f...
TDC is the root class for GDI DC wrappers.
bool MoveTo(int x, int y)
Moves the current position of this DC to the given x- and y-coordinates or to the given point.
TColor SetPixel(int x, int y, const TColor &color)
Sets the color of the pixel at the given location to the given color and returns the pixel's previous...
void SelectObject(const TBrush &brush)
Selects the given GDI brush object into this DC.
void RestorePen()
Restores the original GDI pen object to this DC.
bool LineTo(int x, int y)
Draws a line on this DC using the current pen object.
bool IsHaveMouse() const
Return true if mouse inside gadget.
TRect & GetBounds()
Returns the boundary rectangle for the 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.
void SetInMouse(bool state)
Sets if mouse inside gadget or not.
TGadgetWindow * GetGadgetWindow()
Return a pointer to the owning or parent window for the gadget.
bool GetEnabled() const
Determines whether keyboard and mouse input have been enabled for the specified gadget.
void Update()
Paint now if possible.
TGadget * GadgetGetCaptured()
Retrieves gadget with capture.
static uint GetFlatStyle()
Returns the flat style.
@ FlatXPTheme
Windows XP theme styles.
@ FlatStandard
Flat style IE 3.0 - base style.
void GadgetReleaseCapture(TGadget &gadget)
Releases the capture so that other windows can receive mouse messages.
TPen is derived from TGdiObject.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
bool Contains(const TPoint &point) const
Returns true if the given point lies within this rectangle; otherwise, it returns false.
The tagSIZE struct is defined as.
Assists in drawing borders of many styles.
@ Flat
Flat instead of 3d for use in non-3d windows.
@ Soft
Soft edge look for buttons.
TEdge
Enumeration describing the type of edge to be drawn.
@ RaisedInner
Raised inner edge only.
@ SunkenOuter
Sunken outer edge only.
@ EdgeSunken
Both inner & outer sunken.
@ EdgeRaised
Both inner & outer raised.
void Paint(TDC &dc) const
Paints this UIBorder object onto a given device context.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition of TGadgetList, TGadgetWindow & TGadgetWindowFont A list holding gadgets,...
Object Windows Library (OWLNext Core)
Definition of the UI Helper Classes: TUIHandle, TUIBorder, TUIFace, TUIPart.