Options

MultiLine TextBox

AngeloAngelo Member Posts: 180
Hi Everybody, I want to know How to make text box to be multiline?I set multiline property = yes but when I type a lot of characters in my small size text box,the characters not type in bottom place after end of texbox width?

Thx,
Angelo

Comments

  • Options
    kinekine Member Posts: 12,562
    1) The text box must be enough high...
    2) The text must include spaces or comas etc. to Navision be able to wrap the text...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    AngeloAngelo Member Posts: 180
    Kine,could you please send me the sample (object)? maybe form object that fill one textbox that can be wrapped.

    regards,
    MY
  • Options
    kinekine Member Posts: 12,562
    OBJECT Form 90001 Multiline test
    {
      OBJECT-PROPERTIES
      {
        Date=25.07.05;
        Time=11:34:22;
        Modified=Yes;
        Version List=;
      }
      PROPERTIES
      {
        Width=7590;
        Height=4950;
        ActiveControlOnOpen=1000000004;
        SourceTable=Table27;
        OnInit=BEGIN
                 MLText := Text000;
               END;
    
      }
      CONTROLS
      {
        { 1000000000;TextBox;550  ;1980 ;6820 ;1870 ;MultiLine=Yes;
                                                     SourceExpr=MLText }
        { 1000000002;Label  ;550  ;990  ;3300 ;440  ;LeaderDots=No;
                                                     CaptionML=ENU=Multiline box }
        { 1000000004;CommandButton;5170;4180;2200;550;
                                                     HorzGlue=Right;
                                                     VertGlue=Bottom;
                                                     CaptionML=ENU=Control }
      }
      CODE
      {
        VAR
          MLText@1000000000 : Text[1000];
          Text000@1000000001 : TextConst 'ENU=This is some multiline text which will be wraped on the form to more than one line. If you want edit this line, you will get one line edit box...';
    
        BEGIN
        END.
      }
    }
    
    

    Do not forget, that if you focus on this edit box, you will get one line, because text box in edit mode is only one line...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    AngeloAngelo Member Posts: 180
    I mean, I want it not become one line again when I edit text in text box.is Navision can not be like that,Kine?

    Regards,
    MY
  • Options
    kinekine Member Posts: 12,562
    No, there is no way... only external components. Look into download section...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    AngeloAngelo Member Posts: 180
    Ok,thx for your object,Kine.... :D

    Regards,
    Angelo
  • Options
    RomzyRomzy Member Posts: 8
    Hello!
    My first time here so ... I hope someone can F1 me. [-o<

    I used STRLEN for long text variables, but that does not help solving my problem completely. On documents (reports) i have two sections for printing STRLEN(description) <= 40 and STRLEN(description)> 40. But there is a difference in physical width of characters so sometimes a string of more than 40 chars is printed as one line but on the second section (textbox-height for two lines).
    'i' and 'W', UPPERCASE ... !!! ](*,)
    Is it possible to get an information on phisical properties of a string or character or to calculate it somehow?

    Thanx and bye,
    :-k Romzy
  • Options
    kinekine Member Posts: 12,562
  • Options
    RomzyRomzy Member Posts: 8
    Thank you :)
Sign In or Register to comment.