I have several questions regarding numeric indicator control behavior in labwindows. I am running cvi v7 on win xp, but noted similar behavior on cvi v6 on win 2000.
1. Is it possible to lock out controls from being selected if they are just indicators? By this I mean that with the application running, a user can point and click on an indicator, and even though nothing may happen, a hashed line indicating "selected" will show up around the control. Is this preventable?
2. I included .uir and .c code demonstrating this. Several things are happening here. I am using a numeric indicator as a button to bring up a settings popup, which when "OK" is hit, returns the value to the original indicator.
2a. After the value is returned to the original indicator with the callback function's return, I noticed that the cursor is still in the indicator field. Is there any way to remove the cursor from this control programmatically?
2b. I also noted that if the mouse is moved around, the value within the indicator field may highlight. Can this highlight be prevented?
2c. With the cursor still in the indicator field, if the user wanted to set the value again, it sometimes takes 1,2,or 3 mouse clicks on the indicator to get the "event_left_click" callback to occur. Should I be using a different event, or is there some problem with the cursor still in the indicator? Sometimes the first click selects the indicator title, the second click highlights the value, and the third click brings up the popup panel.
2d. I saw an odd ctrl-v paste functionality on numeric controls. I noted that if one indicator was highlighted, ctrl-c was pressed, then the other numeric control selected and ctrl-v pressed that a constant string went momentarily into the other control, until the control was deselected and its double value went back. I since realized that this string was coming from the clipboard. Can this ctrl-v paste function be turned off for controls programmatically?
3. Different line of questioning. When using the predefined popup panels I noted that a small labwindows icon shows up on the top left of the title bar. Can this icon be removed? The icon also shows up when using a custom panel if it is loaded with "Installpopup()."
Thanks for any answers to the above questions.