Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame Height
Message
From
19/03/2008 17:48:46
 
 
To
19/03/2008 16:53:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01303410
Message ID:
01303683
Views:
16
>>>>>>We have pageframe that sometimes has a single row of page tabs, and other times has a double row of tabs. I need to determine the true position of the bottom of the pageframe. Generally, I would add the Top position to the height. But in the Form.Init the height of the pageframe will be 20+ pixel more then it is on the actual screen. Is there a proper way to find the bottom position?
>>>>>>
>>>>>>If I could determine the position of a control on the page as it is on the form that would help too. Or finding the position of an object relative to the form.
>>>>>>
>>>>>>Thanks
>>>>>
>>>>>Can you use Pageframe.PageHeight property?
>>>>
>>>>I looked at that, but that is the physical height of the page within the pageframe. If I could determine the position of an object in the pageframe relative to the the form, or the number of tab rows, then I can calculate the position of the bottom of the pageframe.
>>>
>>>Have you tried looking into OBJTOCLIENT function?
>>
>>Thanks. That what I was looking for.
>
>
>Just be aware that objtoclient has bugs, it returns an erroneous value when called under certain circumstances, before page activate, (can't remember exactly)
>
>Just checked, lucky for us this has been "resolved":
>
>https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=306321
>
>I will post a replacement objtoclient function I wrote for the ctl32 classes latter today.
>
>Carlos

Thanks, I will keep eye on it, and look forward to seeing your replacement.
Greg Reichert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform