Copyright: Micro-Pic ® 1993 by Fred L. Freel


Contents
Micro-Bytes PicClip Buttons

Micro-Pic PicClip Button Array 1.0

Copyright 1993 by Fred L. Freel

and Micro-Bytes\WordWare

The accompanying Micro-Pic Arrays and PICBUTNS.HLP are Shareware.  If you find them useful, please register your package by sending $9.95 plus California Sales Tax, if applicable, to:

Micro-Bytes\WordWare

7544 Winnetka Avenue

Winnetka, California 91306

The included button graphics are not copyrighted by Micro-Bytes\WordWare.  Feel free to redesign, re-color or modify them to your requirements.  Micro-Pic requires Microsoft's PICCLIP.VBX and Microsoft Visual Basic Pro 2.0.  They may also function with the Professional version of Visual Basic 1.0.

Using Micro-Pic

Determining PicClip.GraphicCell Number

Altering the Mouse-Down Button

License

Warranty


License

Micro-Pic 1.0 License Agreement

This License Agreement permits the Registered User to use one copy of the software version specified above on any single computer.  If the software is permanently installed on the hard disk or other storage device of a business computer other than a network server, and is used by one person on that computer for more than 80 percent of the time it is in use, then that person may also use the software on a portable or home computer.

The software is owned by Micro-Bytes\WordWare or its suppliers, and is protected by United States copyright laws and international treaty provisions.  You must treat the software like any other copyrighted material, with two exceptions:  (1) You may make one copy of the software for backup or archival purposes.  (2) You can transfer the software to a single hard disk provided you keep the original solely for backup and archival purposes.  You may not copy the written materials, including Help files, accompanying the software.


Warranty

Limited Warranty

Micro-Bytes\WordWare or its suppliers warrants that the software will perform substantially in  accordance with the accompanying documentation for a period of ninety (90) days from the date of Registration.

The information and code provided hereunder (collectively referred to as "software") is provided as is without other warranty than described above, either expressed or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose.  In no event shall Micro-Bytes\WordWare or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Micro-Bytes\WordWare or its suppliers have been advised of the possibility of such damages.


Altering
Altering the Mouse-Down Button

You can alter the background color of the Micro-Pic Button Array, as shown in this example, by using Microsoft PaintBrush to re-fill the existing colors.  Before experimenting with colors, Save this bitmap (BUTNARA2.BMP) as BUTNARA3.BMP to create a backup.


Using
Using Micro-Pic

See Microsoft's Visual Basic 2.0 Professional Features Manual for information on adding a PicClip VBX control [image] to your Project Form.

In your Project Form set it's following properties:

Cols:	20

Picture:	BUTNARAY.BMP (or one you've modified)

Rows:	10

Again, in your Project Form, add a Picture Control [image], and set it's following properties:

AutoSize:	True

BackColor:	light gray for 3D affect (&H00C0C0C0&)

BorderStyle:	None

Height:	330

Name:	ButnPic

Width:	360

From the Options Menu under Environment, set the Grid Height and Grid Width to 60, and Align to Grid to Yes.

Determine the number of buttons you will need on the current Form.  With the ButnPic Control selected, Press ^C to copy it to the Windows clipboard.  Now paste as many ButnPic Picture Controls on your Form as you will need, by selecting the Form, then pressing ^V.  When you are prompted as to whether you want to create a control array, answer Yes.  The ButnPic controls will be automatically Indexed.

You may want to include a couple extra controls in case you decide to add more buttons later.  They can be placed outside the active form area with the Micro-Pic PicClip picture, and they will not be visible at Run-Time.

The following Visual Basic code is an example of using the Select Case Statement to determine what to do when a Micro-Pic Control is clicked with the mouse.  Notice that the assigned Micro-Pic Picture is referenced in PicClip1.GraphicCell(n + 10).  Where "n" is the picture displayed in the MouseUp position, and the second number is the offset to the picture displayed in the MouseDown position.

For the MouseDown Event:

Sub ButnPic_MouseDown (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)

Select Case Index

Case 0

ButnPic(0).Picture = PicClip1.GraphicCell(0 + 10)

' your code or subroutine call goes here

Case 1

ButnPic(1).Picture = PicClip1.GraphicCell(1 + 10)

' your code or subroutine call goes here

Case 2

ButnPic(2).Picture = PicClip1.GraphicCell(2 + 10)

' your code or subroutine call goes here

End Select

End Sub

For the MouseUp Event:

Sub ButnPic_MouseUp (Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)

Select Case Button

Case 0

ButnPic(0).Picture = PicClip1.GraphicCell(0)

Case 1

ButnPic(1).Picture = PicClip1.GraphicCell(1)

Case 2

ButnPic(2).Picture = PicClip1.GraphicCell(2)

End Select

End Sub

Determining PicClip.GraphicCell Number


GraphicCell
Determining PicClip.GraphicCell Number

HyperGraphic HotSpots are used here.

Click on the Micro-Pic Button you would like to use, and you will be provided with the MouseUp value to use as the PicClip.GraphicCell(n) parameter.

Altering the Mouse-Down Button


HotSpot_0
Button 0


HotSpot_1
Button 1


HotSpot_2
Button 2


HotSpot_3
Button 3


HotSpot_4
Button 4


HotSpot_5
Button 5


HotSpot_6
Button 6


HotSpot_7
Button 7


HotSpot_8
Button 8


HotSpot_9
Button 9


HotSpot_10
Button 20


HotSpot_11
Button 21


HotSpot_12
Button 22


HotSpot_13
Button 23


HotSpot_14
Button 24


HotSpot_15
Button 25


HotSpot_16
Button 26


HotSpot_17
Button 27


HotSpot_18
Button 28


HotSpot_19
Button 29


HotSpot_20
Button 40


HotSpot_21
Button 41


HotSpot_22
Button 42


HotSpot_23
Button 43


HotSpot_24
Button 44


HotSpot_25
Button 45


HotSpot_26
Button 46


HotSpot_27
Button 47


HotSpot_28
Button 48


HotSpot_29
Button 49


HotSpot_30
Button 60


HotSpot_31
Button 61


HotSpot_32
Button 62


HotSpot_33
Button 63


HotSpot_34
Button 64


HotSpot_35
Button 65


HotSpot_36
Button 66


HotSpot_37
Button 67


HotSpot_38
Button 68


HotSpot_39
Button 69


HotSpot_40
Button 80


Hotspot_41
Button 81


Hotspot_42
Button 82


HotSpot_43
Button 83


HotSpot_44
Button 84


HotSpot_45
Button 85


HotSpot_46
Button 86


HotSpot_47
Button 87


HotSpot_48
Button 88


HotSpot_49
Button 89


HotSpot_50
Button 100


HotSpot_51
Button 101


HotSpot_52
Button 102


HotSpot_53
Button 103


HotSpot_54
Button 104


HotSpot_55
Button 105


HotSpot_56
Button 106


HotSpot_57
Button 107


HotSpot_58
Button 108


HotSpot_59
Button 109


HotSpot_60
Button 120


HotSpot_61
Button 121


HotSpot_62
Button 122


HotSpot_63
Button 123


HotSpot_64
Button 124


HotSpot_65
Button 125


HotSpot_66
Button 126


HotSpot_67
Button 127


HotSpot_68
Button 128


HotSpot_69
Button 129


HotSpot_70
Button 140


HotSpot_71
Button 141


HotSpot_72
Button 142


HotSpot_73
Button 143


HotSpot_74
Button 144


HotSpot_75
Button 145


HotSpot_76
Button 146


HotSpot_77
Button 147


HotSpot_78
Button 148


HotSpot_79
Button 149


HotSpot_80
Button 160


HotSpot_81
Button 161


HotSpot_82
Button 162


HotSpot_83
Button 163


HotSpot_84
Button 164


HotSpot_85
Button 165


HotSpot_86
Button 166


HotSpot_87
Button 167


HotSpot_88
Button 168


HotSpot_89
Button 169


HotSpot_90
Button 180


HotSpot_91
Button 181


HotSpot_92
Button 182


HotSpot_93
Button 183


HotSpot_94
Button 184


HotSpot_95
Button 185


HotSpot_96
Button 186


HotSpot_97
Button 187


HotSpot_98
Button 188


HotSpot_99
Button 189