[comp.sys.mac.programmer] TEditText override question

is_s440@ux.kingston.ac.uk (06/17/91)

I am reposting this question because maybe my last was attempt
wasnt clear.

I need to do some extra checking on the contents of  a TNumberText
view. I want to be able to do a comparison with the value of another
text view in the same dialog. sounds easy? just try!

I have tried subclassing TDialogView: TCheckNumber and putting the TNumberText
View over an instance of TcheckNumber so that my override
of TDialogView.DeselectEditTExt gets called after the user has edited
the field. Unfortunately doesn't seem to work. The view doesnt seem to
get checked until I close the Dialog and then it wont let the field
be re-edited. I also have another TEditText field in the same dialog
and when i select this I cant reselect the other. So in general thsi
seems to be the wrong way to do things.

Is there a simple way of achieving my aims. How can you just check a
field to enable a save button.