Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Relative position
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Relative position
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01354193
Message ID:
01354193
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform