Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relative position
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Relative position
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01354193
Message ID:
01354193
Views:
56
I have a form which contains a control of mine. Inside of the control are a number of nested controls (let's call them "Ax" where x is a number), which themselves have nested controls. When you click on one of these controls I get a reference to the first level of nested control (Ax). I want to open a new form that aligns itself with the top of Ax. I also align the form's right side with the right side of the Ax control.

The horizontal alignment is working fine, and I thought I had the vertical alignment working but it's (vertical alignment) suddenly not working on another form, so I guess I don't. Here's what I was using:
lnTop = OBJTOCLIENT(toControl, 1) + ThisForm.Top + This.Height + 6
lnLeft = ThisForm.Left + OBJTOCLIENT(toControl, 2) + OBJTOCLIENT(toControl, 3)
Any thoughts on how I get the actual vertical offset of this Ax control?
-Paul

RCS Solutions, Inc.
Blog
Twitter
Next
Reply
Map
View

Click here to load this message in the networking platform