>Hi all.
>I got a little problem maybe you can help me with.
>I'm using define class to generate a custom container class.
>The I issue something like
>
> _screen.addobject("RockPic", "custContainer")
> RockPic = _Screen.RockPic
> Rockpic.bgim.picture="war3.jpg"
> rockpic.visible = .t.
> rockpic.bgim.visible = .t.
>
>The container has an image in it. Inside the class I add a proc resize and a proc refresh.
>
>The problem is that when the screen resizes, my containers resize event doesn't get called. IS there a way to do what I want?
>
>The refresh doesn't get called very much either, but if I issue a _screen.refresh() it will resize the container/pic to the screen size.
>
>TIA
>-Joe
Put this.Resize in your class Init method. This should do the trick.
If it's not broken, fix it until it is.
My Blog