Publisher: Borland International
Year: 1995
Language: English
Pages: 163
City: Scotts Valley, CA
READER TIPS......Page 0
TABLES......Page 162
Manual conventions......Page 5
Creating original controls......Page 11
Controlling access......Page 24
Types of properties......Page 32
Deriving a property-editor object......Page 39
Setting the property value......Page 40
Registering the property editor......Page 42
Pictures, graphics, and canvases......Page 61
Responding to changes......Page 65
8.1 Component-screen Help search footnotes......Page 79
Declaring the interface routine......Page 130
FIGURES......Page 163
How do you create components?......Page 10
Using the Component Expert......Page 18
CHAPTER 14: Building a dialog box into a DLL......Page 129
The functional definition of "component"......Page 1
Component writing is nonvisual......Page 2
Creating a component (summary)......Page 3
Part II, "Sample components"......Page 4
PART I: Creating components......Page 7
The Visual Component Library......Page 9
Subclassing Windows controls......Page 12
Removing dependencies......Page 13
Properties......Page 14
Graphics encapsulation......Page 15
Creating a component manually......Page 16
Testing uninstalled components......Page 19
Summary......Page 20
Creating new objects......Page 21
Deriving new types......Page 22
Ancestors and descendants......Page 23
Hiding implementation details......Page 25
Defining the run-time interface......Page 26
Dispatching methods......Page 27
Virtual methods......Page 28
Summary......Page 30
Why create properties?......Page 31
Publishing inherited properties......Page 33
The property declaration......Page 34
Access methods......Page 35
Default property values......Page 36
Creating array properties......Page 37
Writing property editors......Page 38
Editing the property as a whole......Page 41
Summary......Page 43
What are events?......Page 45
Events are method pointers......Page 46
Event-handler types are procedures......Page 47
Event handlers are optional......Page 48
Making events visible......Page 49
Defining your own events......Page 50
Triggering the event......Page 51
Event-specific handlers......Page 52
Calling the event......Page 53
Summary......Page 54
Avoiding interdependencies......Page 55
Protecting methods......Page 56
Making methods virtual......Page 57
Summary......Page 58
Overview of Delphi graphics......Page 59
Using the canvas......Page 60
Handling palettes......Page 62
Creating and managing offscreen bitmaps......Page 64
Summary......Page 66
Understanding the message-handling system......Page 67
Dispatching methods......Page 68
Overriding the handler method......Page 69
Trapping messages......Page 70
Defining your own messages......Page 71
Declaring a new message-handling method......Page 72
Summary......Page 73
Registering components with Delphi......Page 75
Implementing the Register procedure......Page 76
How Delphi handles Help requests......Page 77
Merging your Help into Delphi......Page 78
Storing and loading properties......Page 80
Specifying default values......Page 81
Determining what to store......Page 82
Summary......Page 83
PART II: Sample components......Page 85
Creating and registering the component......Page 87
Overriding the constructor......Page 88
Specifying the new default property value......Page 89
Summary......Page 90
Creating and registering the component......Page 91
Publishing inherited properties......Page 92
Declaring the property type......Page 93
Changing default property values......Page 94
Declaring the object fields......Page 95
Initializing owned objects......Page 96
Setting owned objects' properties......Page 97
Drawing the component image......Page 98
Refining the shape drawing......Page 99
Summary......Page 100
Creating and registering the component......Page 101
Publishing inherited properties......Page 102
Resizing the cells......Page 103
Filling in the cells......Page 104
Storing the internal date......Page 105
Accessing the day, month, and year......Page 106
Generating the day numbers......Page 107
Selecting the current day......Page 109
Navigating months and years......Page 110
Providing an OnChange event......Page 111
Excluding blank cells......Page 112
Summary......Page 113
Creating and registering the component......Page 115
Adding the ReadOnly property......Page 116
Allowing needed updates......Page 117
Declaring the access properties......Page 118
Initializing the data link......Page 119
Responding to data changes......Page 120
Summary......Page 121
Defining the component interface......Page 123
Creating the component interface......Page 124
Adding interface properties......Page 125
Adding the Execute method......Page 126
Testing the component......Page 127
Summary......Page 128
The new object model......Page 137
Protected parts......Page 138
Class methods......Page 139
Reference model......Page 140
Method pointers......Page 141
Run-time type information......Page 142
Property syntax......Page 143
Array properties......Page 144
Default array properties......Page 145
Changes in method dispatching......Page 146
Message-handling methods......Page 147
Abstract methods......Page 148
Virtual constructors......Page 149
Implementing the interface routine......Page 131
Opening the dialog box from an application......Page 132
Opening the dialog box from a Paradox application......Page 133
Opening the dialog box from a C/C++ application......Page 134
Summary......Page 135
A - C......Page 151
D - E......Page 152
F - M......Page 153
N - P......Page 154
R - S......Page 155
T - Y......Page 156