|
OCX Controls & software technologies
|
| Purpose | |
Precision Digital 7 Segments Display is a powerful OCX control for your applications which can be used to graphically represent a number composed of an arbitrary number of digits and arbitrary characters. There is a large predefined set of styles and color combinations among which you can choose. | |
| Optimization | |
Precision Digital 7 Segments Display was written entirely in C++ and is composed of strongly optimized code, the distributed OCX file only contains the essential code needed to perform the required features. There are no memory leaks, all the allocated memory and graphic resources are gracefully released. The only required libraries are the MFC and MSVCRT DLLs that are shipped with every version of Microsoft Windows. You do not need any additional libraries. | |
| Any special requirement ? | |
If you are developing an application and found Precision Digital 7 Segments Display nearly perfect for you needs except for small details, please feel free to contact us: let's talk about it ! |
|
| Documentation | |
| All the documentation you may need on Precision Digital 7 Segments Display is on line ! | |
| BackColor | ||||||||||||||||||||||||||
|
Domain: any color Default value: depends on your development environment, usually 0x00C0C0C0 (grey), Meaning: this is the color used to paint the unused space of the control bounding box. | ||||||||||||||||||||||||||
| DisplayedString | ||||||||||||||||||||||||||
|
Domain: any string (no size limits !) Default value: "0" Meaning: this property simply represents the string you want the display to show. If the length of this string is not sufficient to make its graphical representation fill the control bounding box rectangle, the remaining space will be filled with BackColor; in this case, since the characters are fixed-size and you know in advance (at design-time) how many characters the control will at its maximum contain, we suggest you to pad with spaces: even empty spaces are well represented by this control. It the string is too lengthy and its representation is longer than the control bounding box, the last characters could not be visible, and the last visible character could be truncated. To avoid this we suggest you to resize the control bounding box in order to have a width that is an exact multiply of the character width (20 pixels). This is the full set of the 91 character you can use in DisplayedString: ![]() | ||||||||||||||||||||||||||
| Style | ||||||||||||||||||||||||||
|
Domain: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 Default value: 0 Meaning: this value represent the style you choose, from this predefined series of bitmap sets:
| ||||||||||||||||||||||||||
| bool SetLicense(long LicenseNumber) | |
|
Parameters: LicenseNumber, a long integer number which represent your
license number. Return value: a boolean value that represents the result of the authentication. Meaning: this method is used to activate control. You should call this method before calling any other method, passing the license number you obtained at purchase time as LicenseNumber parameter, otherwise the control will not draw itself on the screen. | |