Results 1 to 3 of 3

Thread: Insert displayfield in window header title bar

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Location
    Figueres (Spain)
    Posts
    370
    Answers
    15

    Default Answered: Insert displayfield in window header title bar

    is it possible to insert a displayfield, centered in a window header title bar ?
    -------------------
    Manel Juarez

  2. Not sure what it is perfectly centered, but it looks very much like

    PHP Code:
    var = new Ext.window.Window({
         
    title'Window',
         
    iconCls'no-icon',
         
    width400,
         
    height200
    });

    var 
    insertPosition 0;

    if (
    w.title) {
         
    insertPosition++;
    }

    if (
    w.iconCls || w.icon) {
         
    insertPosition++;
    }

    w.show();

    w.getHeader().insert(insertPosition, {
         
    xtype'displayfield',
         
    value'Who am I? Where? Why am I here?',
         
    height22,
         
    ariaRole  'heading',
         
    noWraptrue,
         
    flex1.5
    }); 

  3. #2
    Sencha User
    Join Date
    Oct 2010
    Location
    St.Petersburg
    Posts
    40
    Answers
    4

    Default

    Not sure what it is perfectly centered, but it looks very much like

    PHP Code:
    var = new Ext.window.Window({
         
    title'Window',
         
    iconCls'no-icon',
         
    width400,
         
    height200
    });

    var 
    insertPosition 0;

    if (
    w.title) {
         
    insertPosition++;
    }

    if (
    w.iconCls || w.icon) {
         
    insertPosition++;
    }

    w.show();

    w.getHeader().insert(insertPosition, {
         
    xtype'displayfield',
         
    value'Who am I? Where? Why am I here?',
         
    height22,
         
    ariaRole  'heading',
         
    noWraptrue,
         
    flex1.5
    }); 
    Think less, write more.

  4. #3
    Sencha User
    Join Date
    Feb 2010
    Location
    Figueres (Spain)
    Posts
    370
    Answers
    15

    Default

    Perfect, Barzoy.
    -------------------
    Manel Juarez

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •