Introduction:
  ShapeX.ocx version1.0 contains two controls, ShapeForm and ShapeButton. It's for used 
in VB6, Windows95/98 or Windows NT4.0. Need VB6 run time DLL. 

  By using ShapeForm, you can visually design a Form with any shape by simply put a 
ShapeForm control on the it, set ShapeForm's Picture property, all pixels with a 
specified color or within a tolerance of the specified color will be excluded 
and a region will created. The Form which the ShapeForm control placed on will be 
shaped into the created region and will fit exactly to the picture shown on it. 
All can do with no code.
  ShapeButton acts as a CommandButton or CheckBox except that it can have any shape.

Features of ShapeX
  1. Setting the Picture property of ShapeForm to a bmp, gif or jpeg file, from which 
a region can be created and will be used to shape the Form. The picture will stretech 
automaticly to fit the size of the ShapeForm control.
  2. Supports switch region of the Form between shaped and regular (or rectangle) in 
both design time and run time.
  3. Supports switch Form from one shape to another in both design time and run time 
if you put more than one ShapeForm controls on the it.
  4. By setting NormalPicture property to a bmp, gif or jpeg file, ShapeButton can 
create a region which used to shape itself. 
  5. DownPicture and DisablePicture properties let the ShapeButton control have different 
look when be clicked or disabled.
  6. ShapeButton can act as CommandBotton or CheckBox (sticky) by set the value of its 
ButtonStyle property.
  7. Region data is got in design time and bounded with exe file, so the switch and 
show is fast.
  8. All visual design supported. You can move or resize the control, process the region 
data in its property page, the final appearence of your application can be adjusted and 
seen in designed time, or you can dynamically modify the Form's or the ShapeButton's region 
in run time. 

Installation
  There is an example to show how to use ShapeX.ocx control, which named TestShapeX, with 
its Setup program and source code. If you run the Setup then ShapeX.ocx will be registered 
to your machine. The example need VB6 run time dll which is not included in the Setup.

Registration information
  ShapeX.ocx is a shareware, you can try it freely in 30 days, then if you do not register, 
you should remove it from your machine. If you still want to use it over 30 days, and/or 
you have develop your own software which used any functions of it and/or you want to  
re-distrubute it with your application, then you need to register. 
  Registration fee is US $28.00. If you do not register, however, ShapeX.ocx is still fully 
functional and without expiration, with on message nor prompt. Pay for something useful you got 
from others is fair, isn't it?

  Any question or comment please contact me:
	chenggan@public.cta.cq.cn
  To register, send check to the address:
	Chen Gang
	Computer Center,Chongqing Publishing House
	No.205, 2nd Changjiang Road, Chongqing 400016
	People's Republic of China 

How to use
  Put a ShapeForm control on a Form, assign the its Picture Property, right click the control 
to enter its property page, you can set the TransparentColor, DeltaR, DeltaG and DeltaB 
properties in the property page. After click OK or Apply Button of the property page, a region 
created. ShapeForm control will set the Form's shape to the created region if the Active 
property of the control is True, 
  ShapeButton's usage is just the same, except that it shapes itself, not the Form.
  In designe time, TransparentColor, DeltaR, DeltaG and DeltaB properties can only be 
changed by using property page.
  In run time, you can change them by code.
  
Properties and methods for ShapeForm
Active Property:
  Decides whether or not the region data take into effect. In design time, if you move 
FormShape control after region created, remember to switch this property to False and then 
True, in order to let its picture shown fits the already created region. 
	Example:
	ShapeForm1.Active=True ' shape the Form.
	ShapeForm1.Active=false ' set the Form's look to regular (rectangle).

Picture Property:
  The region data will be retrieved from the this property.

TransparentColor Property:
  The pixles with the same color or fall in the torlerance will be excluded from the created 
region. 

DeltaR, DeltaG, DeltaB Properties:
  Define the tolerance. If the differences between a pixle's R, G, B values and TransparentColor 
property's R, G, B values are bigger than -DeltaR, -DeltaG, -DeltaB and less than DeltaR, 
DeltaG, DeltaB respectively, this pixle will be treated as a transparent color and excluded 
from the region. The bigger the values are, the less pixles will the finally created region 
contain.
  If you assign new values to DeltaR, DeltaG, DeltaB in run time, the new values must be in 0 
to 100, otherwise it will be ignnored, no warn nor message given and the properties you intend 
to assign to remain unchanged.

SendToBack Method: 
  Change the Z-order of the ShapeForm. When there exist more than one ShapeForm controls, use 
this method and Active property to switch the Form's region in run time, so you can dynamically
change the appearence of your application. 
  REMEMBER that ShapeForm control should be put directly on Form as a direct child, not as a 
child of another ShapeForm control. 
	Example:
	'Next two lines set the Form's look to ShapeForm1 control
	ShapeForm2.SendToBack 
	ShapeForm1.Active=True

        'Next two lines set the Form's look to ShapeForm2 control
	ShapeForm1.SendToBack 
	ShapeForm2.Active=True

SetRegion Method:
  Retrieve and create the region. It is called when click the OK or Apply button from the 
property page in design time. If the region created success, the method return True, else 
an error will raise, this usually caused by lack of memory. You can also call this method 
from your code. 
  When you resize ShapeForm control or change the TransparentColor, DeltaR, DeltaG, 
DeltaB, Picture properties of it, you need to call this method, otherwise the region 
will not change and so the picture shown on it may not fit properly to the region.

Properties and methods for ShapeButton
Down Property:
  Indicate the ShapeButton is pressed or not.	

Picture Property:
  Picture shown on the ShapeButton in normal state (not pressed nor disabled), the region 
data will be created from it.

DownPicture Property:
  Picture shown on the ShapeButton when pressed.

DisablePicture Property:
  Picture shown on ShapeButton when disabled.

TransparentColor,DeltaR,DeltaG and DeltaB properties: 
  Same as of in ShapeForm.

ButtonStyle Property:
  It can be 0-NormalButton (act as a CommandButton) or 1-CheckButton ( act as a CheckBox).

SetRegion Method:
  Just the same of in ShapeForm.


