App Inventor/Use Interface: различия между версиями
Материал из Поле цифровой дидактики
Patarakin (обсуждение | вклад) |
Patarakin (обсуждение | вклад) |
||
Строка 2: | Строка 2: | ||
: http://ai2.appinventor.mit.edu/reference/components/userinterface.html | : http://ai2.appinventor.mit.edu/reference/components/userinterface.html | ||
: http://www.appinventor.org/apps2/IHaveADream/IHaveADream.pdf | : http://www.appinventor.org/apps2/IHaveADream/IHaveADream.pdf | ||
== Кнопки == | |||
Компоненты, с которыми пользователь совершает действия. | |||
Buttons detect when users tap them. Many aspects of a button's appearance can be changed. You can use the <big><tt> Enabled </tt></big> property to choose whether a button can be tapped. | |||
=== Свойства кнопок === | |||
<big><tt> BackgroundColor </tt></big> | |||
: Color for button background. | |||
<big><tt> Enabled </tt></big> | |||
: If set, user can tap button to cause action. | |||
<big><tt> FontBold </tt></big> | |||
: If set, button text is displayed in bold. | |||
<big><tt> FontItalic </tt></big> | |||
: If set, button text is displayed in italics. | |||
<big><tt> FontSize </tt></big> | |||
: Point size for button text. | |||
<big><tt> FontTypeface </tt></big> | |||
: Font family for button text. | |||
<big><tt> Height </tt></big> | |||
: Button height (y-size). | |||
<big><tt> Width </tt></big> | |||
: Button width (x-size). | |||
<big><tt> Image </tt></big> | |||
: Image to display on button. | |||
<big><tt> Text </tt></big> | |||
: Text to display on button. | |||
<big><tt> TextAlignment </tt></big> | |||
: Left, center, or right. | |||
<big><tt> TextColor </tt></big> | |||
: Color for button text. | |||
=== События для кнопок === | |||
<big><tt> Click() </tt></big> | |||
: User tapped and released the button. | |||
<big><tt> GotFocus() </tt></big> | |||
: Button became the focused component. | |||
<big><tt> LostFocus() </tt></big> | |||
: Button stopped being the focused component. | |||
Версия 07:19, 3 октября 2023
- Источники
- http://ai2.appinventor.mit.edu/reference/components/userinterface.html
- http://www.appinventor.org/apps2/IHaveADream/IHaveADream.pdf
Кнопки
Компоненты, с которыми пользователь совершает действия.
Buttons detect when users tap them. Many aspects of a button's appearance can be changed. You can use the Enabled property to choose whether a button can be tapped.
Свойства кнопок
BackgroundColor
- Color for button background.
Enabled
- If set, user can tap button to cause action.
FontBold
- If set, button text is displayed in bold.
FontItalic
- If set, button text is displayed in italics.
FontSize
- Point size for button text.
FontTypeface
- Font family for button text.
Height
- Button height (y-size).
Width
- Button width (x-size).
Image
- Image to display on button.
Text
- Text to display on button.
TextAlignment
- Left, center, or right.
TextColor
- Color for button text.
События для кнопок
Click()
- User tapped and released the button.
GotFocus()
- Button became the focused component.
LostFocus()
- Button stopped being the focused component.