Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class & resize
Message
 
 
To
25/08/2000 11:21:04
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00409258
Message ID:
00409312
Views:
20
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform