Recent

Author Topic: How to add new line caption to TBCButton (BGRA Controls)??  (Read 1345 times)

yahoo000

  • New Member
  • *
  • Posts: 18
How to add new line caption to TBCButton (BGRA Controls)??
« on: October 12, 2021, 02:05:34 pm »
How to add new caption line to TBCButton ?? (from BGRA_Controls), it is really cool button with alot of customization options, and Im looking for the way to add new caption line ? can someone help me thx

jamie

  • Hero Member
  • *****
  • Posts: 5015
Re: How to add new line caption to TBCButton (BGRA Controls)??
« Reply #1 on: October 12, 2021, 02:13:34 pm »
i don't use those controls but you can try adding a <CR><LF> in the caption string that will start the next line.
The only true wisdom is knowing you know nothing

yahoo000

  • New Member
  • *
  • Posts: 18
Re: How to add new line caption to TBCButton (BGRA Controls)??
« Reply #2 on: October 12, 2021, 02:25:53 pm »
i don't use those controls but you can try adding a <CR><LF> in the caption string that will start the next line.

I tried but it doesn't work

jamie

  • Hero Member
  • *****
  • Posts: 5015
Re: How to add new line caption to TBCButton (BGRA Controls)??
« Reply #3 on: October 12, 2021, 04:58:29 pm »
if it has a OnPaint function for the button then use the DrawText function. with that you can format the text to make it wrap or what ever.
The only true wisdom is knowing you know nothing

circular

  • Hero Member
  • *****
  • Posts: 3744
    • Personal webpage
Re: How to add new line caption to TBCButton (BGRA Controls)??
« Reply #4 on: October 14, 2021, 06:42:40 am »
You may need to set in Font properties SingleLine to False or WordBreak to True to use newlines.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018