[CLOSED] [1.0] MessageBoxConfig textbox height - min height

  1. #1

    [CLOSED] [1.0] MessageBoxConfig textbox height - min height

    Hi Vlad,

    please, check attached image, working in code behind.

    Thanx

    Matteo
  2. #2

    RE: [CLOSED] [1.0] MessageBoxConfig textbox height - min height

    Hi,

    Please update from SVN.
    You can use MultilineHeight config parameter
    X.Msg.Prompt("title", "msg", new JFunction { Fn = "showResultText" }, "", Unit.Pixel(300), null).Show();
  3. #3

    RE: [CLOSED] [1.0] MessageBoxConfig textbox height - min height

    Hi Vlad,

    thank you a lot, however looking at Ext docs I discovered at prompt() method that:


    <ul>[*]<code>multiline</code> : Boolean/Number<div class="sub-desc">(optional)
    True to create a multiline textbox using the defaultTextHeight
    property, or the height in pixels to create the textbox (defaults to
    false / single-line)[/list]
    this is the code I use, MultilineHeight does not work, at least in code behind.

    
    public void PrintInfo(string info)
            {
                MessageBoxConfig _c = new MessageBoxConfig();
                _c.Width = Unit.Pixel(800);
                _c.Icon = MessageBox.Icon.INFO;
                _c.Buttons = MessageBox.Button.OK;
                _c.Multiline = true;
                //_c.MultilineHeight = Unit.Pixel(200); // does not work
                _c.Message = "CODICE SQL: ";
                _c.Value = info;
                _c.Title = "INFO";
                X.Msg.DefaultTextHeight = Unit.Pixel(200); // *** later add ***
                X.Msg.Show(_c);
            }
    Solved through DefaultTextHeight for the moment.

    Thanx

    Matteo
  4. #4

    RE: [CLOSED] [1.0] MessageBoxConfig textbox height - min height

    Hi,

    Please note that DefaultTextHeight affects on all future prompy message boxes. MultilineHeight works with Prompt message only
  5. #5

    RE: [CLOSED] [1.0] MessageBoxConfig textbox height - min height

    Ok, I see. I'll check further and let you know.

    Matteo
  6. #6

    RE: [CLOSED] [1.0] MessageBoxConfig textbox height - min height

    Hi Vlad,

    can you help on that? Please, check code below and last 2 lines to test cases.
    I managed to set the height according to your help, but missing width.

    
    public void PrintInfo()
            {
                string _value = @"Converting a standard server-side Method into an 
                AjaxMethod enables the Method to be called directly from your client-side JavaScript. 
                No PostBack, no page flicker and all communication is performed through lightweight AJAX + JSON.
                The [AjaxMethod] Attribute can be applied to any public or public static .NET server-side Method 
                (C#, VB, etc.). An [AjaxMethod] is similar in functionaltiy to the ASP.NET [WebMethod] Attribute 
                except an AjaxMethod is optimized to serialize and return data in an easily consumed JSON response.";
    
                MessageBoxButtonsConfig _conf = new MessageBoxButtonsConfig();
                _conf.Ok = new MessageBoxButtonConfig();
                _conf.Ok.Text = "OK";
    
                MessageBoxConfig _c = new MessageBoxConfig();
                _c.Width = Unit.Pixel(600);
                _c.Icon = MessageBox.Icon.INFO;
                _c.Multiline = true;
                _c.MultilineHeight = Unit.Pixel(200);
                _c.Message = "message";
                _c.Title = "title";
                _c.Value = _value;
    
                X.Msg.Prompt("title", "message", _conf, "", 200, _value).Show();  // height ok, can't set width
                //X.Msg.Prompt("", "", _conf, "", 200, "").Show(_c);              // width ok, can't set height
            }
    Thanx

    Matteo
  7. #7

    RE: [CLOSED] [1.0] MessageBoxConfig textbox height - min height

    bumped
  8. #8

    RE: [CLOSED] [1.0] MessageBoxConfig textbox height - min height

    Hi,

    Do not use Multiline with MultilineHeight. Just remove the following line from config
    _c.Multiline = true;
  9. #9

    RE: [CLOSED] [1.0] MessageBoxConfig textbox height - min height

    Hi Vlad,

    thanx, it works fine!

    Matteo

Similar Threads

  1. The height or a row
    By AlexMaslakov in forum 1.x Help
    Replies: 7
    Last Post: Sep 16, 2011, 1:34 PM
  2. Replies: 1
    Last Post: May 14, 2011, 10:51 AM
  3. [CLOSED] StatusBar height
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 22, 2010, 4:07 PM
  4. Tab Height AutoLoad Height
    By jordnlvr in forum 1.x Help
    Replies: 0
    Last Post: Mar 26, 2010, 7:26 PM
  5. [CLOSED] TreeNode Height
    By Ben in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 17, 2009, 10:56 AM

Posting Permissions