OWLNext
7.0
Borland's Object Windows Library for the modern age
Toggle main menu visibility
Loading...
Searching...
No Matches
radiobut.h
Go to the documentation of this file.
1
//----------------------------------------------------------------------------
2
// ObjectWindows
3
// Copyright (c) 1991, 1996 by Borland International, All Rights Reserved
4
//
5
/// \file
6
/// Definition of class TRadioButton. This defines the basic behavior for all
7
/// radio buttons.
8
//----------------------------------------------------------------------------
9
10
#if !defined(OWL_RADIOBUT_H)
11
#define OWL_RADIOBUT_H
12
13
#include <
owl/private/defs.h
>
14
#if defined(BI_HAS_PRAGMA_ONCE)
15
# pragma once
16
#endif
17
18
#include <
owl/checkbox.h
>
19
20
21
namespace
owl
{
22
23
#include <
owl/preclass.h
>
24
25
/// \addtogroup ctrl
26
/// @{
27
/// \class TRadioButton
28
// ~~~~~ ~~~~~~~~~~~~
29
/// Defines an interface object that represents a corresponding radio button element
30
/// in Windows. Use TRadioButton to create a radio button control in a parent
31
/// TWindow object. A TRadioButton object can also be used to facilitate
32
/// communication between your application and the radio button controls of a
33
/// TDialog. object.
34
///
35
/// Radio buttons have two states: checked and unchecked. TRadioButton inherits its
36
/// state management member functions from its base class, TCheckBox. Optionally, a
37
/// radio button can be part of a group (TGroupBox) that visually and logically
38
/// groups its controls. TRadioButton is a streamable class.
39
//
40
class
_OWLCLASS
TRadioButton
41
:
public
TCheckBox
42
{
43
public
:
44
45
TRadioButton
(
TWindow
* parent,
int
id
, LPCTSTR title,
int
x,
int
y,
int
w,
int
h,
TGroupBox
* = 0,
TModule
* = 0);
46
TRadioButton
(
TWindow
* parent,
int
id
,
const
tstring
& title,
int
x,
int
y,
int
w,
int
h,
TGroupBox
* = 0,
TModule
* = 0);
47
TRadioButton
(
TWindow
* parent,
int
resId,
TGroupBox
* = 0,
TModule
* = 0);
48
TRadioButton
(
THandle
hWnd,
TModule
* = 0);
49
50
protected
:
51
// Child id notification handled at the child
52
//
53
void
BNClicked
();
// BN_CLICKED
54
auto
GetWindowClassName
() ->
TWindowClassName
override
;
55
56
private
:
57
// Hidden to prevent accidental copying or assignment
58
//
59
TRadioButton
(
const
TRadioButton
&);
60
TRadioButton
& operator=(
const
TRadioButton
&);
61
62
DECLARE_RESPONSE_TABLE(
TRadioButton
);
63
DECLARE_STREAMABLE_OWL
(
TRadioButton
, 1);
64
};
65
66
DECLARE_STREAMABLE_INLINES
(
owl::TRadioButton
);
67
68
/// @}
69
70
#include <
owl/posclass.h
>
71
72
73
}
// OWL namespace
74
75
76
#endif
// OWL_RADIOBUT_H
checkbox.h
Definition of class TCheckBox.
owl::TCheckBox::TCheckBox
TCheckBox(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TGroupBox *=0, TModule *=0)
constructor for a TCheckBox object
Definition
checkbox.cpp:39
owl::TGroupBox
An instance of a TGroupBox is an interface object that represents a corresponding group box element.
Definition
groupbox.h:50
owl::TModule
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
Definition
module.h:78
owl::TRadioButton
Defines an interface object that represents a corresponding radio button element in Windows.
Definition
radiobut.h:42
owl::TRadioButton::GetWindowClassName
auto GetWindowClassName() -> TWindowClassName override
Returns "BUTTON", the name of the predefined radio button class.
Definition
radiobut.cpp:74
owl::TRadioButton::TRadioButton
TRadioButton(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TGroupBox *=0, TModule *=0)
Constructs a radio button object with the supplied parent window (parent), control ID (id),...
Definition
radiobut.cpp:34
owl::TRadioButton::BNClicked
void BNClicked()
Responds to an incoming BN_CLICKED message.
Definition
radiobut.cpp:92
owl::TWindowClassName
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
Definition
module.h:50
owl::TWindow
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
Definition
window.h:414
owl::TWindow::THandle
HWND THandle
TWindow encapsulates an HWND.
Definition
window.h:418
DECLARE_STREAMABLE_OWL
#define DECLARE_STREAMABLE_OWL(cls, ver)
Definition
objstrm.h:1529
DECLARE_STREAMABLE_INLINES
#define DECLARE_STREAMABLE_INLINES(cls)
Definition
objstrm.h:1538
owl
Object Windows Library (OWLNext Core).
Definition
animctrl.h:22
owl::tstring
std::string tstring
Definition
defs.h:79
defs.h
_OWLCLASS
#define _OWLCLASS
Definition
defs.h:338
posclass.h
preclass.h
include
owl
radiobut.h
Generated by
1.18.0