|
From: Davy D. <dd...@ne...> - 2001-12-14 17:27:45
|
Jeroen van der Zijp wrote:
>
>
> > (Anyway for now.. I'm going to put 2 labels on top if each other and use
> > raise() to bring to the top which ever I want to show... I only hope
> > this doesn't have the same side effect)
>
> To verify things, you could enable tracing. FXWindow::position() prints
> out the new size. If the size is the same as before and there are no
> other reasons for layout then it should not call layout again.
>
Okay... I'll try this and get back to you...
>
> Does your layout() routine reset the dirty flag at the end, as below:
>
> void MyWidget::layout(){
> ....
> flags&=~FLAG_DIRTY;
> }
>
> If it is not marked as "clean" then layout will be called again and
> again.
>
> The flag is to force layout under certain conditions even when size
> has not changed.
Wouldn't the base class's layout method turn off the dirty flag, I am calling
it...
|