Need help with GUI validation problem...
I have a dialog box with a tree control and 10 edit boxes that hold strings. (The strings represent floats & ints in the underlying data). Items on the Treecontrol(1,2... n) has 10 edit boxes. The users click on the tree control to see the next item with it's edit boxes of data. My problem is this: Say for example, EditBox1 can hold a number, 0-600 only. The user enters a digit... I first tried using OnChangeEdit1 so everytime data changed in the box I'd validate it... but I ran into a problem when a user was entering data I was checking it EVERY digit entered into the box. So I tried to check it in OnKillFocusEdit1, but I noticed that when I clicked on the treecontrol from the EditBox1, that EditBox1 for the previous item was no longer in focus but eEditBox1 for the newly clicked on item WS in foucs so that's the data I got. Like the KillFocus couldn't happen fast enough. Can anybody help me please...?
Thank you.