LrsDice 2.0
Demo version
� 1996, by Terje Larsen
Niels Juels gate 15
0272 Oslo
Norway
This a shareware VCL for Borland Delphi. This is a demo version of the component. It's fully functional, but have a nag cross over the image. If you register this nag cross will be removed and you
will have the source code as well. The registration fee is $10 or 100 NOK what ever you chose.
If I can't send it to you via Internet Email, please add $5 or 50 NOK for S&H.
As soon as I have received the above amount, I will send you the registarted version.
Please send the fee to the following address:
Terje Larsen
Niels Juels gate 15
0207 Oslo
Norway
Warranty: There is now warranty at all, nothing zip zero. I'm not responsible for anything that happens with you or your computer, grandmother, cat, dog, the government ect..
Please feel free to copy the demo version to your friends, web sites or BBS.
I hope you like the component, if you have any suggestions for improvement or maybe another component you are craving for please feel free to send me an e-mail at following addess:
[email protected].
Terje Larsen
Oslo march 2 1996
Introduction to the LrsDice VCL
This is a component that make you display a dice in 2D or 3D. There is no bitmaps used by the component. The images are crated at runtime.
Class
TLrsDice.
Files
LrsDice.Dcu - The component file.
LrsDice.Dcr - Resource file for the component.
LrsDice.Pas - Source file of the component. (Only reg. version)
LrsDice.Doc - This document in Word format.
LrsDice.Txt - This document in text format.
TstDice.Zip - Archived test project.
Properties supported by the LrsDice component
*BackColor
DragCursor
DragMode
Enabled
*EyeColor
*Hold
*HoldEyeColor
*HoldLeftSideColor
*HoldRightSideColor
*HoldTopSideColor
*LeftSideColor
ParentShowHint
PopUpMenu
*RightSideColor
*Show3D
ShowHint;
*TopSideColor
*Value
Visible
Asterisks (*) denote custom properties.
Events supported by the LrsDice component
OnClick
OnDblClick
OnDragDrop
OnDragOver
OnEndDrag
OnMouseDown
OnMouseMove
OnMouseUp
Asterisks (*) denote events.
Methods supported by the LrsDice component
Roll
LrsDice control reference
Properties supported by the LrsDice component
BackColor Custom property
Type
Tcolor
Description
Indicates the color of the background area below the tabs.
Values
Value
Meaning
clBlack
Black
clMaroon
Maroon
clGreen
Green
clOlive
Olive green
clNavy
Navy blue
clPurple
Purple
clTeal
Teal
clGray
Gray
clSilver
Silver
clRed
Red
clLime
Lime green
clBlue
Blue
clFuchsia
Fuchsia
clAqua
Aqua
clWhite
White
clBackground
Current color of your Windows background
clActiveCaption
Current color of the title bar of the active window
clInactiveCaption
Current color of the title bar of inactive windows
clMenu
Current background color of menus
clWindow
Current background color of windows
clWindowFrame
Current color of window frames
clMenuText
Current color of text on menus
clWindowText
Current color of text in windows
clCaptionText
Current color of the text on the title bar of the active window
clActiveBorder
Current border color of the active window
clInactiveBorder
Current border color of inactive windows
clAppWorkSpace
Current color of the application workspace
clHighlight
Current background color of selected text
clHightlightText
Current color of selected text
clBtnFace
Current color of a button face
clBtnShadow
Current color of a shadow cast by a button
clGrayText
Current color of text that is dimmed
clBtnText
Current color of text on a button
clInactiveCaptionText
Current color of the text on the title bar of an inactive window
clBtnHighlight
Current color of the highlighting on a button
DragCursor Standard property
Type
TCursor
Description
Sets the type of cursor that will be used during drag and drop.
DragMode Standard property
Type
TCursor.
Description
Sets the drag mode of the component. In manual mode the control can be dragged only after
setting the Drag property. In automatic mode, the control can be dragged anytime.
Settings
Description
dmManual
Manual
dmAutomatic
Automatic
Enabled Standard property
Type
Boolean
Description
Enables or disables the control. A control can not be activated while this property is set to false.
Settings
Description
False
Disables the control
True
Enables the control
EyeColor Custom property
Type
Tcolor
Description
Sets the color of the eyes of the dice, in normal mode.
See also Hold and HoldEyeColor.
HoldEyeColor Custom property
Type
Tcolor
Description
Sets the color of the eyes of the dice, when the Hold property equal to True.
See also Hold and EyeColor.
HoldLeftSideColor Custom property
Type
Tcolor
Description
Sets the color of the left side of , when the Hold property equal to True.
See also Hold and LeftSideColor.
HoldRightSideColor Custom property
Type
Tcolor
Description
Sets the color of the left side , when the Hold property equal to True