Copyright: Copyright ® 1996, 1997 InforTech, Inc.


W95Color Unit

Components

TWin95ColorButton


  TWin95ColorButton Component

Properties	Events

Unit

W95Color

Description

The Win95ColorButton custom control is a Button that was designed specifically for selecting colors.

The outfit is exactly the same as the color button in Windows 95 (see "Display Options" in the Windows Control Panel).

It provides a simple, yet powerfull way to select colors, without taking to much screen space and allowing the user to know exactly what color is currently selected.


W95ColorColorButton_Properties_Popup
Properties

 Run-time only	 Key properties

		About			ColorDlgOptions			Enabled
		ButtonCaption			Cursor			ParentShowHint
		Color			DragCursor			ShowHint
		ColorDlgCustomColors			DragMode			Visible


W95ColorColorButton_Events_Popup
Events

 Key events

		OnClick			OnEndDrag			OnKeyUp
		OnColorChange			OnEnter			OnMouseDown
		OnDblClick			OnExit			OnMouseMove
		OnDragDrop			OnKeyDown			OnMouseUp
		OnDragOver			OnKeyPress


About property

Applies to

TWin95ColorButton

Declaration

property About: TAboutBox;

Description

The About property displays an about box with a short description of the Component and information about the Copyright.


ColorDlgCustomColors property

Applies to

TWin95ColorButton

Declaration

property ColorDlgCustomColors: TStringList;

Description

The value of the ColorDlgCustomColors property determines the custom colors that are available in the Color Dialog box. Each custom color is represented as a string that follows this format:

ColorX=HexValue

For example, this string could indicate that the first custom color box in the Color dialog box:

ColorA=808022

This is the same format that your CONTROL.INI file uses to specify the custom colors that are available in the Windows Color dialog box.

You can have up to 16 custom colors, ColorA through ColorP.

Use the string list of custom colors to save the custom colors specified in the dialog box so you can use them elsewhere. For example, you might save them to an .INI file for your application so your application can use the custom colors.


ColorDlgOptions property

Applies to

TWin95ColorButton

Declaration

property ColorDlgOptions: TColorDialogOptions;

Description

These are the possible values that can be included in the ColorDlgOptions set:

Value	Meaning

cdFullOpen	Displays the custom coloring options when the Color dialog opens

cdPreventFullOpen	Disables the Create Custom Colors button in the Color dialog box so the user cannot create their own custom colors.

cdShowHelp	Adds a Help button to the Color dialog box.

The default value is [ ], the empty set, meaning all of these values are False and none of the options are in effect.


ButtonCaption property

Applies to

TWin95ColorButton

Declaration

property ButtonCaption: string;

Description

This property let's you change the caption of the button that displays the ColorDialog.

The default value is "&More...".


OnColorChange event

Applies To

TWin95ColorButton

Declaration

property OnColorChange: TNotifyEvent;

Description

This event gets called whenever the value of Color gets changed.

Example

procedure TFrom1.Win95ColorButton1ColorChange(Sender: TObject);

begin

  Label1.Color := TWin95ColorButton(Sender).Color;

end;


Main
   Win95ColorButton Component

Version 1.0

Copyright © 1996, 1997 InforTech, Inc.

Developed by: Steven Costa Martins

infortech@usa.net or steven@mail.telepac.pt

Introduction

 What is Win95ColorButton?

 Distribution Requirements

 Running the Demo

The Win95ColorButton Component

 Installation Instructions

 Properties and Events

Ordering, Contact and Other Information

 How to order Win95ColorButton Component

 Technical Support & Contacting InforTech, Inc.

Legal Stuff

 Disclaimer - Agreement, Copyright


What is Win95ColorButton
What is Win95ColorButton?

Welcome to the Win95ColorButton component for 16 and 32 Bit Delphi.

The Win95ColorButton custom control is a Button that was designed specifically for selecting colors.

The outfit is exactly the same as the color button in Windows 95 (see "Display Options" in the Windows Control Panel).

It provides a simple, yet powerfull way to select colors, without taking to much screen space and allowing the user to know exactly what color is currently selected.


Distribution_Requirements
Distribution Requirements

The evaluation version of this component may be freely distributed in any way, electronically via BBS's, the Internet and On-Line Services, via Disk Vendors or attached to books, magazines and the like.

The evaluation version is defined as a version that does not contain a licensed copy of the Win95ColorButton Component, and therefore issues "unlicensed" messages if linked and distributed with a program that executes independently of the Delphi development environment.

No one may distribute a licensed version of this component.

If you intend to bundle this component with a book, magazine or similar you can make sure you have the latest version by visiting our Internet site at

http://www.geocities.com/SiliconValley/Park/7619/win95colorbutton.html


Running_the_Demo
Running the Demo

We have supplied a demo application, called DEMO.EXE, which you can play around with to get a quick idea of the capabilities of the component.

We have also supplied the source for the application, so you can see how various things have been implemented. To load the source into your Delphi environment after you have installed the component you need to open the DEMO.DPR file.


Installation_Instructions
Installation Instructions

This version of Win95ColorButton Component includes no separate installation program. Therefore you have to unzip the supplied Zip-File at first in a directory of your will.

Installing the Win95ColorButton Component

You will have to add the Win95ColorButton component to the component library before you

can use it. To add the component to the library, follow these steps:

1.          Start Delphi.

2.          Choose Install Components... from the Options menu.

3.          Choose Add to open the Add Module dialog box.

4.          In the Add Module dialog box, choose Browse.

5.          Select the directory that contains the Win95ColorButton component, and then select the  W95COLOR.DCU file.

6.          Choose OK to close the browse dialog box.

7.          Choose OK to close the Add Module dialog box.

8.          Choose OK to close the Install Components dialog box and rebuild the library.

The "InforTech" page will appear at the end of the current palette.

You can move the component to a different page after they have been installed on the

palette.

Integrating the Win95ColorButton component Help File with Delphi

This help file can be fully integrated into Delphi's extensible help system. Integrating this help file will allow you to access context sensitive help when using the Win95ColorButton in the Delphi development environment.

Instructions:

1.	Make sure Delphi is not running.

2.	Move the W95COLOR.KWF file supplied with the Win95ColorButton to your \DELPHI\HELP sub-directory.

3.	Move the W95COLOR.HLP file supplied with the Win95ColorButton to your \DELPHI\BIN subdirectory.

4.	Run the HelpInst application supplied with Delphi.

5.	Select File|Open and open \DELPHI\BIN\DELPHI.HDX.

6.	Select Keyword|Add Keyword File and select the \DELPHI\HELP\W95COLOR.KWF then click OK.

7. 	Select File|Save.

8.	Exit HelpInst.

If the Win95ColorButton help file installed correctly you should be able to click on F1 when the Win95ColorButton is selected in the Delphi development environment and jump right into the W95COLOR.HLP file onto the Contents page.  You can also jump to any property's help page by selecting a property in the Object Inspector and pressing F1.


How_to_order_Win95ColorButton_Component
How to Order

The pricing for Win95ColorButton Component is as follows:

Registered 16 and 32 bit Version (without source-code)	$10.00

Registered 16 and 32 bit Version (with source-code)	$20.00

What Do I Get?

Registered users will receive:

 The latest compiled/source-code version of the Win95ColorButton component via Internet E-mail.

 Elimination of the requirement to have Delphi running while the component is in use.

 The right to use the component, royalty free, in any application.

 Free minor upgrades.  These include bug fixes and any minor changes up to the next major version.

 Free technical support for the life of the component.

 Information regarding new releases and other interesting things !

There are two convenient ways to purchase the Win95ColorButton:

Ordering By Credit Card:

This is by far the most quick and convenient way to order.

See the Credit Card Ordering Information page for more details.

To order by check, money order or cash:

When using the following ordering methods, please include the provided Order Form.

Portuguese users please contact us for ordering information.

Check

You can post us a check drawn on any bank in the world, in that country's currency. The amount should be equivalent to the price in US$. For example, if you are in Great Britain you could order the Source Code version of Win95ColorButton by sending a check made out in Pounds Sterling, for an amount in pounds equivalent to US$20.00. The check should be made out to Steven Costa Martins.

International Money Order/Bank Draft

These are normally available from banks or Post Offices. The Money Order/Draft should be payable to Steven Costa Martins.

Cash

We will accept cash in US dollars or Portuguese Escudos. However, we will take no responsibility for the cash while it's in transit. For you own protection if you want to pay in cash, we strongly recommend sending it to us by registered mail.


Technical_Support_and_Contacting_InforTech
Technical Support & Contacting InforTech, Inc.

We welcome any and all contact with our customers. Please drop us a note with your feedback or questions!

For technical support or for general questions you can contact InforTech, Inc. via:

Internet mail:	inforetch@usa.net

steven@mail.telepac.pt

World Wide Web:	http://www.geocities.com/SiliconValley/Park/7619/

Snail Mail:	Steven Costa Martins

 	Rua Serafim Vieira Neves da Cruz, 190 Gueifães

4470 - Maia

Portugal


Disclaimer_Agreement_Copyright
Disclaimer - Agreement, Copyright

The use of this package indicates your understanding and acceptance of the following terms and conditions. This license shall supersede any verbal, or prior verbal or written, statement or agreement to the contrary. If you do not understand or accept these terms, or your local regulations prohibit "after sale" license agreements or limited disclaimers, you must cease and desist using this product immediately.

Copyright:

This product is Copyright © 1996,1997 InforTech, Inc., all rights reserved. This software product and documentation may not, in whole or in part, be copied, photocopied, translated, or reduced to any electronic medium or machine readable form, without prior consent in writing, from InforTech, Inc. and according to all applicable laws. The sole owner of this product is InforTech, Inc.

Liability disclaimer:

This product and/or license is provided as is, without any representation or warranty of any kind, either express or implied, including without limitation any representations or endorsements regarding the use of, the results of, or performance of the product, its appropriateness, accuracy, reliability, or correctness. The entire risk as to the use of this product is assumed by the user and/or licensee. InforTech, Inc. does not assume liability for the use of this program beyond the original purchase price of the software. In no event will InforTech, Inc. be liable for additional direct or indirect damages including any lost profits, lost savings, or other incidental or consequential damages arising from any defects, or the use or inability to use these programs, even if InforTech, Inc. have been advised of the possibility of such damages.

Restrictions:

You may not use, copy, modify, translate, or transfer the programs, documentation, or any copy except as expressly defined in this agreement. You may not attempt to unlock or bypass any "copy-protection" or authentication algorithm utilized by the program. You may not remove or modify any copyright notice or the method by which it may be invoked.

Operating license:

You have the non-exclusive right to use any enclosed program only by a single person, on a single computer at a time. You may physically transfer the program from one computer to another, provided that the program is used only by a single person, on a single computer at a time. In group projects where multiple persons will use the program, you must purchase an individual license for each member of the group. Use over a "local area network" (within the same locale) is permitted provided that the program is used only by a single person, on a single computer at a time. Use over a "wide area network" (outside the same locale) is strictly prohibited under any and all circumstances.

Linking and distribution license:

In order to link and distribute compiled Win95ColorButton code in accordance to this license, you must be registered with InforTech, Inc. as an authorized licensee, and must have submitted a signed copy of this license stating you agree to be bound by its terms and conditions. You may not reproduce or distribute copies of the complete package, any of the source, interface, or code (.DCU) units, any of the documentation, nor may you supply any means by which your users could create, modify, or incorporate Win95ColorButton in their own products.  If you purchase the professional version of this product, you agree that the source code included in this product cannot be used to create a similar product for any use, unless you are given explict handwritten consent by InforTech, Inc. to do so.  Violations will be prosecuted to the maximum extent possible under the law.

Back-up and transfer:

You may make one copy of the program solely for "back-up" purposes, as prescribed in international copyright laws. You must reproduce and include the copyright notice on the back-up copy. You may transfer the product to another party only if the other party agrees to the terms and conditions of this agreement, and completes and returns registration information (name, address, etc.) to InforTech, Inc. within 30 days of the transfer. If you transfer the program you must at the same time transfer the documentation and back-up copy, or transfer the documentation and destroy the back-up copy. You may not retain any portion of the program, in any form, under any circumstance.

Terms:

This license is effective until terminated. You may terminate it by destroying the program, the documentation and copies thereof. This license will also terminate if you fail to comply with any terms or conditions of this agreement. You agree upon such termination to destroy all copies of the program and of the documentation, or return them to InforTech, Inc. for disposal.  Note that by registering this product you give InforTech, Inc. permission to reference your name in product advertisements.

Other rights and restrictions:

All other rights and restrictions not specifically granted in this license are reserved by InforTech, Inc.


Credit Card Ordering Information

Public Software Library (PsL) handles the credit card orders for us.

You can reach PsL 24 hours a day 7 days a week.

The best and easiest way to use the service provided by PsL is to go to their secure registration page, using links from our Homepage at:

http://www.geocities.com/SiliconValley/Park/7619/win95colorbutton.html

A Non-encrytped ordering form is also available for browsers that don't support secure transactions.

Alternatively, you can order with MasterCard, Visa, American Express, or Discover from PsL by email to 30003@pslweb.com or FAX to +1-713-524-6398.

Please refer to the item number #30003 when ordering by email or FAX.

(Use the Order Form provided below)

As soon as PsL notifies us that your order as been processed, we will

ship your fully licensed (Source-Code) version to you.

THE ABOVE NUMBERS ARE FOR CREDIT CARD ORDERS ONLY.

THE AUTHOR OF THIS PROGRAM CANNOT BE REACHED AT THESE NUMBERS.

Any questions about the status of the shipment of the order, refunds,

registration options, product details, technical support, volume discounts,

dealer pricing, site licenses, non-credit card orders, etc., must be directed

to InforTech, Inc.

Use this order form for FAX or Email orders.

If by FAX, please type or block-print very clearly.

Name:__________________________________________________________

Company Name(optional):__________________________________________

E-Mail Address:__________________________________________________

Mailing Address:_________________________________________________

Win95ColorButton Reference number: #30003

Credit Card: [ ]Mastercard  [ ]VISA  [ ]AMEX  [ ]Discover

Credit Card Number:______________________________________________

Expiration Date:__________________________________________________

Name On Card:__________________________________________________

Billing Address:__________________________________________________

Thank you for your order.


Order Form
Please complete this form and mail to:

Steven Costa Martins

Rua Serafim Vieira Neves da Cruz, 190 Gueifães

4470 - Maia

Portugal

--------------------------------------------------------------------------------------------------------------------

Product:  Win95ColorButton	Price (US)    Qty  Subtotal

--------------------------------------------------------------------------------------------------------------------

Registered Version:                             	US$ 10.00   ___  _______

Source Code Version:                          	US$ 20.00   ___  _______

--------------------------------------------------------------------------------------------------------------------

Shipping via E-Mail:                                                          FREE!

--------------------------------------------------------------------------------------------------------------------

Total:                                                                             _______

--------------------------------------------------------------------------------------------------------------------

How would you like to pay for Win95ColorButton? (check one)

Check  (enclosed)                      	(  )  (payable to Steven Costa Martins)

International Money Order (enclosed) 	(  )  (payable to Steven Costa Martins)

Money  (enclosed)	(  )

--------------------------------------------------------------------------------------------------------------------

Preferred method of delivery:

Internet E-mail:	__X__

(For Shipping on 3.5" floppy disk please contact me)

--------------------------------------------------------------------------------------------------------------------

Name: ___________________________________________________________

Company (if applicable): ____________________________________________

Address

Street: __________________________________________________________

City: ____________________  State/Province: __________________________

Postal/Zip Code: ________________ Country: __________________________

Phone:    (_______)________________________

Fax:        (_______)________________________

E-mail:    ________________________________________________________

(So that we can send the component)

Where did you find this software?

________________________________________________________________

Signature: _______________________________________________________

Date (MM/DD/YY): ____/____/_______

PAYMENT DETAILS

Thank you for your order.