datagrid (loc of elements)
Trevor DeVore
lists at mangomultimedia.com
Mon Jan 17 12:12:16 EST 2011
On Sat, Jan 15, 2011 at 9:49 PM, Harald Müller <harald at etcpp.de> wrote:
> I try to show an card element at the loc of the selected line of a datagrid
> form.
> Is there a way to get the loc of datagrid element or will I have to put it
> inside
> the datagrid and toggle the visible when a line is hilted?
>
Since you are using a form you can take a look at the dgDataControlOfLine
property.
put the dgDataControlOfLine[ the dgHilitedLine of group "DataGrid" ] of
group "DataGrid" into theControl
if theControl is not empty then
put the loc of theControl into theLoc
....
end if
Take a look at the entry in the API docs:
http://lessons.runrev.com/spaces/lessons/manuals/datagrid/lessons/7344-Data-Grid-API
--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
LiveCode Resources for Developers: http://livecode.bluemangolearning.com
More information about the use-livecode
mailing list