Hi!
Cetin, when ObjToClient() appeared in VFP (I meant, from which version), specially, when it started to work correctly for grid column, column control and header?
>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.comICQ #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.