Change the status of indicator lamp

Take MFC as an example:
1. Right click the control and select "Add Variable...".


2. Input "m_gauge1" in the "Variable name" field.


3. Change the status of indicator lamp
m_gauge1.SetValue(_T("ImageStateIndicator1"),1);
Here the name “Pointer” can be found in the designer, see as below:


The second parameter in SetValue, got from the designer's property page.  For example, state= 0...


Click the "+" to add one or more status, the max is 6.




Change the order by dragging; the left one should be 0.

         Copyright © 2019 BeauGauge Inc. All rights reserved.