Add-ons
  • Welcome
  • StackView
    • Version 2
      • How it works
      • How to use it
      • The Details
        • ScrollController
        • StackController
        • ViewController
      • Tips & Tricks
      • General Information
    • Version 3
      • How it works
      • How to use it
      • The Details
        • ScrollController
        • StackController
        • ViewController
      • Tips & Tricks
      • General Information
    • Changelogs
    • Purchase
  • FTC Word-Exporter
    • How to use it
    • General Information
  • CSTrueColors
    • Documentation
      • NSColorAddition
      • AppKitAddition
        • VisualEffectView
      • User32Addition
      • Template Images
      • The Demo Project
    • Changelog
  • Android
  • Open Source Projects
    • Android Design Extensions
  • Xojo Language Guide
    • The Basics
Powered by GitBook
On this page
  1. CSTrueColors
  2. Documentation

Template Images

PreviousUser32AdditionNextThe Demo Project

Last updated 8 months ago

macOS can use an image as a template image, which means it automatically adapts to the control it is part of.

For this to work, an image has to be pure black/grayscale and transparent. On a dark control background, the image is automatically drawn white while on a light background it is drawn black.

This does not work inside of a paint event automatically. Instead, use the methods of the AppKitAddition to insert a picture as a template into the supported controls.

Template