On Oct 2, 2006, at 4:03 PM, Charles Yeomans wrote:
On Oct 2, 2006, at 6:51 PM, Terry Ford wrote:
One of the quirks in REALbasic that you must be aware of is that
the order of events is not guaranteed to be consistent between
platforms or even different Rb versions. For this reason, putting
a setfocus in a control losing its focus isn't guaranteed to work.
The LostFocus event should really be considered as a way to change
previous property settings in a housekeeping type manner as
opposed to triggering an event in another object. Setting the
focus of another object on a keypress should normally be handled
within the Keydown event of the object if that's what is
triggering the focus change.
I wouldn't call this a quirk so much as a lack of understanding of
event-driven program design, the REALbasic event construct, and the
fact that the use of the word "event" in both leads people to think
that they are more related than they are.
I agree. I learned that a long time ago in a problem related to
creating files and checking for their existence in the same method.
It didn't work simply because the OS didn't have a reason to update
until after my method had finished. The solution was to force the
update by recalling the folderitem constructs.
Terry
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>