Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5366

Numeric Control - Text and Background Color changes when operating inc/dec arrows

$
0
0

Hi,

 

I'm developing an application that has a panel with black background and green or red numbers. I've added numeric controls and configured the text color and text background color attributes accordinglingy. I set the numeric control to hot or validate  control mode and show the inc/dec arrows, since I want to be able to incr/decr the numbers.

 

The problem is that when I run the application and I hit the inc/dec arrows, then the colors inside the numeric control frame become inverted: the black background becomes white and the green number becomes cyan. I've created a callback function assosicated with the numeric control and tried forcing the text and background color, in the EVENT_VAL_CHANGED section, using the SetCtrlAttrribute() function, but to no avail. Also added ProcessDrawEvents didn't help.

 

When I mouse click again outside the numeric control, then it reverts back to its original colors (green text, black background).

 

Any suggestions as to how I can fix this ?

I want it to keep its original colors at all times, even when I'm clicking the incr/decr arrows...

 

Kind regards,

pgriep

 

 

 


Viewing all articles
Browse latest Browse all 5366

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>