Hi Terry,

if I understand it correctly this would mean that the flag needs to be a property of the window right? (if it is to maintain state when the first event loops finishes)

Bart

On 2-okt-06, at 17:40, Terry Ford wrote:


On Oct 2, 2006, at 7:55 AM, Bart Pietercil wrote:

Then the question would go down to

Since the lostfocus events is triggered ( and is not named "losingfocus") I presumed the focus is already lost. So how comes that calling a Msgbox would retrigger the same event.

There are certain events that act in a very sporadic manner when a MsgBox is included within the code. The fact that you only had two show up is a blessing as often it puts your app in an endless loop.

Better to set a flag and/or use a timer to display any dialogs and let the built-in event run its course. This also applies to Open, Activate and Paint events as well as they are all related to window display methods in the OS.

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>

_______________________________________________
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>

Reply via email to