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

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.