Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find height of toolbars
Message
From
05/01/2005 19:07:01
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00974203
Message ID:
00974564
Views:
21
objtoclient(datecontrol,1)+objtoclient(thisform,1) works if there is not a toolbar. Otherwise I am to low about 30 pixels. Thus, how can I find the height of the toolbar. I figure that I have the same issue with the left property but lets take one at a time.

Thanks.


>>Barbara
>>
>>Sorry for the confusion. Let me see if I can explain what I am trying to do.
>>
>>I have a date control on form1 that has a button beside it to pop up a calendar. The calendar ocx is in another form that I would like to position underneath the date control. By adding the form1.top+objtoclient(datecontrol)+datecontrol.height to the calendarform.top I don’t get to where I want to be. It also seems to be different if the datecontrol is on a pageframe. How do I calculate the calendar top value?
>>
>>Thanks.
>
>Where do you end up instead? Also, don't you need to figure out where the left of the form should be?
>
>Make sure you include all the containers that the date control is in. You may want to do a recursive call to get the Top or objtoclient until you find the parent's BaseClass property is "Form".
>
>BTW, if you want to use objtoclient instead of Top, I would do that consistently with each object instead of using a mix of top, height and objtoclient. I think you can get it to work either way though.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform