Author Topic: Moving from old to new TBCButton  (Read 456 times)


  • Hero Member
  • *****
  • Posts: 602
    • Double Dummy Solver - free download
Moving from old to new TBCButton
« on: May 21, 2024, 11:49:32 pm »

A few months ago I added several, perhaps 35, TCButtons to my app. I like the look A LOT but there is a problem with high RES monitors. The Caption is too small. The rest of the button gets sized up correctly but the caption doesn't on a high resolution monitor.

On April 8 I saw on the Laz forum an update to this component.   Using Package -> Online Package Manager I installed

There are MANY new properties to these new TCButtons.  Most importantly, I can no longer compile my app.

1. Is there an easy way to move from the old TCButton to the new ones. My app no longer compiles with your new TCButtons. I was hoping that I would not need to replace and recode 35 buttons with all the properties and a few method links.
2. Will this new button scale properly with a high resolution monitor?

Thanks for your help.
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64


  • Hero Member
  • *****
  • Posts: 4569
  • Web, Desktop & Android developer
Re: Moving from old to new TBCButton
« Reply #1 on: June 01, 2024, 03:45:08 am »
Hi. The change happened a lot of years ago...

The thing is to right click on each button and replace class. If that doesn't works for you you can keep using the old one. Just copy the necessary code and use that old controls. Make a new package for your own use.


TinyPortal © 2005-2018