main logo
Subject: Re: Simple form One field, Value Revert to previous on Escape
Author: Bhavbhuti Nathwani
Posted: 2002/02/13 23:25:43
 
View Entire Thread
New Search


Thanks Ed.

<i><font color="#663300"><i><font color="#663300">Hi I just created a simple form with one text field only. I was able to successfully data-enter.

While naviagting using Ctrl+PgUp/Dn keys or the toolbar, say for eg. I go from record 2 to rec 3 and for some reason I press escape in this one and only field, the value display will revert to that of record 2 and any further movement of the record pointer will ask me if I want to save the changes.

Please adivse what I am doing wrong. This also interfers if I have set or not set the lReleaseOnEsc property of the iBizObj form.</font></i>

Hmm... I never noticed this before. I think it must be some artifact of the sequence of events in the refreshing of the form, but it does happen, and it happens on any text box that has focus when you navigate, even if there are others on the form. Once you change focus, the problem disappears.

I played around with this, and it seems that calling the ActiveControl's SetFocus() event will eliminate the problem. So I'll add that code to the navigation methods for the base bizobjform class.
</font></i>

Regards
Bhavbhuti
 
©2002 Bhavbhuti Nathwani
<-- Prior Message New Search Next Message -->