cheerq / flexmdi

Automatically exported from code.google.com/p/flexmdi
0 stars 0 forks source link

Null pointer exception on performing any operations on dynamically created MDIWindows #73

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Dynamically add MDIWindow to MDICanves
2. Click on the just created MDIWindow
3. MDIManager object is null.

What is the expected output? What do you see instead?
Expected output: Operations on MDIWindow as expected
Output seen: Null pointer exception

What version of the product are you using? On what operating system?
1.1 on windows

Please provide any additional information below.

Original issue reported on code.google.com by srisreeku@gmail.com on 9 Feb 2009 at 9:43

GoogleCodeExporter commented 8 years ago
I assume you are adding the windows via mdiCanvas.addChild( mdiWindow ), which 
is not
supported. The correct way (when accessing the manager through the canvas) is
mdiCanvas.windowManager.add( mdiWindow ). We hope to support the addChild() 
approach
in a future version.

Original comment by ben.clin...@gmail.com on 9 Feb 2009 at 1:18

GoogleCodeExporter commented 8 years ago
ben,
Thanks for the quick respose.
Its working fine with your suggested changes.
You guys are doing grt job by providing support to the code.
Thanks Ben.

Original comment by srisreeku@gmail.com on 10 Feb 2009 at 5:31