1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    14
    Vote Rating
    0
    emilyberk is on a distinguished road

      0  

    Question get rid of Window's title bar or have it hold combo box

    get rid of Window's title bar or have it hold combo box


    Is there a way to get rid of the title bar in a Ext.window.Window? (the bar on top of the window that has the close box)

    If not, is there a way to add a combo box to it?

  2. #2
    Sencha User
    Join Date
    Jul 2011
    Posts
    14
    Vote Rating
    0
    emilyberk is on a distinguished road

      0  

    Default


    Adding
    preventHeader : true,
    works.

    Hope this helps someone else

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    And if you are wanting to add anything to the title bar you can. The Window should have a header property (like all Panels) and the header is just a Container using HBoxLayout (or VBoxLayout) so you can add/insert any component very easily! Do remember that the header isn't created at initComponent, you will need to after render.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Posts
    14
    Vote Rating
    0
    emilyberk is on a distinguished road

      0  

    Default


    cool! thanks

Thread Participants: 1

Tags for this Thread