[HELP] anyone have a simple handler to add a control to a group programatically?
andre at andregarzia.com
Tue Aug 10 21:47:23 EDT 2010
:-O x 100000000
Is it that simple?!!? :-O
I can code a whole web server in Rev but could not do it! :-D
Now, for your amusement, I will tell you what I was doing. I kept a "Stack"
(the datastructure not the file format) with all the long ids of the
controls in a group. If I needed to add one control to a group. I'd ungroup
them, then, assemble a string with all the long ids plus the new control and
group them again.
I knew it was supposed to be easier than that...
Thanks Jacque, you are a life saver, as always!
On Tue, Aug 10, 2010 at 10:10 PM, J. Landman Gay
<jacque at hyperactivesw.com>wrote:
> On 8/10/10 8:04 PM, Andre Garzia wrote:
>> Trying not to reinvent the wheel here. I am working with some runtime
>> creations but I like to be able to add controls to an existing group.
>> Checked the docs and did not found anything like that. Did anyone here
>> created such command?
>> Thanks in advance
>> Andre "groups inside groups inside groups inside..." Garzia
> Use: create <obj> in grp <grpname>. For example:
> create btn "newBtn" in group "groupTwo"
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
http://www.andregarzia.com All We Do Is Code.
More information about the Use-livecode