top of page

Grupo

Público·11 membros

ResizeKit2 for Delphi 10.3 Rio: A Smart and Easy Solution for Form Resizing



ResizeKit2 for Delphi 10.3 Rio: A Powerful Tool for Making Your Applications Size and Resolution Independent




If you are a Delphi developer, you know how challenging it can be to create applications that look good on different screen sizes and resolutions. You may have spent hours designing your forms, only to find out that they don't fit well on smaller or larger screens, or that they become distorted when the user changes the font size or DPI settings. You may have tried to write code for resizing your controls manually, but found it too complex and error-prone. You may have even considered creating multiple forms for different screen sizes, but realized that it would be too time-consuming and hard to maintain.




ResizeKit2 for Delphi 10.3 Rio


DOWNLOAD: https://www.google.com/url?q=https%3A%2F%2Fmiimms.com%2F2tWLWI&sa=D&sntz=1&usg=AOvVaw2bnrlH4-Vd8OEbPBG0icwL



Fortunately, there is a better solution: ResizeKit2. ResizeKit2 is a powerful component that automatically changes the size of all controls and fonts on your forms so they will be displayed on any sized form. It works with all versions of Delphi from 5 to 11 Alexandria, and supports all Windows versions from XP to 10. It also supports multiple platforms, including VCL, FMX, .NET, C++ Builder, and Intraweb.


In this article, we will show you how ResizeKit2 works, how to install and use it in your Delphi 10.3 Rio projects, how to customize the resizing process, how to handle special cases, and what are the benefits of using ResizeKit2. We will also show you some examples of real-world applications that use ResizeKit2, and answer some frequently asked questions.


How ResizeKit2 Works




ResizeKit2 is a non-visual component that you can attach to any form in your project. Once attached, it will automatically change the size of all controls and fonts on that form according to the size of the form itself. It will also adjust the size of the form if the user changes the font size or DPI settings.


ResizeKit2 uses a smart algorithm that preserves the original layout and proportions of your controls and fonts. It also takes into account the alignment, anchors, margins, padding, constraints, minimum and maximum sizes, aspect ratio, parent-child relationships, docking, scaling mode, font quality, and other properties of your controls.


ResizeKit2 does not require you to write any code for resizing your controls or fonts. You can simply design your forms as usual in Delphi 10.3 Rio IDE, and let ResizeKit2 handle the resizing for you. You can also test your forms at different sizes by using the built-in preview feature in Delphi 10.3 Rio IDE.


How to Install and Use ResizeKit2




To install ResizeKit2 in Delphi 10.3 Rio, you need to follow these steps:




  • Copy the ResizeKitPKD26.bpl file from the ResizeKit2\Delphi10_3Rio\Product\Win32 folder into the Delphi 10.3 Rio Bin folder.



  • Copy the other files from the ResizeKit2\Delphi10_3Rio\Product\Win32 folder into the Delphi 10.3 Rio lib\win32\release folder.



  • Open Delphi 10.3 Rio IDE and go to Component -> Install Packages.



  • Click on Add... button and browse for the ResizeKitPKD26.bpl file in the Delphi 10.3 Rio Bin folder.



  • Click on OK button and then on Close button.



  • You should now see a new tab called "Resize Kit" in your component palette.



To use ResizeKit2 in your Delphi 10.3 Rio projects, you need to follow these steps:


  • Create a new project or open an existing one in Delphi 10.3 Rio IDE.



  • Add a new form or open an existing one in Delphi 10.3 Rio IDE.



  • Design your form as usual by adding controls and fonts.



  • Add a TResizeKit component from the "Resize Kit" tab in your component palette.



  • Select the TResizeKit component and go to Object Inspector.



  • In Object Inspector -> Properties -> FormName property, select the name of your form from the drop-down list.



  • In Object Inspector -> Events -> OnFormCreate event handler property (or any other event handler property that is executed before showing your form), double-click on it to create an event handler procedure.



  • In this event handler procedure (or any other procedure that is executed before showing your form), add this line of code:Resizekit1.Attach;



  • Save your project and run it.



  • You should now see your form resized according to its size on screen.



How to Customize the Resizing Process




ResizeKit2 provides several properties and methods that allow you to fine-tune the resizing behavior according to your needs. You can access these properties and methods through Object Inspector or through code by using TResizeKit component instance (e.g., Resizekit1).


Some of these properties and methods are:


  • Enabled: This property determines whether resizing is enabled or disabled for a form. You can set it to True or False at design time or run time.



  • ScaleMode: This property determines how resizing is performed for a form. You can choose from four options: smScale (default), smFontOnly (only fonts are resized), smControlOnly (only controls are resized), or smNone (no resizing is performed).



  • Scaled: This property determines whether scaling is applied for a form based on its PixelsPerInch property value compared with Screen.PixelsPerInch value at run time. You can