Extending the Measurement Studio 7.0 LED Control to Create a Triangle LED
Using the Measurement Studio 7.0 for Visual Studio .NET 2003, User Interface controls can be customized by extending their style base classes. Measurement Studio 7.0 gives you 2 options for the LEDStyle (Round and Square). You can create a new style by creating a new class which inherits the LEDStyle class. You then specify your new class by overriding some of the properties or methods of LEDStyle. This example provides a new class called TriangleLEDStyle, which overrides the Draw() method of the LEDStyle class to draw a new LED. The new triangle LED has all of the same functionality as an ordinary LED, but has the shape of the NI Triangle Logo.
Back to Top