//[UserResized] Add your own custom resize handling here..
m_SubComponent->setBounds("544,24,432,560");
//[/UserResized]
}
I put a breakpount in my subcomponent paint( ) and in the first case it’s reached, but in the second, it isn’t… I wanted to do some more fancy layout with autosizing, but… if this one doesn;t work I guess the more fancy ones won’t either
The first version uses normal int parameters, which fit the form: x,y,width,height.
The second version, using a string expression, takes a slightly different form: left,top,right,bottom
Thus, your examples are not equivalent. For the second to be the same as the first, you could do: