gettingstarted
[Top] [All Lists]

Re: Update editField in a paint event

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: Update editField in a paint event
From: Paul Young <youngpr at myactv dot net>
Date: Mon, 31 Jan 2005 19:08:00 -0500
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <A061AB5E-73DF-11D9-85CC-000D93C6DE52 at spamcop dot net>
Barry,

Add:

editField.Refresh

Paul

On Jan 31, 2005, at 6:27 PM, Barrie Jones wrote:

Can someone please let me know if the following editField behavior is normal or possibly caused by my program.
The setup:
I have an EditField that should be updated each time a graphics operation is performed. The update code, myField.text = str(number) is in a graphics method called by the canvas paint event.
 "number" is incremented every time the paint event is fired.
The problem:
myField.text appears to update with the first pass, but remains the same after each subsequent pass through the paint event.

The problem is fixed by placing myField.text = str(number) outside the paint event.

Another problem that may or may not be related is that MsgBox text does not show up in methods called by a canvas paint event. A msgBox window appears on cue, but the window is blank. (No text and No button). The invisible button can be activated with return or a well placed mouse click.

If the above is not normal behavior, I will dig deeper into my code.

iBook G4, OSX, RB 5.5.3

Thanks
Barrie

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>