[CLOSED] Make TextArea in MessageBox Not Editable

  1. #1

    [CLOSED] Make TextArea in MessageBox Not Editable

    I display a MessageBox with a multiline TextArea like this:
    Ext.Msg.show({
        title: 'Applications',
        value: appsList,
        buttons: Ext.Msg.OK,
        multiline: true,
        defaultTextHeight: 255,
        minWidth: 400
    });
    Is there a way to make the TextArea readonly? My priority in doing it this way was having a scroll bar in the MessageBox because appsList can be very long and gets cut off with a simple alert. I couldn't figure out how to do this without the multiline option.
    Last edited by Daniil; Nov 05, 2013 at 3:15 PM. Reason: [CLOSED]
  2. #2
    Hi @elisa,

    What about this?

    Example
    var longText = "";
    
    for (var i = 0; i < 5000; i++) {
        longText += "test ";
    }
    
    Ext.Msg.show({
        title: 'title',
        msg: "<div style='overflow-y:scroll;height:250px;'>" + longText + "</div>",
    });
  3. #3
    That worked great. Thanks Daniil!

Similar Threads

  1. Replies: 2
    Last Post: Jan 10, 2013, 2:06 PM
  2. [CLOSED] TextArea on a popup Window is not editable right away
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 14
    Last Post: Nov 28, 2012, 12:03 PM
  3. Replies: 0
    Last Post: May 25, 2010, 2:10 AM
  4. [CLOSED] How to make TextArea non selectable
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Feb 05, 2010, 3:43 AM
  5. [CLOSED] TextArea width within editable GridPanel
    By danielg in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 18, 2009, 10:20 AM

Tags for this Thread

Posting Permissions