DocumentWindow::resized() : impossible overload


#1

when I code a class inheriting from DocumentWindow, I get much troubles with overloading “resized”, would you help ?

myclass:resized(){ DocumentWindow::resized(); myComp->setBounds(0,0,val1,val2); };
does not rule.

Does someone know why ?


#2

Maybe “myComp” is the window’s content component? If so, you should let the window manage its size.


#3

“mycomp” is an added component.


#4

Ok, well I’m afraid my psychic powers aren’t strong enough to know what’s wrong.


#5

Well, shame on me, i had forgotten the “element(0)” spec :

[code]MyClass:MyClass : public MotherClass, element1(0), element2(0)…
{

};
[/code]

And that’s all

thank you for your patience.