36 Margins.Left = Margins.Right = 0;
37 Margins.Top = Margins.Bottom = 0;
39 ShrinkWrapWidth =
true;
56 bg->SetNotchCorners(
false);
86 (NumGadgets + NumColumns - 1) / NumColumns :
89 (NumGadgets + NumRows - 1) / NumRows :
98TToolBox::ComputeCellSize(TSize&
cellSize)
102 for (
TGadget*
g = Gadgets;
g;
g =
g->NextGadget()) {
127 int left, right, top, bottom;
128 GetMargins(Margins, left, right, top, bottom);
129 size.cx = left + right;
130 size.cy = top + bottom;
189 if (
bounds !=
g->GetBounds()) {
TGadget is the base class for the following derived gadget classes:
TPlacement
Enumerates the placement of a gadget.
Derived from TFont, TGadgetWindowFont is the default font used by TGadgetWindow.
Derived from TWindow, TGadgetWindow maintains a list of tiled gadgets for a window and lets you dynam...
void Insert(TGadget &, TPlacement=After, TGadget *sibling=nullptr) override
Inserts a gadget before or after a sibling gadget (TPlacement).
virtual void GetInnerRect(TRect &rect)
GetInnerRect computes the rectangle inside of the borders and margins of the gadget.
virtual void SetDirection(TTileDirection direction)
Sets the horizontal or vertical orientation of the gadgets.
virtual void LayoutSession()
LayoutSession is typically called when a change occurs in the size of the margins or gadgets,...
TTileDirection
Enumeration describing how gadgets should be laid out within the gadget window.
@ Horizontal
Arrange gadgets in a row.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
The tagSIZE struct is defined as.
static const TUIMetric CyBorder
static const TUIMetric CxBorder
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
bool SetWindowPos(HWND hWndInsertAfter, const TRect &rect, uint flags)
Changes the size of the window pointed to by rect.
const int AS_MANY_AS_NEEDED
Arranges its gadgets in a matrix.
Object Windows Library (OWLNext Core)
#define TYPESAFE_DOWNCAST(object, toClass)
Definition of TUIMetric, a UI metrics provider class.