cControl.addStateListener in 1.0.8.p5g

Hi,
I used the version 1.0.7 in my program and it worked fine.

With the version 1.0.8.p5g the stateListener does not work. Can you give me an example, how can I solve the problem.

My code looks like this:


CControl control = ...;
control.addStateListener(new CDockableStateListener(){        @Override
        public void visibilityChanged(CDockable cd) {
                System.out.println("visibilityChanged");
        }

        @Override
        public void minimized(CDockable cd) {
                System.out.println("minimized");
        }

        @Override
        public void maximized(CDockable cd) {
                System.out.println("maximized");
        }
...
} );

Of course I added some DefaultSingleDockables to the control using a CGrid.

After launching the program, I get only the message “visibilityChanged” but never “normalized”, “minimized” etc.

Thx a lot.
EnBee

If I’ve followed the forum correctly this is already fixed in the trunk.
Look at http://forum.byte-welt.de/showpost.php?p=13324&postcount=4

THANKS