I have a component wich extends Canvas (FloorPlan). I add a component
extending Container to this Canvas.
Now, in this Container, I draw a lot of things and I set the width and
height myself so the Canvas show ScrollBars where needed.
The problem now is following :
If I redraw something and reset the width and height of the Container,
strange things start to happen when previously the horizontal scrollbar
for instance was at its maximum.
If I click the horizontal scrollbar, somehow the Canvas changes its
scrollbars to correctly.
I tried all of these, and nothing seems to work.
In the Container :
//paints things and sets width and
height of Container
this.paint();
this.validateNow();
this.validateDisplayList();
this.validateSize()
this.validateNow();
(this.parent as FloorPlan).validateNow();
(this.parent as FloorPlan).validateDisplayList();
(this.parent as FloorPlan).validateSize();
(this.parent as FloorPlan).validateNow();
Lieven Cardoen
Application developer
indiegroup
interactive digital experience
engelse wandeling 2 k18
b8500 kortrijk