Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Problem - Height & Width Not Found
Message
De
29/10/2007 16:04:46
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01264812
Message ID:
01264896
Vues:
12
>Ok, I'm really miffed here. I have no clue why this is happening.
>
>Here's the code that adds the panel to the page on the pageframe:
>
>
>** Add the panel to the page
>oPage.AddObject("MyPanel", sPanelClass)
>
>** Get a reference to the panel
>oPanel = .pgfPages.Pages(iNewPage).Controls(1)
>
>** Set up the panel
>WITH oPanel
>
>	.Left = 0
>	.Top = 0
>	.Height = .Parent.Parent.Height
>	.Width = .Parent.Parent.Width
>	.Resize()
>	.Setup()
>	.Visible = TRUE
>
>ENDWITH
>
>
>And here's the Resize code from the Panel class:
>
>
>WITH This
>
>  .shpBorder.Height = .Height - (.shpBorder.Top * 2)
>  .shpBorder.Width = .Width - (.shpBorder.Left * 2)
>
>ENDWITH
>
>RETURN
>
>
>
>When I step into the Resize, the .shpBorder object becomes inaccessable. When I step out of the resize,
>the .shpBorder object is then accessable. While in Resize, all the shape's PEM's disappear.

Yet another SWAG - do you need DODEFAULT() somewhere in your .Resize()?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform