Page 1 of 1

Adding Gui through code

Posted: Mon Jul 08, 2013 3:12 pm
by momo
Hi, I'm want to know if it's possible to add GUI elements with script code.

The problem that i have is:
I have a quetionnnair with a number of quetions.
And because I dont want to make a new GUI each time a number of questions changes, i want to do it dynamicly.
is that possible in Livecode?

Re: Adding Gui through code

Posted: Mon Jul 08, 2013 3:16 pm
by Klaus
Hi momo,

1. welcome to the forum :-)
2. yes, this is surely possible! Look up "create", "clone" and "copy" in the dictionary!

Drop a line if you need more or specific help!


Best

Klaus

Re: Adding Gui through code

Posted: Thu Jul 11, 2013 1:09 pm
by momo
thanks for your help

momo

Re: Adding Gui through code

Posted: Thu Aug 01, 2013 7:01 pm
by andrewferguson
Hello,
There is a lesson in the LiveCode lessons section that shows you how to make an 8-Puzzle game. The entire game was made using just code.
Link: http://lessons.runrev.com/s/lessons/m/4 ... uzzle-game
Andrew

Re: Adding Gui through code

Posted: Wed Aug 07, 2013 9:48 am
by dave.kilroy
Hi Momo

I'm doing a similar thing with multiple, user-generated checklists (data stored in SQLite database) and either show/hide previously created controls/groups or clone them and then link to the database. In one part of the app the user designs a checklist, in another part she can view and complete it.