Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class & resize
Message
 
 
À
25/08/2000 11:21:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00409258
Message ID:
00409312
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform