Component writer's guide : Borland Delphi for Windows 95 and Windows NT : version 2.0

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Publisher: Borland International
Year: 1995

Language: English
Pages: 188
City: Scotts Valley, CA
Tags: Библиотека;Компьютерная литература;Borland Delphi / CodeGear Delphi;

Component Writer’s Guide......Page 1
Contents......Page 3
Tables & Figures......Page 7
Class library......Page 9
Components and classes......Page 10
Modifying existing controls......Page 11
Creating graphic controls......Page 12
Removing dependencies......Page 13
Properties......Page 14
Encapsulating graphics......Page 15
Creating a new component......Page 16
Creating a component with the Componentwizard......Page 17
Creating a unit file......Page 19
Deriving the component......Page 20
Creating a bitmap for a component......Page 21
Installing a component on the Component palette......Page 23
Testing uninstalled components......Page 24
Testing installed components......Page 26
Ch 2: Object-oriented programming for component writers......Page 27
To change class defaults to avoidrepetition......Page 28
Ancestors, descendants, and class hierarchies......Page 29
Controlling access......Page 30
Hiding implementation details......Page 31
Defining the runtime interface......Page 32
Static methods......Page 33
Overriding methods......Page 34
Dynamic methods......Page 35
Classes and pointers......Page 36
Why create properties?......Page 37
Types of properties......Page 38
Defining properties......Page 39
Internal data storage......Page 40
Access methods......Page 41
The read method......Page 42
Default property values......Page 43
Creating array properties......Page 44
Creating properties for subcomponents......Page 45
Storing and loading properties......Page 47
Specifying default values......Page 48
Determining what to store......Page 49
Storing and loading unpublished properties......Page 50
Overriding the DefineProperties method......Page 51
What are events?......Page 53
Events are method pointers......Page 54
Event-handler types are procedures......Page 55
Event handlers are optional......Page 56
Standard events for standard controls......Page 57
Changing the standard event handling......Page 58
Two kinds of events......Page 59
Returning information from the handler......Page 60
Calling the event......Page 61
Avoiding dependencies......Page 63
Protecting methods......Page 64
Abstract methods......Page 65
Declaring methods......Page 66
Overview of graphics......Page 67
Working with pictures......Page 69
Loading and storing graphics......Page 70
Specifying a palette for a control......Page 71
Creating and managing off-screen bitmaps......Page 72
Responding to changes......Page 73
Ch 7: Handling messages and system notifications......Page 75
What’s in a Windows message?......Page 76
Tracing the flow of messages......Page 77
Using message parameters......Page 78
Trapping messages......Page 79
Declaring a message-record type......Page 80
Declaring a new message-handling method......Page 81
Broadcasting a message to all controlsinaform......Page 82
Sending a message using the Windowsmessagequeue......Page 83
Responding to system notifications using CLX......Page 84
Assigning custom signal handlers......Page 85
Responding to system events......Page 86
Commonly used events......Page 87
Generating Qt events......Page 89
Registering components......Page 91
Writing the Register procedure......Page 92
Using the RegisterComponents function......Page 93
Creating the entries......Page 94
Adding property editors......Page 96
Deriving a property-editor class......Page 97
Displaying the property value......Page 98
Setting the property value......Page 99
Editing the property as a whole......Page 100
Specifying editor attributes......Page 101
Registering the property editor......Page 102
Registering one property at a time......Page 103
Specifying property categories......Page 104
Using the IsPropertyInCategory function......Page 105
Specifying menu items......Page 106
Implementing commands......Page 107
Changing the double-click behavior......Page 108
Registering the component editor......Page 109
Compiling components into packages......Page 110
Creating and registering the component......Page 111
Overriding the constructor......Page 112
Specifying the new default property value......Page 113
Creating and registering the component......Page 115
Publishing inherited properties......Page 116
Declaring the property type......Page 117
Writing the implementation method......Page 118
Changing default property values......Page 119
Declaring the access properties......Page 120
Initializing owned classes......Page 121
Setting owned classes’ properties......Page 122
Drawing the component image......Page 123
Refining the shape drawing......Page 124
Creating and registering the component......Page 125
Publishing inherited properties......Page 127
Resizing the cells......Page 128
Tracking the date......Page 130
Accessing the day, month, and year......Page 131
Generating the day numbers......Page 133
Navigating months and years......Page 135
Moving the selection......Page 136
Providing an OnChange event......Page 137
Excluding blank cells......Page 138
Ch 12: Making a control data aware......Page 139
Creating and registering the component......Page 140
Making the control read-only......Page 141
Allowing needed updates......Page 142
Adding the data link......Page 143
An example of declaring access properties......Page 144
Initializing the data link......Page 145
Responding to data changes......Page 146
Handling mouse-down and keydownmessages......Page 147
Responding to key-down messages......Page 148
Updating the field data link class......Page 149
Modifying the Change method......Page 150
Updating the dataset......Page 151
Ch 13: Making a dialog box a component......Page 153
Creating and registering the component......Page 154
Adding interface properties......Page 155
Adding the Execute method......Page 156
Testing the component......Page 158
Ch 14: Extending the IDE......Page 159
Overview of the Tools API......Page 160
Writing a wizard class......Page 161
Installing the wizard package......Page 162
Obtaining Tools API services......Page 163
Adding an image to the image list......Page 164
Adding an action to the action list......Page 165
Deleting toolbar buttons......Page 166
Interface version numbers......Page 167
Using module interfaces......Page 168
Using editor interfaces......Page 169
Creating modules......Page 170
Notifying a wizard of IDE events......Page 173
A - C......Page 179
D......Page 180
E - F......Page 181
G - I......Page 182
K - M......Page 183
N - P......Page 184
Q - R......Page 185
S - T......Page 186
U - Y......Page 187