Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ObjToClient?
Message
De
23/01/2001 18:11:23
 
 
À
23/01/2001 17:57:38
Jill Derickson
Software Specialties
Saipan, CNMI
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00467649
Message ID:
00467659
Vues:
9
>Hello all,
>
>I'm trying to figure out the position, in a form, of a textbox, that's in a container. Unless I'm missing something, a container object doesn't have a TOP property. The TOP of the textbox, w/in the container is 2.
>
>I've found ObjToClient, and am using it as follows, in the INIT method of the form:
>
>nPosition = ObjToClient( ThisForm.Acbogrid1.txtSch, 1 ) && find top of search box, relative to form
>WAIT WINDOW "Top of search box = " + STR( nPosition )
>
>I keep getting 2 for the nPosition value - even when moving the container around on the form. Can someone shed any light on this?
>
>TIA, J

Containers do have a .Top and a .Left, too.

OBJTOCLIENT works for me. Are you sure your TextBox is IN the container?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform