Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine top and left of active row in grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01552416
Message ID:
01552428
Views:
55
>>To get the Top of the activerow, you can loop through the columns until column.ColumnOrder == Activecolumn (grid must have the focus)
>>
>>Then get the column's currentControl ( loop through them until Controls[ i ] .name == CurrentControl
>>
>>You now have an object (textbox, editbox,. ...)
>>
>>If you use ObjToCLient on that object, you have the Top of the ActiveRow - relative to the form
>>
>
>Thanks. I couldn't remember ObjToClient's name. That's what I was looking for.
>
>Any idea how to get an ObjToClient relative to the _screen ? I can obviously add form.top and form.left but those + objtoclient values don't factor in form border which itself is dependent on the relevant theme I would think.

found it. another one I don't use very often, sysmetric()
Brandon Harker
Sebae Data Solutions
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform