Unit 5 - Where is the code for Buttons, TextInput, etc


#1

In Design Mode, I can drag and drop a button onto the screen. I can change its color, size, what’s typed in it, etc. Where is the code for all of these settings?

I tried to use textLabel and textInput on their own, but they do not show in Design Mode. I also get a “Yield” sign saying that the for id does not exist.


#2

@afflerbach

It depends on where you are in the curriculum. During the activity bubbles, some command are restricted. In full Applab, the commands to alter elements are located in the UI controls section. Design mode is the initial state of your environment. Changes to elements made using code will not show up in design mode. Check to make sure the spelling of your id is exactly the same including uppercase/lowercase.

Happy computing,
Andrea