Menu

#548 Overlapped windows can't be created in not visible container

2.4.1
closed
nobody
None
5
2007-09-12
2007-07-26
r_torres
No

Hi there (Again!)

Another problem with the overlapped windows.

I've tried to create a window inside a DIV. in the moment of creating it, the DIV isn't visible, so there is an exception telling "unable to do overlapped as one of its ancestors is not visible"

This the code with the bad function:

<window title="My First Window" border="normal" width="200px">
<div id="test" visible="false">
<window border="normal" title="Test overlapped" width="150px" mode="overlapped">
<label value="This is an overlapped window"/>
</window>
</div>
</window>

On the other hand i've tried this code in order to check if an overlapped window can be contained by a not visible container, in this case it works properly, so the problem is only in the creation

Code working properly:

<window title="My First Window" border="normal" width="200px">
<div id="test">
<window border="normal" title="Test overlapped" width="150px" mode="overlapped">
<label value="This is an overlapped window"/>
</window>
</div>
<button label="testMe" onClick="testMe(event)"/>

<zscript>
public void testMe(Event event) {
test.setVisible(!test.isVisible());
}
</zscript>
</window>

Thanks

Regards!

Rafael Torres

Discussion

  • Tom M. Yeh

    Tom M. Yeh - 2007-09-12
    • milestone: --> 2.4.1
    • status: open --> closed
     
  • Tom M. Yeh

    Tom M. Yeh - 2007-09-12

    Logged In: YES
    user_id=91099
    Originator: NO

    Fixed since 9/12

     

Log in to post a comment.