C++

Customizing the style for a user interface control in RAD Studio 10.1 Berlin

The integrated Style Designer in RAD Studio 10.1 Berlin has undergone several changes and improvements, including: Clipboard, keyboard and multi-selection support on the Structure view Preview panel Zooming support I recently received a question from a customer on how to best customize a style for a specific component, and I thought I’d cover the steps in a blog post. In this tutorial, we…
Read more
Delphi

Adding a style selector to your application

With RAD Studio 10 Seattle, we provide built-in default styles for iOS, Android, Windows and Mac. Additional styles can be found in the Styles directory installed with the product, and in the premium styles bonus pack. Adding a style selector to your application provides…
C++

How to best load an image from a URL using TWebBrowser when targeting multiple devices

In this snippet, I placed a TWebBrowser control onto my FireMonkey form and aligned it to the client. I then set up the following OnFormCreate event to load a web image into the browser control. I also restricted the image size to the screen dimensions of the device. procedure TWebBrowserImageDemo.FormCreate(Sender: TObject); const cHtmlString = '<img src=%s width=100%%…
Read more
C++

Creating a custom button style with RAD Studio 10 Seattle

In RAD Studio 10 Seattle, we made many enhancements to the integrated style designer in the IDE. In today’s post, I thought I would cover the steps for creating your own custom button style using RAD Studio 10 Seattle. Follow the steps below to create your own custom button style for Windows. The same steps apply to customizing UI controls for other platforms as well. 1. Go to File > New…
Read more
C++

Adding headers to TListView programmatically

During today’s Delphi, C++Builder and RAD Studio 10 Seattle launch webinar, I got a question on how to add headers to TListView programmatically instead of using LiveBindings with a data source. Here is a quick code snippet showing how to programmatically add TListView headers. procedure TListViewHeaders.FormCreate(Sender: TObject); var Group, Item: Integer; begin for Group in [1..4]…
Read more