How to do Multiline TCheckBox caption - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

How to do Multiline TCheckBox caption

devilcoredevilcore Posts: 1Member
Hello,

I'm using Borland C++ Builder 5.
I'm trying to set a TCheckBox caption as multiline but it does not work. I tried to put new line character "
" in the text, but when it is displayed on the Form,the character is missing.
Is there any possible way how this can be done?
Really appreciate your feedback. Thanks

Comments

  • luckyboyluckyboy Posts: 105Member
    I have two solutions
    first tested on C++ Builder 2007
    just set the Check Box WordWrap property to true
    and also, don't forget to increase Check Box height to fit new caption

    second is to use
    character in the caption, but set caption in code at runtime not at design time since
    at design time may be interpreted as
    not as new line character
Sign In or Register to comment.