Android Question Word Wrap Project Window

Discussion in 'Android Questions' started by dualznz, May 22, 2015.

  1. dualznz

    dualznz Member Licensed User

    Hi long time since ive been on, im getting back into programming with B4a but ive already hit a snag i have to scroll to the right in the project viewer as shown in the attached image.

    i couldn't see word wrap option in the application window for B4a?

    is it possible to word wrap the dev tool?

    Cheers

    Screenshot_3.png
     
  2. DonManfred

    DonManfred Expert Licensed User

    Maybe in future. Dont know if this is planned.
    But you can split your string to multiple lines using _
    or you can use the new string literals using
    $"Long text
    over multiple lines
    to read it better"$
     
  3. dualznz

    dualznz Member Licensed User

    ahh sweet thats right _ i have it somewhere im my massive index of appz ive done in the past, yer it would be nice instead of having to add _
     
  4. wonder

    wonder Expert Licensed User

    I also use the underscore character a lot! :)
    So much that my B4A code even looks like C/Java sometimes... :D
    Code:
    If ( _
           Controller.L_Analog_X >= Controller.Dead_Zone _
        
    OR Controller.L_Analog_Y >= Controller.Dead_Zone _
        
    OR Controller.R_Analog_X >= Controller.Dead_Zone _
        
    OR Controller.R_Analog_Y >= Controller.Dead_Zone _
        
    OR Controller.L_Trigger  >= Controller.Dead_Zone _
        
    OR Controller.R_Trigger  >= Controller.Dead_Zone _
       ) _
    AND _
        
    Not(Gamepad_Mode) Then
            Gamepad_Mode = 
    True
            Hide_Controls(Player)
    End If
     
    thedesolatesoul likes this.
  5. Troberg

    Troberg Well-Known Member Licensed User

    I use a 4K screen. If I get too long lines on that one, I'm doing something wrong...

    Also, as others have said, consider the _. Usually, if you get too long lines, breaking them improves readability. It also provides breaks at logical places, something a word wrap might not do.
     
  6. fixit30

    fixit30 Active Member Licensed User

    Maybe I misunderstood the question, but B4A does have Word Wrap?

    [​IMG]
     
  7. dualznz

    dualznz Member Licensed User

    ahh so it does, that better, cheers
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice