Copying controls inside a DataGrid, at run time

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 1079
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Copying controls inside a DataGrid, at run time

Post by trevix » Thu Jul 21, 2016 6:35 pm

I am building a sort of Gantt chart using a data grid.
Diamond shaped graphics, will sign the "milestones".
Since there could be any number of milestone on each line of the data grid, I tough about copying a single diamond graphic object (saved on the Raw Template), using the FillInData command.

Code: Select all

 on FillInData pDataArray
...
copy graphic "MilestoneTemp" to me
...
end FillInData
This works for the first line, but not on the second one and others.
Any clue?

Thanks
Trevix
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1079
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Copying controls inside a DataGrid, at run time

Post by trevix » Sat Jul 23, 2016 9:24 am

Sorry.
I forgot a "of me" in the script. Now it works.

It's kind of strange tough that I couldn't find any Gatt stack example on the web. Nobody needs it?
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

Post Reply