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, selectEditCreateUserWidget.
- Add labels:
- Add three labels by right-clickingUserDetailsand selecting .
- Rename the labels by hovering-over each label, selectingEdit
- 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, selectEditPasswordBox.
- InProperties, setContent TypetoPassword.
- Add a text box for user name:
- InProject view, right-clickCreateUserWidget (type)and select .
- Hover-over the text box, selectEditNameBox.
- Create a locale picker:
- InProject view, right-clickCreateUserWidget (type)and select .
- Hover-over the combo box, selectEditLocaleCombo.
- 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, selectEditCreateButton.
- InProperties, setTexttoAdd User.
- InEvents, next toMouseClick event, selectAdd
- 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, selectAdd
- Create a dynamic link betweenNewPanelPathand .
- Create the Cancel button:
- InProject view, right-clickCreateUserWidget (type)and select .
- Hover-over the button, selectEditDiscardButton.
- InProperties, setTexttoCancel.
- Next toMouseClick event, selectAdd
- Create a dynamic link betweenNewPanelPathand .For more information about dynamic links, see Create dynamic links.
- Arrange the interface elements.
Provide Feedback