Editable page

dunbarx at aol.com dunbarx at aol.com
Sat Apr 2 12:00:48 EDT 2011


LiveCode is more than powerful and flexible enough to do what you want. Simple, to boot.


The problem is that you might give away too much control, so that the whole app could be trashed by your users since you either have to give access to IDE tools, or permit only choices from a menu of properties, say. Fortunately, you can lock the core objects.


Do you want to give just a limited, preset number of options to the user when a new control is created, or allow all properties to be adjusted? If the former, I can think of a few cute gadgets that would be fun to implement. Write back...


Craig Newman





-----Original Message-----
From: Maarten Koopmans <maarten.koopmans at gmail.com>
To: use-livecode at lists.runrev.com <use-livecode at lists.runrev.com>
Sent: Sat, Apr 2, 2011 5:25 am
Subject: Editable page


Hi,

I have a stack where I want the user to be able to add objects ((e.g.
images, lines, text). I can set the tool to [ ... ]. Think an
"editable page". But my problem then is (let's take an image for
example):

- how do I make it so that the user can add an image to the placeholder
- move the image
- resize it

Same for lines, texts, ... any ui element, really - I am trying to
create a mock-up tool.

My thoughts were be that I:

a) have the user add the object to the the stack
b) dynamically attach handlers to the newly created object that
implement any desired object-specific behavior (i.e. move. (reset
image source, crop, ...)

How do I add the handlers dynamically (I really haven't been able to
find it), and moreover, where do I store these templates in the
overall stack.

I think I haven't wrapped my head around the LiveCode model to do
these more dynamic things, *any* help would be greatly appreciated!!!

Thanks, Maarten

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list