The SpinEdit control allows me to get the input of an integer value. You can change the value by using the up/down thing to the right. I am also leaving it enabled the user can directly type in an integer. I have a routine that checks to see that it is an integer that has been entered and resets the number and gives a message informing the user that only integer values should be entered.
The problem:
If the user highlights the entire number in the SpinEdit and then types in a number it sometimes crashes. If it were as simple as just thinking it was non-integer (and it seems to be giving that type of error) it should be caught by my exception handling routine for this. More perplexing yet, it seems to do this intermittently, in that for reasons that I can not discern sometimes the machine seems to be in a state where this does not happen. It is as if sometimes when one has highlighted the entire old number and starts typing in a new number the control is confused as to its entry and sometimes thinks it is I am not sure what.
Suggestions and explanations much appreciated. I want to leave the control enabled so either the SpinEdit can be used or direct integer data entry.
The problem:
If the user highlights the entire number in the SpinEdit and then types in a number it sometimes crashes. If it were as simple as just thinking it was non-integer (and it seems to be giving that type of error) it should be caught by my exception handling routine for this. More perplexing yet, it seems to do this intermittently, in that for reasons that I can not discern sometimes the machine seems to be in a state where this does not happen. It is as if sometimes when one has highlighted the entire old number and starts typing in a new number the control is confused as to its entry and sometimes thinks it is I am not sure what.
Suggestions and explanations much appreciated. I want to leave the control enabled so either the SpinEdit can be used or direct integer data entry.