Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine the left and top of a Girdcell & contro
Message
 
 
À
03/09/2001 07:46:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00551754
Message ID:
00551776
Vues:
19
Cool! Did not knew that grid column position in pixels could be calculated that way...

>Remove text1 for column1 and try. If not in visible area than would return 0. If visible you still get the correct horizintal position.
>Cetin
>>Hi!
>>
>>I just tried to run a simple test - in the Click event of the cell text box in column2 put following:
>>
>>? ObjToClient(this,1)
>>? ObjToClient(this,2)
>>? ObjToClient(this,3)
>>? ObjToClient(this,4)
>>? ObjToClient(this.parent.parent.Column1.Text1,1)
>>? ObjToClient(this.parent.parent.Column1.Text1,2)
>>? ObjToClient(this.parent.parent.Column1.Text1,3)
>>? ObjToClient(this.parent.parent.Column1.Text1,4)
>>
>>And it produces following values:
>>
>>55
>>128
>>73
>>15
>>4000
>>4000
>>10
>>10
>>
>>Where last 4 values for Column1 (not active, but in visible grid area) are always the same.
>>
>>
>>>Not necessarily. Top would need it and could be calculated for a nonactive cell.
>>>Cetin
>>>
>>>>Hi!
>>>>
>>>>This will work only when cell is active.
>>>>
>>>>>>how to determine the left and top of a Girdcell & control
>>>>>
>>>>>See ObjToclient()
>>>>>
>>>>>Cetin
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform