1. #1
    Sencha User
    Join Date
    Mar 2008
    Posts
    145
    Vote Rating
    1
    phamtranquocviet is on a distinguished road

      0  

    Default Dialog without close icon (X)

    Dialog without close icon (X)


    Hi,
    How do you get rid of the close icon (X) on the top right corner in a dialog?

    Here is my code:
    public class Login extends Dialog
    {
    private TextField<String> userName;
    private TextField<String> password;

    public Login()
    {
    makeGui();
    }

    private void makeGui()
    {
    makeForm();
    makeUserName();
    makePassword();
    }

    private void makePassword()
    {
    password = new TextField<String>();
    password.setFieldLabel("Password");
    password.setAllowBlank(false);
    add(password);
    }

    private void makeUserName()
    {
    userName = new TextField<String>();
    userName.setFieldLabel("Username");
    userName.setAllowBlank(false);
    add(userName);
    }

    private void makeForm()
    {
    FormLayout layout = new FormLayout();
    layout.setLabelWidth(90);
    layout.setDefaultWidth(155);
    setLayout(layout);
    setHeading("Login");
    setButtons("");
    setResizable(false);
    }
    }

    Thanks.

  2. #2
    Sencha User
    Join Date
    Mar 2008
    Posts
    145
    Vote Rating
    1
    phamtranquocviet is on a distinguished road

      0  

    Default


    Got it. Need to call setClosable(false) on the dialog. Thanks.

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar