Hello Marty,
My class is derived from CDialog.
I called a local NI support few days ago and received an example.
m_btn.OnImages(5).BlinkInterval::CNiButton.SpeedFast;
while the meas studio help is:
m_btn.OnImages(1).BlinkInterval::CNiButton.SpeedFast;
I used the meas studio help ex and didn't worked because i didn't have a caption to begin with.
I noticed that the paramater of the OnImages/OffImages is a constant that
corresponds to the sequence of the valid image name.
In this order, the valid image names would be:
1. Caption
2. ? ( sorry I have no meas studio help as of this writing )
3. ?
4. ?
5. Image - the actual button is referred as image
My comment about the meas studio ex is unclear because the valid image names are not referred
as list or enum(perhaps) so that the user can access by using a constant or object name.
Anyway, regarding this, aside from blink control my program comes with the on/off color control.
I normally use these set of commands altogether.
m_btn.Value = 1;
m_btn.OnImage(5).BlinkInterval::CNiButton.SpeedFast;
m_btn.OnColor(0xFF00); //based from coloref
m_btn.SetEnabled(1);
in the properties dialog box, the offcolor = red while oncolor = green.
Then, I have a 3rd color yellow. As long as I achieve my desire color, I would
rearranging the commands, add some or subtract some. The priority is not clear as well.
I only base the results from a series of trial and error. The same sequence and combination
used in several function calls didn't exhibit same results.
I'd like to ask for guidelines and examples for consistency and generate predicatable results.
Thanks a bunch,