- ホーム
- > 洋書
- > 英文書
- > Computer / Languages
Full Description
Throughout the book the emphasis is on using examples to illustrate concepts and techniques. Code is shown in detail, and explained thoroughly. The examples themselves are intended to be both intructional and useful in their own right. This book has been written with the intermediate C# developer in mind. Assuming a working knowledge of C#, the book teaches you how to implement custom controls using Visual C# 2005 Express Edition and all other versions of Visual C#, and GDI+ with .NET 2.0
Contents
Preface Chapter 1: Introduction to Custom Controls Chapter 2: Introduction to GDI+ Chapter 3: Basic Drawing Chapter 4: Drawing Complex Shapes and Using Transformations Chapter 5: Drawing Control Parts, Borders, and Adornments Chapter 6: Working with Images Chapter 7: Printing Chapter 8: Collections Chapter 9: Double Buffering Chapter 10: Handling Mouse Events Chapter 11: Implementing Design-Time Support Chapter 12: Designing Intuitive Interfaces Chapter 13: The PieChart Control Appendix A: Distributing Custom Controls Index * Preface * Chapter 1: Introduction to Custom Controls o What Are Controls? o Introducing Custom Controls + Categories of User Controls o Preparing Your Environment o What Are Custom Controls Made Of? + Private Fields + Properties + Indexers + Events and Delegates # Handling Events + Collections + Enums o Building TinyNoiseMaker + Time for Action Creating the TinyNoiseMaker Custom Control * Extending TinyNoiseMaker o Time for Action Adding Public Functionality o Time for Action Using the Control's Public Interface * Summary * Chapter 2: Introduction to GDI+ o Understanding Control Drawing + Understanding GDI+ + The Graphics Object + The Control.Paint Event + Invalidation o Simple Drawing on a Form + Time for Action Creating the Application * Drawing Inside a Panel Object o Time for Action Creating the Application * Drawing Inside a Control o Time for Action Creating the Application * Summary * Chapter 3: Basic Drawing o The GDI+ Coordinate System o Drawing with GDI+ + Using the Color Object + Drawing Using the Pen Object + Filling Surfaces Using the Brush Object + Drawing Text Using the Font Object + Improving Drawing Quality o Building the GradientLabel Control + Time for Action Creating the GradientLabel Custom Control * Summary * Chapter 4: Drawing Complex Shapes and Using Transformations o Drawing Complex Shapes + The GraphicsPath Object + The Region Object o Clipping Drawing Using Region Objects + Keeping Drawing Inside a Region + Keeping Drawing Outside a Region o Graphics Transformations + Translation + Rotation + Scaling o Creating the Clock Control + Time for Action Creating the Clock Control + Time for Action Updating the Clock to Use Transformations * Summary * Chapter 5: Drawing Control Parts, Borders, and Adornments o Rendering Common Control Parts + Drawing Buttons + Drawing Caption Buttons + Drawing Checkboxes + Drawing Drop-Down Buttons + Drawing Radio Buttons + Drawing Scroll Buttons o Rendering Borders and Frames + Rendering Button Borders + Rendering 3D Borders o Rendering Control Adornments o Creating Multiple Controls that Reuse the Same Functionality + Creating a Base Class for Two or More Controls # Time for Action Creating the ControlPart Base Class o Creating Derived Controls + Time for Action Creating the ScrollArrowButton Control + Time for Action Creating the CheckButton Control * Extending Existing Controls o Time for Action Creating the BorderGradientPanel Control o Time for Action Implementing the GradientButton Control * Summary * Chapter 6: Working with Images o Drawing Images + Using the Image Class + Using the Bitmap Class + Displaying Images # Time for Action Displaying Images o Image Effects o Skewing, Rotation, and Scaling * Building the ImageWarper Class o Time for Action Creating the ImageWarper Class * The ImageWarperControl o Time for Action Creating the ImageWarperApp and the Image WarperControl * Summary * Chapter 7: Printing o .NET Printing Explained + Using the PrintDocument Class o Your First Print Job + Time for Action Creating the "Hello Printer!" Application * The SimpleReportPrinter o Building the SimpleReportPrinter and TextDispenser Classes + Time for Action Building the TextDispenser Class + Time for Action Building the SimpleReportPrinter Class * User Involvement * Our Responsibilities as Programmers * Printing Custom Controls o Time for Action Creating the PrintableRichTextBox * Summary * Chapter 8: Collections o Collections in the .NET Framework + ArrayList + Queue + Stack + SortedList o Generics o Building the Font Picker + Time for Action Building Font Picker * Summary * Chapter 9: Double Buffering o Introduction to Double Buffering o The Scroll Bar + Scroll that Text! # Time for Action Building FlickerFree Control * Summary * Chapter 10: Handling Mouse Events o Handling Mouse Events + Working with Coordinates o Dragging and Dropping + Dragging # Time for Action Dragging o Dragging and Dropping + Time for Action Dragging and Dropping * Summary * Chapter 11: Implementing Design-Time Support o Building Designer-Friendly Controls + Attributes + Designers + Type Converters + UI Type Editors + Property Editors # Creating Property Editors * Time for Action Adding Design-Time Support o Summary * Chapter 12: Designing Intuitive Interfaces o The Relationship between User and Computer + Communicating with Users o Requests, Input Parsing, Fault Tolerance, and Feedback + Examining the Sketcher Control o Looking Further Into Input Parsing + How Can We Use Regex to Our Advantage? # Time for Action Creating the Regex Application o Our Regex Pattern in Detail * Optimization and Coding Conventions * Summary * Chapter 13: The PieChart Control o Creating the PieChart Control + Time for Action Creating the PieChart Control * Adding Slice Names and Delimiters o Time for Action Improving the PieChart Control * PieChart Legend o Time for Action Creating the PieChart Legend * Printing the PieChart o Time for Action The Printable PieChart * Adding and Removing Slices o Time for Action Add Application Support for PieChart Slice Add/Remove Operations * Summary * Appendix A: Distributing Custom Controls o Creating a Control Library Using Visual Studio 2005 o Creating a Control Library Using Visual C# Express 2005 o Using a Custom Control Library * Index