Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine the left and top of a Girdcell & contro
Message
From
11/09/2001 07:18:06
 
 
To
03/09/2001 07:46:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00551754
Message ID:
00555042
Views:
18
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.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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform