Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page height Property Problem
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00802415
Message ID:
00802519
Views:
23
Hi Fred

Here is the repo code:

lo=CreateObject("pgStd")

? PEMStatus(lo,"Height",5)

.T.

The pgStd class is simply a subclass of the VFP page class with no modifications. The pemstatus return .T. for the height property. If you look in the vcx file you will see that there is a height property. I guess it is used by the class designer and delibrately hidden.

If you simply create a pageframe and set the pagecount to some number greater than 1 you do not get the problem. It only happens with the member class set to a custom page class.

The reason I use the Height property is because I want to treat a page exactly the same as other objects. I am aware of the potential problem of using reserved words but this is a delibrate decision.

Simon



>>In VFP 7 I added a Height property to the pages in the PageFrame Init so that I had a height property for the pages. This is necessary when trying to determine the absolute co-ordinates of an object contained on a page. However, this is not possible in VFP 8.0 because it says the property exists.
>
>I don't see any Height property on a page in VFP8, and neither does PEMSTATUS(). You might wan to try a different property name as it's usually not a good idea to use a VFP reserved word.
>
>
>>>PemStatus(myPage,"Height",5) returns true, however the height property is not visible in the class designer property sheet. If you check the value of the page height property it returns .F. for a page instance.
>>>
>>>The property should return the proper page height.
>>>
>>>Simon
Simon White
dCipher Computing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform