On 1-May-07, at 6:46 AM, Arnaud Nicolet wrote:

 > Hi,
 >
 > I've discovered a bug in RB2007r1.
 >
 > I have placed a static text on my window. Since it must be invisible
 > in the beginning, I've set the height of the window lower than the
 > top of the static text (in the IDE, the static text is in the grey
 > area). In code, I set self.height=64 when I want to show the static
 > text.
 >
 > The problem with this technique is that, in the running application,
 > the StaticText.parent property is nil. It means it does not know on
 > which window it belongs nor can't it display anything.
 > The control itself is not nil, so I can say
 > LblTimeRemaining.text="0:00", but it is never displayed.
 >
 > The workaround is to make the window covering all the controls in the
 > IDE and using the open event (or constructor) to set the window to a
 > lower size (rather annoying).
 >
 > A for-your-information message.

Umm, parent = nil is normal.  Parent is only non-nil when the parent is
another control.  I think you have something else going on.

Tim

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.467 / Virus Database: 269.6.2/782 - Release Date: 5/1/2007 2:10
AM

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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to