Adding Gui through code

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
momo
Posts: 6
Joined: Mon Jul 08, 2013 2:59 pm

Adding Gui through code

Post by momo » Mon Jul 08, 2013 3:12 pm

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?

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Adding Gui through code

Post by Klaus » Mon Jul 08, 2013 3:16 pm

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

momo
Posts: 6
Joined: Mon Jul 08, 2013 2:59 pm

Re: Adding Gui through code

Post by momo » Thu Jul 11, 2013 1:09 pm

thanks for your help

momo

andrewferguson
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 184
Joined: Wed Apr 10, 2013 5:09 pm

Re: Adding Gui through code

Post by andrewferguson » Thu Aug 01, 2013 7:01 pm

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

dave.kilroy
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 858
Joined: Wed Jun 24, 2009 1:17 pm
Contact:

Re: Adding Gui through code

Post by dave.kilroy » Wed Aug 07, 2013 9:48 am

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.
"...this is not the code you are looking for..."

Post Reply