How do I create a group of buttons on the fly

Chipp Walters chipp at chipp.com
Sun Feb 17 02:13:07 EST 2008


Not using Outlook 2003, let's ask some questions first. Are there a finite
number of buttons and do you already know what they are? If so, then create
them all and just show or hide them on your preOpenCard script. This way you
don't have to create buttons and add scripts on the fly.

If you're having to manage their location on resize, then you'll need to
write you own resizeStack handler. There are quite a few good thread on this
already. If the order of the buttons are to change, then keep them all in a
single group and set the loc of the group in the resizeHandler, so you don't
have to worry about which button goes where.

HTH, Chipp



More information about the use-livecode mailing list