Strange Problem with \n
-
Hello, I have a strange problem: I have an Edit Box which is set to Multiline and WantReturn. But if I want to set the text to the edit box with SetWindowText() it seems the \n in the text is completly ignored. Does anyone have a clue why ? With best regards, Benedikt
-
Hello, I have a strange problem: I have an Edit Box which is set to Multiline and WantReturn. But if I want to set the text to the edit box with SetWindowText() it seems the \n in the text is completly ignored. Does anyone have a clue why ? With best regards, Benedikt
into windows controls, replace
\n
with\r\n
...
TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VisualCalc 3.0] -
Hello, I have a strange problem: I have an Edit Box which is set to Multiline and WantReturn. But if I want to set the text to the edit box with SetWindowText() it seems the \n in the text is completly ignored. Does anyone have a clue why ? With best regards, Benedikt
What do you mean by 'completely ignored' ? You mean that the text following it is not on a new line ? I think you have to specify \n\r (or \r\n, don't remember exactly) in order to have a new line.
-
What do you mean by 'completely ignored' ? You mean that the text following it is not on a new line ? I think you have to specify \n\r (or \r\n, don't remember exactly) in order to have a new line.
Cedric Moonen wrote:
\n\r
game over... ;P
TOXCCT >>> GEII power
[toxcct][VisualCalc 2.20][VisualCalc 3.0] -
Hello, I have a strange problem: I have an Edit Box which is set to Multiline and WantReturn. But if I want to set the text to the edit box with SetWindowText() it seems the \n in the text is completly ignored. Does anyone have a clue why ? With best regards, Benedikt
Yeah thank you. That was the problem. I was too long working with consoles ;)