multi-line button text

  • Thread starter Thread starter Ian Lazarus
  • Start date Start date
I

Ian Lazarus

Hello,
I have button text which I would like to have displayed on several lines,
with the line break occuring in a specific place. How can this be done? The
C control charactes "\n\r" are simply displayed as normal text.
Thanks
 
I have button text which I would like to have displayed on several lines,
with the line break occuring in a specific place. How can this be done?

You need a linefeed (character decimal 10) in the button text which is easy
enough in code. If the ide is making life difficult for you, try button text
"xxx~yyy", and then in the load event, replace "~" with a linefeed.
 
I'm using Microsoft Visual C++.NET.

Besides "xxx\nyyy", I tried octal, "xxx\012yyy" and hexadecimal,
"xxx\x0Ayyy", but nothing worked. I can't believe there isn't a simple way
to do this.
 
I can't believe there isn't a simple way to do this.

There is a simple way - do it in the load event of your form, thereby
overcoming the shortcoming in the IDE. I know it isn't elegant, but my
experience is that such things are necessary in nontrivial forms and controls.
 
Back
Top