Spin Button ActiveX v1.0 (build 26 June, 98 | File: SPB.OCX | Size: 34,816 bytes)
This is a Spin ButtonBy Great Beard.
E-mail: grtbeard@geocities.com
Homepage: http://www.geocities.com/SiliconValley/Haven/4274
Download page: http://www.geocities.com/SiliconValley/Haven/4274/download.htm
If you find any changes in this document or others, please, e-mail me where you got that document!
This HTML-based help is designed for MS Internet Explorer 4.01 and higher versions (like MSIE 5.0 Preview 1)

Description: This control is just a simple spin button, but it looks in unusual way. You could change the background color, change the direction of arrows (Up & Down, Left & Right). It has MouseIn and MouseOut events for every part of the button. The optimal size is a square (21 x 21 pixels). Help included.

Properties    Methods    Events    System Requirements     History (bugs, updates)

Properties:

Property

Data type Description
Backcolor (Color) Returns/sets background color used to fill button.
Enabled Bolean Defines the state of control.
hWnd (Handle) Window Handle to this control.
MouseIcon (Icon) This Icon or Cursor is used for mousepointer when mouse is over the button and MousePointer is set to 99.
MousePointer mousepointerconstants (Integer) This value set the mousepointer to one of the predefined values.
Default = 0,
Arrow = 1,
Cross = 2,
IBeam = 3,
SizeAll = 4,
SizeNESW = 5,
SizeNS = 6,
SizeNWES = 7,
SizeWE = 8,
UpArr = 9,
HGlass =10,
NoDrop =11,
ArrHg =12,
Custom =99.
SpBStyle Integer Sets the style of spin button.
spb_UpDown = 0,
spb_LeftRight = 1.

Back to the top.
Methods:

Method Parameters Description
AboutBox none Displays AboutBox.

Back to the top.
Events (only non-standard):

Event Parameters Description
ClickSpin Button as Integer Occurs when mouse appears over the button.
Button means the part of spin button (left - if 0, and right - if 1).
MouseIn Button as Integer Occurs when the mouse cursor enters over an object.
MouseOut Button as Integer Occurs when the mouse cursor leaves an object.
SpinDown Button as Integer,  MouseButton as Integer, x as Long, y as Long Occurs when the user presses the mouse button while an object has the focus.
MouseButton means the button on the mouse (Left - 0, Middle - 4, Right - 2).
x and y - the coordinates inside the button.
SpinMove Button as Integer,  MouseButton as Integer, x as Long, y as Long Occurs when the user moves the mouse.
SpinUp Button as Integer, MouseButton as Integer, x as Long, y as Long Occurs when the user releases the mouse button while an object has the focus.

Back to the top.
System Rquirements:

-Windows '95
- MFC DLLs (mfc42.dll, msvcrt.dll...)

History (bugs, updates):

Version Date (dd/mm/yy) Description
1.0 26/06/98 This is the first release. (Tested with MS Visual Basic 5.0 SP3)

Back to the top.