Dynamically Creating Buttons

Robert Brenstein rjb at robelko.com
Tue May 28 18:07:06 EDT 2013


On 28.05.2013 at 13:35 Uhr -0400 Graham Pearson apparently wrote:
>Without having any objects on a card, does anyone have notes on how to
>create a button and position it to the coordinates of 5,5
>
>In my application, I am to the point now to taking each record from a
>database and creating a button for the user to select. The information
>from this loop will contain the text for the button and will allow for 5
>pixels of spacing between buttons.

You might want to consider filling card with buttons, hide all of 
them, and show as needed, setting their labels instead of actually 
creating them.

Robert




More information about the Use-livecode mailing list