OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
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
12
namespace
owl
{
13
14
OWL_DIAGINFO
;
15
DIAG_DECLARE_GROUP
(OwlWin);
16
17
//
18
/// Constructs a TControlBar interface object with the specified direction (either
19
/// horizontal or vertical) and window font.
20
//
21
TControlBar::TControlBar
(
TWindow
* parent,
22
TTileDirection
direction,
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
//
42
TControlBar::~TControlBar
()
43
{
44
TRACEX
(OwlWin,
OWL_CDLEVEL
,
"TControlBar destructed @"
<< (
void
*)
this
);
45
}
46
47
}
// OWL namespace
48
/* ========================================================================== */
49
TRACEX
#define TRACEX(group, level, message)
Definition
checks.h:263
owl::TControlBar::~TControlBar
~TControlBar()
Definition
controlb.cpp:42
owl::TControlBar::TControlBar
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
owl::TFont
TFont derived from TGdiObject provides constructors for creating font objects from explicit informati...
Definition
gdiobjec.h:296
owl::TGadgetWindow::TGadgetWindow
TGadgetWindow(TWindow *parent=nullptr, TTileDirection direction=Horizontal, TFont *font=nullptr, TModule *module=nullptr)
Creates a TGadgetWindow interface object with the default tile direction and font and passes module w...
Definition
gadgetwi.cpp:98
owl::TGadgetWindow::SetWantTooltip
void SetWantTooltip(bool wantTooltip)
Definition
gadgetwi.h:496
owl::TGadgetWindow::TTileDirection
TTileDirection
Enumeration describing how gadgets should be laid out within the gadget window.
Definition
gadgetwi.h:130
owl::TModule
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition
module.h:78
owl::TUIMetric::CyFixedFrame
static const TUIMetric CyFixedFrame
Definition
uimetric.h:42
owl::TUIMetric::CxFixedFrame
static const TUIMetric CxFixedFrame
Definition
uimetric.h:41
owl::TWindow
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition
window.h:414
controlb.h
Definition of class TControlBar.
pch.h
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
owl::OWL_DIAGINFO
OWL_DIAGINFO
Definition
animctrl.cpp:14
owl::DIAG_DECLARE_GROUP
DIAG_DECLARE_GROUP(OwlThread)
OWL_CDLEVEL
#define OWL_CDLEVEL
Definition
defs.h:171
owl::TMargins::BorderUnits
@ BorderUnits
Definition
gadget.h:55
uimetric.h
Definition of TUIMetric, a UI metrics provider class.
source
owlcore
controlb.cpp
Generated by
1.18.0