• Split by new line
    4 replies, posted
How does one split a string by a new line. I Tried "/n" but it would not work becuase I am working with text entry and I need to split it by lines? Thanks.
Are you using DTextEntry?
[QUOTE=Netheous;47481691]Are you using DTextEntry?[/QUOTE] Yes
Do you want the text written by default to have a 'line-break' or do you want people to be able to add line-breaks by hitting ENTER? [editline]8th April 2015[/editline] Eitherways, [url]http://wiki.garrysmod.com/page/Panel/SetMultiline[/url]
[QUOTE=Netheous;47481800]Do you want the text written by default to have a 'line-break' or do you want people to be able to add line-breaks by hitting ENTER?[/QUOTE] Okay, I fixed it a made a stupid fucking type, Did /n instead of \n. The proble now is when the scrollbar comes up the text does not draw relative(im overriding paint function). What I mean is when the text become to long and the scroll bar appears the drawn stuff does not move with it, Is there some way to get the scroll value to do it?
Sorry, you need to Log In to post a reply to this thread.