Create a widget for adding users
This widget enables you to add new users by determining their name, password, and locale.
- Create the CreateUserWidget panel:
- InProject view, right-clickUIand select .
- Hover-over the panel, select , and enterCreateUserWidget.
- Add labels:
- Add three labels by right-clickingUserDetailsand selecting .
- Rename the labels by hovering-over each label, selecting , and entering:
- NameLabel
- PasswordLabel
- LocaleLabel
- SelectNameLabeland inProperties, setTexttoName.
- SelectPasswordLabeland inProperties, setTexttoPassword.
- SelectLocaleLabeland inProperties, setTexttoLocale.
- Add a text box for user password:
- InProject view, right-clickCreateUserWidget (type)and select .
- Hover-over the text box, select , and enterPasswordBox.
- InProperties, setContent TypetoPassword.
- Add a text box for user name:
- InProject view, right-clickCreateUserWidget (type)and select .
- Hover-over the text box, select , and enterNameBox.
- Create a locale picker:
- InProject view, right-clickCreateUserWidget (type)and select .
- Hover-over the combo box, select , and enterLocaleCombo.
- Create a dynamic link between theModelproperty and .For more information about dynamic links, see Create dynamic links.
- Create the Add User button:
- InProject view, right-clickCreateUserWidget (type)and select .
- Hover-over the button, select , and enterCreateButton.
- InProperties, setTexttoAdd User.
- InEvents, next toMouseClick event, select and select
- Create a dynamic link betweennameand .For more information about dynamic links, see Create dynamic links.
- Create a dynamic link betweenpasswordand .
- Create a dynamic link betweenlocaleIdand .
- Next toMouseClick event, select and select .
- Create a dynamic link betweenNewPanelPathand .
- Create the Cancel button:
- InProject view, right-clickCreateUserWidget (type)and select .
- Hover-over the button, select , and enterDiscardButton.
- InProperties, setTexttoCancel.
- Next toMouseClick event, select and select .
- Create a dynamic link betweenNewPanelPathand .For more information about dynamic links, see Create dynamic links.
- Arrange the interface elements.
Fornire un feedback