11-10-2006 03:39 PM
11-10-2006 08:54 PM
11-10-2006 10:08 PM
Here's a couple of other things you could try. One would be to create a Numeric Indicator and put it directly over the Numeric control, but leave the inc/dec buttons visible. On your diagram, just wire the Control terminal directly to the indicator terminal in a Value Change event case for the control. This essentially accomplishes what you want, and gives you the added benefit of allowing the user to highlight the value in the indicator (if he wants to copy/paste it, e.g.), but not allowing him to change the value.
Another slick thing you can do would be to have a Mouse Move event configured on the control, and whenever the mouse moves within the rect defined by the inc/dec buttons, enable the control. But if you get a Mouse Move event on the control and the coordinates are not inside this rect, disable the control.
Rock on,
-D
11-11-2006 12:56 AM