Newline, Linebreak, \n in GUI Element



  • On 06/03/2013 at 00:21, xxxxxxxx wrote:

    Is it possible to have a New line in a single static text gui element?

    something like \n

      
    self.AddStaticText(HELPTEXT6, c4d.BFH_SCALEFIT, name="very very very very very very very very very very very very long sentence")
    

    kind regards
    mogh



  • On 06/03/2013 at 00:37, xxxxxxxx wrote:

    have you tried the wordwrap flag plus a fixed width ? note very elegant, but it might work,
    i have never tried it. or you could use a read only multiline edit, but then your text would 
    have 3d border.



  • On 06/03/2013 at 04:18, xxxxxxxx wrote:

    It should be possible.
    See e.g. this example:

    gui.MessageDialog ("Incorrect license Found.\n Please visit website to purchase a license.")_<_o:_<_o:p_>_o:p>



  • On 06/03/2013 at 12:39, xxxxxxxx wrote:

    \n does not work with AddStaticText i get a strange unicode letter i guess.



  • On 07/03/2013 at 01:17, xxxxxxxx wrote:

    StaticTex doesn't support multi-line strings.
    You better create a multi-line read-only EditText or various StaticText elemets each one under the other.


Log in to reply