> Jorge Barboza wrote:
>
> > Greetings.
> >
> > I'm working on a project where I have a statictext overlaying a canvas.
> >
> > It changes the text dinamically, and 2 of them (canvas and statictext) hide
> > or show at the same time with the visible property.
> >
> > On the Mac, it works perfect, but when running in a windows machine, the
> > canvas shows just fine, but only sometimes the static text will show.
> >
> > Those are 3 canvases and 3 statictexts. Also, only 1 static text will appear
> > and then the 3 canvases with their background.
> >
> > Is there anyone out there with the same result?
> > Is there a workaround for it?
> >
> > Thanx in advance.
>
> Jorge, I have had similar but perhaps not identical problems.
> I have a couple of suggestions (workarounds) that might help.
> 1. I have had problems when controls are made initially invisible in the
> properties window of IDE. I have found it better to set all controls to
> visible
> in the properties window and then control the initial visibility in the Open
> event of the window. Specifically I found that Controls fully enclosed in a
> canvas cannot be made visible in Win32 environment if the canvas is initially
> set to not visible in the properties window of IDE.
> 2. With some display problems on Win32 it helps to initially position the
> problem control so that it is NOT the child of a another control and then
> move
> it to its correct position in the Open event of the Window. However if both
> your canvas and static text hide/show at same time this shouldn't be the
> problem.
>
> Regards
>
> Karl Holmes
Jorge, after writing and sending the above I checked further and found that in a
couple of situations I was not able to resolve the problem with either
suggestion
1 or 2. The problem seemed to be when I had a static text on top of a canvas
which
was on top of another canvas.
I resolved these by drawing the text directly into the backdrop of the top
canvas.
This worked OK for me but I suppose it depends on the application.
We should RealBug it, 'cause I believe it is a problem.
regards
Karl Holmes
|