OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
controlb.cpp
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// ObjectWindows
3// Copyright (c) 1992, 1996 by Borland International, All Rights Reserved
4//
5/// \file
6/// Implementation of class TControlBar.
7//----------------------------------------------------------------------------
8#include <owl/pch.h>
9#include <owl/controlb.h>
10#include <owl/uimetric.h>
11
12namespace owl {
13
16
17//
18/// Constructs a TControlBar interface object with the specified direction (either
19/// horizontal or vertical) and window font.
20//
23 TFont* font,
24 TModule* module)
25:
26 TGadgetWindow(parent, direction, font, module)
27{
28 Margins.Units = TMargins::BorderUnits;
29 Margins.Left = Margins.Right = TUIMetric::CxFixedFrame;
30 Margins.Top = Margins.Bottom = TUIMetric::CyFixedFrame;
31
32 // Toolbars default to having tooltips
33 //
34 SetWantTooltip(true);
35
36 TRACEX(OwlWin, OWL_CDLEVEL, "TControlBar constructed @" << (void*)this);
37}
38
39//
40//
41//
43{
44 TRACEX(OwlWin, OWL_CDLEVEL, "TControlBar destructed @" << (void*)this);
45}
46
47} // OWL namespace
48/* ========================================================================== */
49
#define DIAG_DECLARE_GROUP(group)
Definition checks.h:404
#define TRACEX(group, level, message)
Definition checks.h:263
TControlBar(TWindow *parent=0, TTileDirection direction=Horizontal, TFont *font=0, TModule *module=0)
Constructs a TControlBar interface object with the specified direction (either horizontal or vertical...
Definition controlb.cpp:21
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
Definition gdiobjec.h:296
Derived from TWindow, TGadgetWindow maintains a list of tiled gadgets for a window and lets you dynam...
Definition gadgetwi.h:122
void SetWantTooltip(bool wantTooltip)
Definition gadgetwi.h:496
TTileDirection
Enumeration describing how gadgets should be laid out within the gadget window.
Definition gadgetwi.h:130
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition module.h:75
static const TUIMetric CyFixedFrame
Definition uimetric.h:42
static const TUIMetric CxFixedFrame
Definition uimetric.h:41
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition window.h:414
Definition of class TControlBar.
Object Windows Library (OWLNext Core)
Definition animctrl.h:22
OWL_DIAGINFO
Definition animctrl.cpp:14
#define OWL_CDLEVEL
Definition defs.h:171
Definition of TUIMetric, a UI metrics provider class.