Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Problem - Height & Width Not Found
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01264812
Message ID:
01264922
Views:
13
Gentlemen, this issue is resolved!!!

The hierarchy of all this is:
  _Screen
    Container   (Called "App_Tabset")
      PageFrame   (Called "pgfPages")
        Page
          Container (Called "cntPanel")
            Shape (Called "shpBorder")
The Resize code in cntPanel sets the Height & Width of the shape, which was failing.

The problem was that all PEM's in the App_Tabset were Hidden. I don't understand why
this would cause the problem of the Shape's PEM's disappearing, but when I made all
the App_Tabset PEM's public, it now works.

Go figure.

Thanks for all the help.




>>>>>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()?
>>>
>>>I tried. No help.
>>>
>>>I'm willing to try anything at this point, but again, I fail to see how this would have anything to
>>>do with the PEM's disappearing.
>>
>>Do you have any ActiveXs anywhere?
>>
>>Can you try CLEAR DEBUG, renaming your FOXUSER file etc.?
>
>Now that's a WAG. Although I'm outta steam on this, so I'll try it.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Reply
Map
View

Click here to load this message in the networking platform