programmatic creation of datagrid?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

programmatic creation of datagrid?

Post by SteveTX » Sun Jul 21, 2013 10:43 pm

Can datagrids only be created through dragging to card from the IDE?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: programmatic creation of datagrid?

Post by dunbarx » Mon Jul 22, 2013 4:24 am

I don't know.

I was thinking it might be possible to set the properties of the templateGroup to all the properties of an existing dataGrid, and then when you create a new group, you get a new datagrid?

I don' think so. There are a lot of objects in a datagrid, and this object set is way beyond merely the properties of a group. Just thinking out loud here.

I don't know.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: programmatic creation of datagrid?

Post by Simon » Mon Jul 22, 2013 5:24 am

I'm thinking, since a DG is written in LC it can be done.
Probably a ton of work, is there a revDataGrid? hmm don't see one immediately.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

SteveTX
Posts: 170
Joined: Sun Jan 17, 2010 9:00 pm

Re: programmatic creation of datagrid?

Post by SteveTX » Mon Jul 22, 2013 5:35 am

I am sure it can be done via livecode, there is just no object creation function for the macro that is available. At least not yet...

makeshyft
Posts: 222
Joined: Mon Apr 15, 2013 4:41 am
Contact:

Re: programmatic creation of datagrid?

Post by makeshyft » Mon Jul 22, 2013 5:43 am

you can make a copy of an existing datagrid group no?....isn't the "template stack" stored in one of the internal properties of the group?.... perhaps make a copy but change the template that it references ...and for sure u can change the template via the code.
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com

Post Reply