102 _ delphi5 programming examples and skills

Source: Internet
Author: User
Tags interbase
Document directory
  • Delphi5 programming examples and skills
Delphi5 programming examples and skills

DelphiTutorial Series of books(102)Delphi5Programming examples and skills Organize netizens (state)Email:Shuaihj@163.com

:

Download

  • Author: Wang Hua and others
  • Series name: Software Development Technology series
  • Press: Machinery Industry Press
  • ISBN: 7111078012
  • Mounting time: 2000-7-1
  • Published on: February 1, February 2000
  • Page number: 432
  • Version: 1-1

Introduction

Delphi is an object-oriented visual software development tool launched by Inprise. Delphi 5 is the latest version of Delphi. This book consists of three parts and 16 chapters, mainly introducing the integrated development environment of Delphi 5, object Pascal Language, component, general programming technology, dynamic link library, multithreading, multimedia programming, database programming, network programming and Windows API programming.

Directory

Part 1 Delphi programming Basics

Chapter 2 Delphi integrated development environment 1

1.1 Introduction to integrated development environment 1

1.2 integrated debugger 5

1.3 Development Environment optimization 6

1.3.1 custom toolbar 6

1.3.2 programming environment settings 7

1.3.3 Edit Environment Settings 8

1.3.4 Project Settings 8

1.4 methods and techniques 9

1.4.1 use code browser 9

1.4.2 use code editor 9

1.4.3 help system 10

1.4.4 set ide desktop 11

Chapter 2 Object Pascal 12

2.1 A common learning object of Pascal

Routine 12

2.2 Object Pascal Language Basics 14

2.2.1 identifier 14

2.2.2 Reserved Words and Directive words 14

2.2.3 note 15

2.2.4 Data Type 16

2.2.5 operator 21

2.2.6 statement 24

2.2.7 process and function 27

2.3 Key Technologies of Object Pascal Language 30

2.3.1 object and class 31

2.3.2 class encapsulation and inheritance 31

2.3.3 constructor and destructor 32

2.3.4 polymorphism 35

2.3.5 abstract class 38

2.3.6 runtime type information 39

2.3.7 Methods 41

2.3.8 class reference 42

2.3.9 unit and engineering documents 43

2.4 exception handling 45

2.4.1 raise statement 45

2.4.2 try... limit t statement 45

2.4.3 try... finally statement 47

2.5 Methods and Techniques 48

2.5.1 naming rules 48

2.5.2 set whether to receive prompt during compilation

Information 48

2.5.3 use the code template 49

2.5.4 use a dynamic multi-dimensional array 49

2.5.5 define two mutually contained classes 50

2.5.6 obtain and use the command line parameter 51

2.5.7 pass reference parameters 51

Part 2: Core Skills of Delphi programming

Chapter 3 forms and components 53

3.1 forms and components 53

3.1.1 Form 54

3.1.2 component 56

3.1.3 use components in the form 57

3.2 Text Component 60

3.3 Special input component 61

3.4 buttons and classification components 63

3.5 list component 64

3.6 grouping component 67

3.7 information feedback component 69

3.8 table display component 70

3.9 graphic display component 71

3.10 development of MDI Application 73

3.11 common component usage 74

3.12 methods and techniques 84

3.12.1 use principles of forms and components 84

3.12.2 usage information dialog box 85

3.12.3 use the hint attribute of the component 88

3.12.4 use the ime attribute of the edit component 89

3.12.5 Add the system font to ComboBox

89 in components

3.12.6 Access File 90 in RichEdit component

3.12.7 set the return value of the Modal Dialog Box 90

3.12.8 use sender during event processing

Parameter 91

3.12.9 generate multi-line prompt information for the control 91

3.12.10 generate a non-rectangular window 92

3.12.11 move without title bar window 94

3.12.12 create dynamic Subtitles 95

3.12.13 dynamically set the background on the form

Figure 96

3.12.14 differences between owner and parent 97

Chapter 3 menu, toolbar, and status bar 98

4.1 menu 98

4.1.1 Main Menu 99

4.1.2 right-click the pop-up menu 99

4.1.3 use menu template 99

4.2 toolbar 100

4.2.1 tool bar 100

4.2.2 coolbar 100

4.2.3 control bar 101

4.3 status bar 101

4.4 methods and techniques 106

4.4.1 dynamic menu creation 106

4.4.2 dynamically define shortcut keys for menus 108

4.4.3 dynamic menu change 108

4.4.4 customized system menu 109

4.4.5 create a graphic menu item 110

4.4.6 add progress bars and others to the status bar

Component 111

4.4.7 menu fusion 113 in the MDI Application

4.4.8 create a toolbar that can be dragged and dropped anywhere 116

4.4.9 move the menu item to the rightmost 117 of the menu bar

4.4.10 move the runtime controller 117

Chapter 2 keyboard and mouse 5th

5.1 Keyboard Events 119

5.2 mouse event 120

5.2.1 common mouse events 120

5.2.2 drag an event 120

5.3 methods and techniques 122

5.3.1 check shift, ALT, and CTRL keys

Press 122

5.3.2 shielding system function keys 123

5.3.3 simulate pressing a key 124 on the keyboard

5.3.4 limit the range of mouse movement by 124

5.3.5 custom mouse 125

5.3.6 set the blinking speed of the cursor to 126

5.3.7 drag between different programs 127

Chapter 4 files, directories, and drives 6th

6.1 file 129

6.2 file dialog box component 129

6.3 win3.1 related components 131

6.4 common functions 131

6.4.1 common functions for file operations 131

6.4.2 common functions for directory operations 136

6.4.3 common functions for drive operations 138

6.4.4 common functions for file name operations 139

6.5 methods and techniques 145

6.5.1 get drive type information 145

6.5.2 operate on INI file 146

6.5.3 read more than 255 characters from the file

Row 148

6.5.4 obtain the object date information 149

6.5.5 check whether the disk or CD has changed by 150

6.5.6 detection drive capacity 151

6.5.7 copy the entire directory 152

6.5.8 delete an object to the recycle bin 153

6.5.9 check whether the drive is ready 153

6.5.10 get the application file name 154

6.5.11 operating on temporary files 154

Chapter 2 print 7th

7.1 some simple Print outputs 156

7.2 tprinter object and tscreen object 156

7.3 common printing functions 157

7.4 methods and techniques 164

7.4.1 get default printer information 164

7.4.2 get the status information of the printer queue 165

7.4.3 print forms 166

Chapter 2 multi-threaded applications 8th

8.1 process and thread 167

8.2 tthread class 167

8.3 thread synchronization 169

8.4 thread priority 170

Chapter 2 dynamic link library 9th

9.1 overview 176

9.2 create a dynamic link library 177

9.3 use dynamic link library 179

9.4 methods and techniques 180

9.4.1 how to debug the dynamic link library 180

9.4.2 replace showmessage 181 with MessageBox in DLL

9.4.3 dynamically load DLL 181

9.4.4 how to customize applications in different languages

Program 183

Part 3 advanced Delphi programming technology

Chapter 2 multimedia technology 10th

10.1 multimedia 185

10.1.1 overview 185

10.1.2 multimedia application 186

10.1.3 multimedia software development tool 187

10.2 image format processing 188

10.2.1 bitmap 189

10.2.2 JPEG 191

10.3 special display effect 193

10.3.1 canvases 193

10.3.2 call copyrect 193

10.3.3 call bitblt 194

10.4 animation 199

10.4.1 animated text 199

10.4.2 image animation 200

10.5 audio and video 206

10.6 methods and techniques 209

10.6.1 use messagebeep and beep 209

10.6.2 use playsound 210.

10.6.3 mcisendstring 211

Chapter 2 relational database 11th

11.1 relational database 215

11.1.1 keyword 215

11.1.2 constraints between tables: 215

11.1.3 structured search language (SQL) 216

11.2 database auxiliary tools provided by Delphi 218

11.2.1 use SQL explorer 218

11.2.2 Use Database Desktop 218

11.2.3 use BDE administrator 220

11.3 database components 221

11.3.1 tTable 221

11.3.2 tquery 225

11.3.3 table connection 227

11.3.4 calculate field 229

11.3.5 search for field 230

11.3.6 mesh 231

11.4 query records 232

11.4.1 gotokey 232

11.4.2 find key 233

11.4.3 fuzzy query 233

11.4.4 location 234

11.5 modify record 234

11.6 insert and delete records 235

11.7 data module 237

11.8 Data Dictionary viewer 238

11.9 transactions 240

11.10 handle database exceptions 244

Chapter 4 InterBase Server 12th

12.1 customer/Server concept 248

12.1.1 customer 248

12.1.2 Interbase client routine library 248

12.1.3 InterBase Server 248

12.1.4 borland database engine 248

12.2 database management and maintenance 249

12.2.1 create database 249

12.2.2 create table 250

12.2.3 database security 250

12.2.4 backup and recovery 251

12.3 server-side programs 252

12.3.1 Stored Procedure 252

12.3.2 trigger 252

12.4 local cache 253

Chapter 2 web and database 13th

13.1 CGI working principle 260

13.2 Delphi supports CGI 260

13.3 create a web application 261

13.4 form 262

13.5 Save the information to the database 264

13.6 search records 266

Chapter 2 com 14th

14.1 implement object 270 in DLL

14.2 interface 274

14.2.1 object lifetime 277

14.2.2 iunknown 279

14.2.3 globally unique identifier (guid) 281

14.2.4 registration 281

14.2.5 multiple interface problems 281

14.2.6 variant type 284

14.2.7 tcomobject 289

14.2.8 ttypedcomobject 295

14.3 OLE Automation 307

14.3.1 create an OLE Automation server 307

14.3.2 create Ole client program 314

14.3.3 how to access the automated server 316

14.3.4 use Word 316

14.4 composite document 319

Chapter 2 distributed programming 15th

15.1 CORBA structure 329

15.1.1 application of CORBA in databases 335

15.1.2 Remote Access 341

15.1.3 ossfind 341

15.2 remote dataset 342

15.2.1 basics 342

15.2.2 extended server 346

15.2.3 parameter transfer 353

15.2.4 Master/Slave constraint 355

15.2.5 offline processing 358

15.2.7 activeform 361

15.3 socket 362

15.3.1 socket use 362

15.3.2 example of using a plug-in 363

15.3.3 tnmudp component 369

Chapter 2 other programming technologies 16th

16.1 use clipboard 374

16.1.1 The component supports clipboard operations 374

16.1.2 use clipboard 375

16.1.3 operating image 378

16.1.4 operating component 379

16.1.5 379 of data in custom format

16.2 Dynamic Data Exchange (DDE) 381

16.3 perform registry operations 385

16.3.1 Tregistry 387

16.3.2 registry-related API functions 390

16.4 help system production 395

16.4.1 RTF 395

16.4.2 hpj file and HLP File 398

16.4.3 startup help 402

16.5 install and uninstall 403

16.6 methods and techniques 404

16.6.1 obtain Windows version information 404

16.6.2 obtain System Metric Information and Related Information

Configuration 405

16.6.3 obtain CPU information 407

16.6.4 get memory information 408

16.6.5 Access System color information 409

16.6.6 windows and system path 409

16.6.7 access computer name 410

16.6.8 getting User Registration Information 411

16.6.9 Disable Windows 411

16.6.10 Launch Control Panel 412

16.6.11 enable screen protection 415

16.6.12 flashing the Form title bar 415

16.6.13 gradient the background color of the window by 416

16.6.14 hide/show the icon 416 on the desktop

16.6.15 obtain text 417 in the title bar of the window

16.6.16 prepare software cover 418

16.6.17 hide/Display Windows Task Bar 420

16.6.18 make the application appear in Windows

On the taskbar 420

16.6.19 status bar programming 421

16.6.20 access system parameter 426

16.6.21 run program 427 at Windows Startup

16.6.22 creates

Shortcut 428

16.6.23 run other programs in the program 429

16.6.24 only one instance running the program at the same time 429

16.6.25 close other running applications 431

16.6.26 rotating font 432

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.