- This topic has 2 replies, 2 voices, and was last updated 2026-07-15 at 1:57 pm by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
Home › Forums › Konopka Signature VCL Controls (formerly Raize Components) › TRzToolButton gets larger than expected
Tagged: TRzToolButton
With V8.0 the method TRzToolButton.CheckMinSize was changed in a way that makes sure that the button is somewhat larger (8 pixel on 96 dpi) than the image, while before it could as well be the same size as the image. Unfortunately there is no way to configure that padding size nor is CheckMinSize virtual to allow an inherited class to override that behavior.
In my applications I make heavy use of TRzToolButton where the images have to be the same size as the buttons. V8.0 breaks that completely.
Hi Uwe,
I’ll look to adding a property to control that. Of course, in the meantime, you can revert that method back to its original version and use the !Build_KSVC.cmd to rebuild the components and packages.
However, I also have to ask how exactly are you using the TRzToolButton controls with images the same size as the button? What I mean is that with the old code, something is going to be off with using an image size the same as the button size. Either the button’s border is getting covered, or the image is getting clipped.
Do you have a screenshot of your interface?
Ray
I use it without any borders by overriding DrawBtnBorders omitting the inherited call to achieve that.
The buttons are placed inside a TGridPanel without any margins, so they are more like tiles:

We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)