Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Problem - Height & Width Not Found
Message
From
29/10/2007 14:31:38
Al Doman (Online)
M3 Enterprises Inc.
North Vancouver, British Columbia, Canada
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01264812
Message ID:
01264861
Views:
10
>I am creating a tab set for displaying multiple pages on the desktop, just like VS and SQL do.
>
>I have created a container with a pageframe on it called App_TabSet.
>
>App_TabSet has an AddPane method. A Pane is just a container that gets added to a new page on
>the App_TabSet pageframe.
>
>The Resize of App_TabSet loops through all the pages on the pageframe and calls the Resize of
>the pane container on each page.
>
>The base class Pane container has a shape on it, as a border around the edge. The resize of
>this base class Pane container has:
>
>
>This.shpBorder.Height = This.Height - (This.shpBorder.Top * 2)
>This.shpBorder.Width = This.Width - (This.shpBorder.Left * 2)
>
>
>The 'This.Height' and 'This.Width' parts are ok. In the debugger I can see their values.
>
>But any reference to This.shpBorder appears in the debugger as an object, but the '+' sign
>to expand the object and look at its properties is not there. When I drag 'This.shpBorder.Top'
>down into the Watch Window, it cannot be evaluated.
>
>The Pane and the Shape are native VFP controls, not subclassed. All PEM's are public.
>
>Anyone know what is happening here?

Just a SWAG - if you're adding shapes via AddObject, might you need to set .Visible = .T. before you start manipulating properties?
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform