Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Creating Custom Styles with the Bitmap Style Designer – CodeRage Replay, Tips & Tricks and Sample Files

 

Style Creation Tips

 

Bitmap Style Designer Tips

 

Adding The Style To Your Application

  1. Place a TStyleBook onto your form
  2. Double-click on it and select Open, then browse to the new FireMonkey style
  3. Apply and close
  4. Select your form, and set the StyleBook property to StyleBook1
  5. With TSwitch selected on your form, you can now select between 2 different style elements. The style element that’s part of the existing Windows 10 style, and the newly created one.

You can download the 4 sample graphics for TSwitch (1x, 1.5x, 2x and 3x) here.


 

Select from a template to get started

 

 

 Change the Name property to reflect your custom style element

 

 

 Select Add to add your new graphics

 

Select each style graphic

 

 

Select the 1x graphic for the Frame outline and fill color, then repeat for the Thumb

 

 

Automatically apply the settings to the other resolutions

 

 

To create a resizable control, set a Margin value other than 0

 

 

Test the new object style for each resolution before finalizing your new style

Learn more about a powerful and flexible hard disk space manager called Tree Size in this article.

 



cs_setInnerHtml(‘video_a9c642ca-5b4d-4e69-94b9-0a9d045bb156’,”);

 

Exit mobile version