More button editing

Hi. Can I edit the appearance of the buttons with a code? i just want to make more changes and the editor in ap inventor is limited.

You can make minimal changes to Buttons using Blocks as enumerated in the documentation Button

This means you can change using code:
-- BackgroundColor
-- Bold (for some)
-- Italic (for some)
-- Size
-- TextColor
-- others as shown in the documentation.

You cannot use code to change Shape which specifies the shape of the Button . The valid values for this property are 0 (default), 1 (rounded), 2 (rectangle), and 3 (oval). The Shape will not be visible if an Image is used.

You cannot use code to change FontTypeface* that specifies the text font face of the Button as default, serif, sans serif, or monospace.

What you can and cannot do with Blocks is discussed in these resources that can help you learn to use the AI2 tools. A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.

There is a free programming course here and the aia files for the projects in the book are here:

How to do a lot of basic things with App Inventor are described here: .

Also look here and here for more tutorials.

Learn about components
and visit the Library Help>Library on the MENU

1 Like

Will those features be implemented in upcoming versions (@ewpatton)?

Here is a runtime example of button modification ...

1 Like

There is an open pull request to add this functionality, among other changes. I don't think we will put it into the nb188 release but maybe we can schedule it for nb189.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.